Skip to content

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

Open
@leifgiering

Description

@leifgiering

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions