Esri / esri-leaflet-vector

Display ArcGIS Online vector basemaps w/ Esri Leaflet
Apache License 2.0
56 stars 57 forks source link

esri-leaflet-vector/examples/custom-vtl.html Not Working #66

Closed parksconservancy closed 3 years ago

parksconservancy commented 3 years ago

Hi- When testing the code referenced here : esri-leaflet-vector/examples/custom-vtl.html in both jsfiddle and VSCode I'm getting the following errors:

Failed to load resource: the server responded with a status of 404 (Not Found) - esri-leaflet-vector-debug.js:1 Uncaught TypeError: Cannot read property 'vectorTileLayer' of undefined - test.html:43

Any thoughts on why this is happening would be really appreciated.

Cheers.

jwasilgeo commented 3 years ago

@parksconservancy those examples are intended for developer testing/debugging. The error is indicating that there’s an issue loading a file that is referenced locally that won’t exist in jsfiddle:

404 (Not Found) - esri-leaflet-vector-debug.js

You can either try out the developer instructions in the README to try out the example files as-is, or more simply replace your script tags with what can be found in the main code snippet here:

https://github.com/Esri/esri-leaflet-vector#example

Hope that helps you get underway.

zac-stanley commented 3 years ago

Thanks @jwasilgeo I'm cooking now.