<div dir="ltr">Can you file this as an issue? I'll try to take a look at it.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 11, 2020 at 3:28 PM TC Haddad <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Hi all,</div><div><br></div><div>Looking at the OpenLayers docs here:</div><div><a href="https://openlayers.org/en/v5.3.0/apidoc/module-ol_source_TileArcGISRest.html" target="_blank">https://openlayers.org/en/v5.3.0/apidoc/module-ol_source_TileArcGISRest.html</a></div><div><br></div><div>I was wondering if GM is supporting the parameter option for 'LAYERS'? <br></div><div><br></div><div>Tried setting up an example map source like this:</div><div><br></div><div> <map-source name="statewaters" type="ags"><br> <url><a href="https://maps.dsl.state.or.us/arcgis/rest/services/Maps/StateOwnedWaters_20/MapServer" target="_blank">https://maps.dsl.state.or.us/arcgis/rest/services/Maps/StateOwnedWaters_20/MapServer</a></url><br> <layer name="0"/> <!-- River mile --><br> <layer name="1"/> <!-- Head of Tide --><br> <param name="FORMAT" value="image/png"/><br> <param name="TRANSPARENT" value="TRUE"/><br> <param name="cross-origin" value="anonymous"/><br> </map-source></div><div><br></div><div>and then tried to request just one of the available layers (name="0"). GM sends a request that looks like this:</div><div><br></div><div><a href="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" target="_blank">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</a></div><div><br></div><div>this returns all layers at once rather than the requested single layer.</div><div><br></div><div>Instead, I was hoping the request would look like:</div><div><br></div><div><a href="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" target="_blank">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</a></div><div><br></div><div>which behaves as expected and only returns an image of the single layer requested.</div><div><br></div><div>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...</div><div><br></div><div>T<br></div><div><br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div>