leaflet-maps-with-google-sheets icon indicating copy to clipboard operation
leaflet-maps-with-google-sheets copied to clipboard

ESRI Feature Service?

Open cyrusgis opened this issue 1 year ago • 2 comments

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!

cyrusgis avatar Apr 25 '23 17:04 cyrusgis

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

JackDougherty avatar Apr 26 '23 13:04 JackDougherty

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:

ilyankou avatar Apr 28 '23 14:04 ilyankou