New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for FeatureInfo on on Map Source type="ags" layers #747
Comments
A sample service of "ags-polygons" is used in the demo mapbook-test-servers.xml mapbook: You can find the map source block config for this service by searching for https://github.com/geomoose/gm3/blob/main/examples/desktop/mapbook-test-servers.xml |
Would be nice. For those interested try to do an identify on the airstrip polygon in the center of this map: |
A note on the "ags" protocol (so when I revisit this next year I won't need to re-research this). ESRI does allow an Identify on the ags raster service. Instead of doing a /Mapserver/export, you do a /Mapserver/identify. See Example 3 at https://developers.arcgis.com/rest/services-reference/enterprise/identify-map-service-.htm The specific layer ("2") is selected by the parameter As an alternative to the above ESRI Identify method, I tried our "query-as" route because ESRI does allow a query request like /MapServer/21/query. I made a couple of minor code changes to enable queries on a mapsource type of 'ags':
I then added a layer for querying and referenced it in the layer for display:
Note the slightly different URLs. I'm not sure I like the use of query-as method over writing a separate function in GeoMoose. I have yet to test the Select and Search operations with this method... |
For symmetry, I removed the change to query.js and now have:
And I've tested the Select and Search functions and they seem to work. |
This is exciting @brentfraser! I haven't yet had a chance to try it locally, but glad it doesn't look too complicated to add. I see a ton of these services in the wild, and enabling query is a really nice option... |
Test with #775 |
Working in 3.12! |
Map Source type="ags" is a common service type that can support queries, but GM does not currently support the query option on this type of service
According to previous discussion on #730 this is a known missing support, but may be an easy addition. The service type is quite common, and so adding this support would be super helpful.
The text was updated successfully, but these errors were encountered: