Esri / esri-leaflet-vector

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

Still getting error "Error: missing required property "version" "sources" and "layers"" #155

Closed Rayvenhaus closed 1 year ago

Rayvenhaus commented 1 year ago

Describe the bug

I have followed the direction at https://developers.arcgis.com/esri-leaflet/geocode-and-search/search-for-an-address/ to implement address geocoding on my website at https://wendydev.myndworx.com.au:4443/settingsTest/testing.php . The map is created, though no tiles are shown. However, the search control is created and works as shown in the attached images. The following errors are generated on page load: missing required property "version" missing required property "sources" missing required property "layers"

This same error was called out in Issue #76, now closed and mentioned in #28 and #80, both of which are also now closed.

2022-12-28 10_44_01-

Reproduction

Load web page

Logs

No response

System Info

Leaflet v: 1.9.3
esri-Leaflet v: 3.0.9
esri-leaflet-vector v: 4.0.0
esri-leaflet-geocoder v: 3.1.3

Additional Information

No response

gavinr commented 1 year ago

Hi, thanks for the question. I cannot load that page - can you please post a public jsfiddle or codepen that demonstrates the issue?

Rayvenhaus commented 1 year ago

https://jsfiddle.net/Rayvenhaus/h7yx9w0g/

gavinr commented 1 year ago

Thanks for the code. It seems like there's an issue with Jsfiddle, but if you copy/paste your jsfiddle code into JSbin, it works fine: image

https://jsbin.com/qonuyoz/edit?html,output

Rayvenhaus commented 1 year ago

With that, I was able to track it down. It was browser related, on my end. Thanks for the assist, mate.