leaflet-maps-with-google-sheets
leaflet-maps-with-google-sheets copied to clipboard
ESRI Feature Service?
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!
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
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:
- See how to add Esri features layer using Leaflet Esri javascript library
- See how to use WMS in leaflet