react-esri-leaflet icon indicating copy to clipboard operation
react-esri-leaflet copied to clipboard

VectorTileLayer not working with vite project

Open shaiRos opened this issue 3 weeks ago • 4 comments

I have an app created with vite. Installed this library and I'm trying to use a vector tile to display in the map. I have tried the url used for the example for this library and even from the esri documentation here for vector tiles. Even created another repo where it's just the base template that vite installs (react-javascript)

image

and it's giving me this main error Uncaught TypeError: Cannot use 'in' operator to search for '_leaflet_id' in undefined

Things I tried:

  • esri-leaflet-vector is installed (VectorBasemapLayer works perfectly, VectorTileLayer doesn't)
  • create vite base app with just this library installed
  • copied the dependencies versions used in the example (except react (v18.3.1 used) and react-dom (v18.3.1 used))
  • tried vectortileserver url links from esri documention for vector tiles

help would be apprecitated.

shaiRos avatar Jun 10 '24 17:06 shaiRos