Skip to content
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

Consider adding support for FeatureServices #1

Closed
rowanwins opened this issue Mar 16, 2021 · 1 comment
Closed

Consider adding support for FeatureServices #1

rowanwins opened this issue Mar 16, 2021 · 1 comment

Comments

@rowanwins
Copy link
Collaborator

rowanwins commented Mar 16, 2021

Various Esri Services (name FeatureServer and MapServer) can be queried to return geojson which can then be displayed on a map.

To do this naively is quite simple, you can just pass in a query parameter &where=1=1, this gives you back all the data. The problem is that the response size could be really big depending on how many features there are.

A more sophisticated approach uses getting data on a per-tile basis, this is how esri-leaflet tackles it. This approach is alot more scalable as you only retrieve the geojson for the area you're looking at, and you can also adjust precision and simplicity depending on scale etc.
This would be awesome, but requires writing a custom-source for mapbox-gl, and this is somewhat undocumented, and would require a stack more code.

Choices choices....

@rowanwins
Copy link
Collaborator Author

Implemented in https://github.com/rowanwins/mapbox-gl-arcgis-featureserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant