[mapserver-users] RE [Polluriel potentiel] Re: runtime variable substitution in layer class expression

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Wed Feb 12 05:46:19 PST 2014


http://dev.openlayers.org/docs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.mergeNewParams

that will add year parameter in your url
yourlayer.mergeNewParams(
        {
                        'year': year
        });

Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction de la santé environnementale et de la toxicologie
Institut national de santé publique du Québec
Tél.: 418 646-6777 poste 30015
Téléc.: 418 644-4593
steve.toutant at inspq.qc.ca
http://www.inspq.qc.ca
http://www.monclimatmasante.qc.ca 
Pour me rejoindre par courrier
Service de l'infrastructure et du réseau
Direction des technologies de l'information
Ministère de la Sécurité Publique
2525 boul. Laurier, 2è étage
Tour Laurentides
Québec, G1V 2L2



gorank <kirandziskig at gmail.com>@lists.osgeo.org 
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2014-02-11 17:57

A
mapserver-users at lists.osgeo.org
cc

Objet
[Polluriel potentiel]  Re: [mapserver-users] runtime variable substitution 
in layer class expression








I follow your suggestion and I put in the map file your proposal and in my
.aspx webform with open layers javascript I added dropdownlist with ID
"YEAR" and Values 2010 and 2011. The open layer in the browser doesn't 
show
the map. 

Should I put in the open layer javascript some additional code to 
recognise
the aspx control selected value?

Goran



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/runtime-variable-substitution-in-layer-class-expression-tp5101318p5103269.html

Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140212/63f9bc82/attachment.html>


More information about the mapserver-users mailing list