[mapserver-users] MapCache: substitution in GetMap

Vladimir fl_v at inbox.ru
Fri Nov 28 04:31:02 PST 2014


 Hi All!

I have getMap request to MapCache from OL3 with additional dynamic ZOOM parameter.

http://myhost/mapcache/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test&WIDTH=384&HEIGHT=384&CRS=EPSG%3A3857&STYLES=&MAP_RESOLUTION=135&BBOX=8520588.417005166%2C5338362.055436708%2C8521811.40945773%2C5339585.047889271&ZOOM=15

Further MapCache send request to my WMS service accordingly the configuration:

<source name="vmap0" type="wms">
<getmap>
<params>
<FORMAT>image/png</FORMAT> 
<LAYERS>mylayer</LAYERS> 
</params>
</getmap>
<http>
<url>http://myhost/wms</url>
</http>
</source>

But the additional ZOOM parameter is lost at this stage.
Adding <ZOOM></ZOOM> in <params> adds empty key without value.
How can I substitute this parameter to final request ?
Thanks & best regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141128/4613cd1f/attachment.html>


More information about the mapserver-users mailing list