[Geomoose-users] Support for 'layers' param when map source type = ags ?
Dan Little
theduckylittle at gmail.com
Wed Mar 18 20:27:03 PDT 2020
Can you file this as an issue? I'll try to take a look at it.
On Wed, Mar 11, 2020 at 3:28 PM TC Haddad <tchaddad at gmail.com> wrote:
>
> 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
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20200318/9ea3942e/attachment.html>
More information about the Geomoose-users
mailing list