[mapserver-users] Set OPACITY through runtime substitution

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Sat Feb 6 09:20:57 PST 2016


Hi,

According to documentation probably not a bug but a missing feature: http://mapserver.org/cgi/runsub.html
It seems that nothing in STYLE can be changed with variables.

-Jukka Rahkonen-

Lime, Steve D (MNIT) wrote:
 
> You should be able to do this through variables. For some reason it's not working at the style level - probably a bug, but it does work at the layer level using a syntax like:

  http://maps1.dnr.state.mn.us/cgi-bin/mapserv70?map=/usr/local/mapserver/apps/test/opacity/test.map&mode=map (use the default OPACITY if set (in this case it's "OPACITY 10")
  http://maps1.dnr.state.mn.us/cgi-bin/mapserv70?map=/usr/local/mapserver/apps/test/opacity/test.map&mode=map&map.layer[county]=OPACITY+50
  
A more complex syntax *should* work (&map.layer[county].class[0].style[0]=OPACITY+10) but wasn't for me with 7.0 (it did work for COLOR/OUTLINECOLOR).

Steve

-----Original Message-----
From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Space
Sent: Friday, February 05, 2016 7:23 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Set OPACITY through runtime substitution

In the above example I used invalid syntax. This is what I meant:

    CLASS 
        EXPRESSION ('%opacity%' = '10') 
        STYLE 
            OPACITY 10 
        END 
    END 
    CLASS 
        EXPRESSION ('%opacity%' = '20') 
        STYLE 
            OPACITY 20 
        END 
    END 



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Set-OPACITY-through-runtime-substitution-tp5249093p5249099.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
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list