[Geomoose-users] Support for 'layers' param when map source type = ags ?

TC Haddad tchaddad at gmail.com
Wed Mar 11 13:28:31 PDT 2020


Hi all,

Looking at the OpenLayers docs here:
https://openlayers.org/en/v5.3.0/apidoc/module-ol_source_TileArcGISRest.html

I was wondering if GM is supporting the parameter option for 'LAYERS'?

Tried setting up an example map source like this:

<map-source name="statewaters" type="ags">
<url>
https://maps.dsl.state.or.us/arcgis/rest/services/Maps/StateOwnedWaters_20/MapServer
</url>
<layer name="0"/> <!-- River mile -->
<layer name="1"/> <!-- Head of Tide -->
<param name="FORMAT" value="image/png"/>
<param name="TRANSPARENT" value="TRUE"/>
<param name="cross-origin" value="anonymous"/>
</map-source>

and then tried to request just one of the available layers (name="0"). GM
sends a request that looks like this:

https://maps.dsl.state.or.us/arcgis/rest/services/Maps/StateOwnedWaters_20/MapServer/export?F=image&FORMAT=PNG32&TRANSPARENT=true&SIZE=256%2C256&BBOX=-13790462.895098358%2C5562169.674255706%2C-13785570.925288107%2C5567061.6440659575&BBOXSR=3857&IMAGESR=3857&DPI=90

this returns all layers at once rather than the requested single layer.

Instead, I was hoping the request would look like:

https://maps.dsl.state.or.us/arcgis/rest/services/Maps/StateOwnedWaters_20/MapServer/export?F=image&FORMAT=PNG32&TRANSPARENT=true&SIZE=256%2C256&BBOX=-13790462.895098358%2C5562169.674255706%2C-13785570.925288107%2C5567061.6440659575&BBOXSR=3857&IMAGESR=3857&DPI=90&layers=show:0

which behaves as expected and only returns an image of the single layer
requested.

This might be a good enhancement request if it is not already supported,
but I wasn't sure if I was missing something obvious first...

T
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20200311/bb4148e2/attachment.html>


More information about the Geomoose-users mailing list