From DominicGervais at ssss.gouv.qc.ca Thu Aug 21 09:49:46 2008 From: DominicGervais at ssss.gouv.qc.ca (DominicGervais@ssss.gouv.qc.ca) Date: Thu Aug 21 21:16:13 2008 Subject: [Chameleon] =?iso-8859-1?q?Probl=E8me_avec_LegendTemplateLM?= Message-ID: Bonjour, je suis ? mes premiers pas avec MapServer. J?ai un probl?me avec ma l?gende. J?aimerais qu?elle puisse contr?ler l?affichage des couches, avec l?aide de Checkboxs. Quand je charge la page, la carte appara?t ainsi que la l?gende. Les couches qui sont visibles sont coch?s dans la l?gende. Mais, quand je change quelque chose au niveau des checkboxs et que je rafra?chi la carte, les changements que je d?sire ne s?effectue pas et tous les checkboxs deviennent vides. La carte appara?t bien, mais elle est ? l??tat original. Aussi, quand je fais un zoom et que des couches apparaisse en raison de l??chelle, je les vois dans la l?gende, mais tous les checkboxs sont encore vides. J?utilise un template pour ma l?gende et le widget LegendTemplateLM. J?ai aussi essay? le widget LegendTemplate, mais c??tait pire ! Si quelqu?un peut m?aider je l?appr?cierais grandement, et me mettrait sur le bon chemin ! Voici mes codes?. L??l?ment LEGEND dans le mapfile : LEGEND STATUS on KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE "legendtemplate.html" END Mon fichier legendtemplate.html : [leg_group_html] [if name=group_name oper=eq value="Courbes"] [leg_group_name]

[/if] [if name=group_name oper=neq value="Courbes"] [leg_group_name] [/if] [/leg_group_html] [leg_layer_html opt_flag=2] [if name=layer_group oper=neq value="Courbes"] [/if] [if name=layer_group oper=neq value="Courbes"]

[if name=layer_group oper=neq value="Thematique"] [/if]   [leg_layer_name]

[/if] [/leg_layer_html] [leg_class_html ] [if name=layer_group oper=eq value="Thematique"]

  [leg_class_name]

[/if] [/leg_class_html] Et finalement, mon fichier template.html (mise en page de la carte) : Widgets

MERCI, Dominic Gervais -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20080821/292b2610/attachment-0001.html From nsavard at mapgears.com Mon Aug 25 11:34:47 2008 From: nsavard at mapgears.com (Normand Savard) Date: Mon Aug 25 11:34:50 2008 Subject: [Chameleon] =?windows-1252?Q?Probl=E8me_avec_LegendTempl?= =?windows-1252?Q?ateLM?= In-Reply-To: References: Message-ID: <48B2D117.9060002@mapgears.com> DominicGervais@ssss.gouv.qc.ca wrote: > Bonjour, je suis ? mes premiers pas avec MapServer. > > J?ai un probl?me avec ma l?gende. J?aimerais qu?elle puisse contr?ler > l?affichage des couches, avec l?aide de Checkboxs. Quand je charge la > page, la carte appara?t ainsi que la l?gende. Les couches qui sont > visibles sont coch?s dans la l?gende. Mais, quand je change quelque chose > au niveau des checkboxs et que je rafra?chi la carte, les changements que > je d?sire ne s?effectue pas et tous les checkboxs deviennent vides. La > carte appara?t bien, mais elle est ? l??tat original. Aussi, quand je fais > un zoom et que des couches apparaisse en raison de l??chelle, je les vois > dans la l?gende, mais tous les checkboxs sont encore vides. > > J?utilise un template pour ma l?gende et le widget LegendTemplateLM. J?ai > aussi essay? le widget LegendTemplate, mais c??tait pire ! > > > > Mon fichier legendtemplate.html : > > Dominic, Est-ce qu'il est possible que ton fichier legendtemplate.html soit mal structure. J'ai verifie un peu et je vois un "" tag a l'interieur d'un "if" dans la partie de code suivant? Il y a une reference pour ce type de legende sur maptools.org: http://chameleon-tiki.maptools.org/tiki-index.php?page=LegendTemplate Cela peut peut-etre aide. Norm [if name=layer_group oper=neq value="Courbes"] [/if] [if name=layer_group oper=neq value="Courbes"] From aberenyi at burken.hu Tue Aug 26 05:22:12 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Tue Aug 26 05:19:28 2008 Subject: [Chameleon] svg error Message-ID: <48B3CB44.1040708@burken.hu> Dear All, I'm trying to change to SVG output format following this tutorial: http://mapserver.gis.umn.edu/docs/howto/svg-howto Mapserver generates fine the svg output (a simple picture) with this sample script, draw(); header("Content-type: image/svg+xml"); $url = $img->saveImage(""); ?> But if I try to open the same map file in chameleon environment it just doesn't display the map...what could be wrong? Any help would be very much appreciated! Thanks, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20080826/ecfb1ffd/attachment.html From bartvde at osgis.nl Tue Aug 26 05:26:43 2008 From: bartvde at osgis.nl (bartvde@osgis.nl) Date: Tue Aug 26 05:27:00 2008 Subject: [Chameleon] svg error In-Reply-To: <48B3CB44.1040708@burken.hu> References: <48B3CB44.1040708@burken.hu> Message-ID: <30583.145.50.39.11.1219742803.squirrel@webmail.hostingdiscounter.nl> Chameleon's MAP widget does not support SVG. Best regards, Bart > Dear All, > > I'm trying to change to SVG output format following this tutorial: > http://mapserver.gis.umn.edu/docs/howto/svg-howto > Mapserver generates fine the svg output (a simple picture) with this > sample script, > > > dl("php_mapscript.so"); > > $oMap = ms_newmapObj("my/path/to/my-svg.map"); > > $img = $oMap->draw(); > > header("Content-type: image/svg+xml"); > > $url = $img->saveImage(""); > > ?> > > But if I try to open the same map file in chameleon environment it just > doesn't display the map...what could be wrong? > > Any help would be very much appreciated! > > Thanks, > > Attila > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > From jlacroix at mapgears.com Tue Aug 26 10:13:43 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Tue Aug 26 10:13:48 2008 Subject: [Chameleon] svg error In-Reply-To: <48B3CB44.1040708@burken.hu> References: <48B3CB44.1040708@burken.hu> Message-ID: <48B40F97.8090505@mapgears.com> Hi, Chameleon use a script to render the map (chameleon/htdocs/common/wrappers/drawmap.php) This script only support gif, png and jpeg output. I've never worked with SVG so I can't tell if it would work directly in Chameleon. I suggest you give it a try and modify the script directly. Julien Ber?nyi Attila wrote: > Dear All, > > I'm trying to change to SVG output format following this tutorial: > http://mapserver.gis.umn.edu/docs/howto/svg-howto > Mapserver generates fine the svg output (a simple picture) with this > sample script, > > > dl("php_mapscript.so"); > > $oMap = ms_newmapObj("my/path/to/my-svg.map"); > > $img = $oMap->draw(); > > header("Content-type: image/svg+xml"); > > $url = $img->saveImage(""); > > ?> > > But if I try to open the same map file in chameleon environment it just > doesn't display the map...what could be wrong? > > Any help would be very much appreciated! > > Thanks, > > Attila > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/