vue-leaflet / vue-leaflet

vue-leaflet compatible with vue3
MIT License
751 stars 118 forks source link

Pins showing, but not path; Cannot read properties of undefined (reading 'x') #372

Open leifgiering opened 7 months ago

leifgiering commented 7 months ago

I'm trying to use Leaflet with OpenStreetMap and Nuxt3 to show the route between two given locations, but it only shows the pins. I have confirmed that the coordinates are formatted correctly, so I'm not sure why I'm getting an 'undefined' error.

Here is the full component: https://pastebin.com/L83n1chH

leaflet_issue_2

leaflet_issue

rijesha commented 3 months ago

This is the vue-leaflet github and you are not using vue-leaflet. You should post to https://github.com/Leaflet/Leaflet