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

ESRI Feature Service? #130

Open
cyrusgis opened this issue Apr 25, 2023 · 2 comments
Open

ESRI Feature Service? #130

cyrusgis opened this issue Apr 25, 2023 · 2 comments

Comments

@cyrusgis
Copy link

I was curious if it's possible to add a polygon layer using ESRI feature service url instead of uploading a geojson file to github repo? If so, how would I implement the layer into the legend and the ability to turn it on/off?
Thanks!

@JackDougherty
Copy link
Collaborator

To my knowledge, Leaflet Maps with Google Sheets is not designed to display polygon layers using ESRI feature service URL, but am checking with developer @ilyankou

In our Google Sheet template > Polygons > Polygon GeoJSON URL (row 6), see that you can insert a Polygon file pathname in your GitHub repo, or external web address

If you wish to rewrite the JavaScript to work with ESRI feature service URL, see the Load GeoJSON section of our code

@ilyankou
Copy link
Contributor

Hi @cyrusgis

@JackDougherty is right - our template doesn't currently support loading Esri or WMS tiles, but it is possible in principle with some JavaScript magic and a few dozen lines of code:

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

3 participants