|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Choose layers to displayhi,
I have a mapfile. I want to choose layers to display from this mapfile using php or javascript. I don't want to create new mapfiles when i choose layers from my web page, and i can't change STATUS of layers in my mapfile because it can be used in parallel. -- Bendaoud _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: Choose layers to displayHi,
You can use a legend in your application. Check the samples of Chameleon you'll see plenty of examples. Julien prenom nom wrote: > hi, > > I have a mapfile. I want to choose layers to display from this mapfile > using php or javascript. I don't want to create new mapfiles when i > choose layers from my web page, and i can't change STATUS of layers in > my mapfile because it can be used in parallel. > > -- > Bendaoud > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@... > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Choose layers to displayhi,
Thank you Julien. But, i have a legend. My aim is to have a unique large mapfile. this mapfile must contain all layers. And, depending on some criteria, i must load some layers and others must be in a list box for an eventual adding. possible or not, please give me a response. Merci Julien. Je vous charger que certains layers. les autres (qui n'interesse pas un dit scénario) doivent etre mis à l'ecart, mais laissant toute fois la possibilité de les ajouter après. Mon but est qu'avec un seul grand mapfile j'arrive à visualiser différentes situations. Mon probleme est que tout ça doit etre in fly, surtout ne pas créer de mapfile pour chaque situation ou scénario. -- Bendaoud _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: Choose layers to displayHi,
I don't think it would be feasible directly out-of-the-box with Chameleon. You could probably add a metadata in your mapfile and use 2 legend widgets in your application, one for active layers and one for available layers. Or simply make your "available" layers selectable through WMS in the WMSBrowser. Je ne crois pas que cette foncitonalité est disponible directement dans Chameleon. Vous pourriez probablement ajouter un metadata dans votre mapfile et utiliser 2 LegendTemplate widget, un pour les couches de votre cartes et un pour les couches disponible. Ou simplement rendre vaux couches disponible en WMS dans le WMSBrowser widget. Julien prenom nom wrote: > hi, > > Thank you Julien. But, i have a legend. My aim is to have a unique > large mapfile. this mapfile must contain all layers. And, depending on > some criteria, i must load some layers and others must be in a list box > for an eventual adding. possible or not, please give me a response. > > Merci Julien. Je vous charger que certains layers. les autres (qui > n'interesse pas un dit scénario) doivent etre mis à l'ecart, mais > laissant toute fois la possibilité de les ajouter après. Mon but est > qu'avec un seul grand mapfile j'arrive à visualiser différentes > situations. Mon probleme est que tout ça doit etre in fly, surtout ne > pas créer de mapfile pour chaque situation ou scénario. > > -- > Bendaoud > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@... > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: Choose layers to displayHello Bendouad
Actually our somewhat dated GSC World Mineral Deposits site application does what Bendouad wants and just what Julien-Samuel says by using two legend widgets: ShowXML_Legend and XML_Themed_Legend, with a few extra legend template files. Go to http://gdr.nrcan.gc.ca/minres/data_e.php or http://gdr.nrcan.gc.ca/minres/data_f.php And select the browser-based option. The select layers uses ShowXML_Legend and when layers ticked of and the map refreshed the legend for the chosen layers shows on the bottom. As usual, there is always extra work involved in preparing custom map files and templates. There are probably some extra custom rendering applications used; I am not the genius who set it up. So it is possible. Best regards Lesley Dr. Lesley Chorlton, P. Geo. lesley.chorlton@..., 613-996-9358 Natural Resources Canada, 601 Booth Street, Ottawa, Ontario K1A 0E8 Ressources naturelles Canada, 601 rue Booth, Ottawa (Ontario) K1A 0E8 Government of Canada / Gouvernement du Canada -----Original Message----- From: chameleon-bounces@... [mailto:chameleon-bounces@...] On Behalf Of Julien-Samuel Lacroix Sent: February 2, 2009 15:15 To: prenom nom Cc: chameleon@... Subject: Re: [Chameleon] Choose layers to display Hi, I don't think it would be feasible directly out-of-the-box with Chameleon. You could probably add a metadata in your mapfile and use 2 legend widgets in your application, one for active layers and one for available layers. Or simply make your "available" layers selectable through WMS in the WMSBrowser. Je ne crois pas que cette foncitonalité est disponible directement dans Chameleon. Vous pourriez probablement ajouter un metadata dans votre mapfile et utiliser 2 LegendTemplate widget, un pour les couches de votre cartes et un pour les couches disponible. Ou simplement rendre vaux couches disponible en WMS dans le WMSBrowser widget. Julien prenom nom wrote: > hi, > > Thank you Julien. But, i have a legend. My aim is to have a unique > large mapfile. this mapfile must contain all layers. And, depending on > some criteria, i must load some layers and others must be in a list > box for an eventual adding. possible or not, please give me a response. > > Merci Julien. Je vous charger que certains layers. les autres (qui > n'interesse pas un dit scénario) doivent etre mis à l'ecart, mais > laissant toute fois la possibilité de les ajouter après. Mon but est > qu'avec un seul grand mapfile j'arrive à visualiser différentes > situations. Mon probleme est que tout ça doit etre in fly, surtout ne > pas créer de mapfile pour chaque situation ou scénario. > > -- > Bendaoud > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Chameleon mailing list > Chameleon@... > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Choose layers to displayhi,
Thank you Lesley and Julien. Lesley, http://gdr.nrcan.gc.ca/minres/data_f.php is very good. then it is possible. I will work to make it. thank you for showing me the path. -- Bendaoud _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Choose layers to displayHi,
Just one question : What is this ShowXML_Legend, Lesley? Your private widget, or a public one? i didn't find it! -- Bendaoud _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
| Free embeddable forum powered by Nabble | Forum Help |