geomoose / gm3

GeoMoose 3.0 Development. Please submit pull requests to the 'main' branch.
https://www.geomoose.org
MIT License
58 stars 59 forks source link

Allow query operations (Identify,etc) on ags mapsources by using query-as #775

Closed brentfraser closed 1 year ago

brentfraser commented 1 year ago

Addresses #747 by allowing ags layer query-as to reference an ags-vector layer :

    <map-source name="ags-polygons"               type="ags">
        <url>https://gis2.co.dakota.mn.us/arcgis/rest/services/DCGIS_OL_Transportation/MapServer/export</url>
        <layer name="runways" query-as="ags-polygons-query/runways">
            <param name="layers" value="show:21" />
        </layer>
    </map-source>
    <map-source name="ags-polygons-query"         type="ags-vector">
        <url>https://gis2.co.dakota.mn.us/arcgis/rest/services/DCGIS_OL_Transportation/MapServer/21</url>
        <layer name="runways"  title="Runways" >
            <template name="identify" auto="true" />
            <template name="select" alias="search"/>
        </layer>
    </map-source>
theduckylittle commented 1 year ago

I had to do manual surgery to get the one in... but it's done.