Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Marker> was created without expected prop 'lng' #12

Closed
nfk opened this issue Jun 23, 2020 · 2 comments
Closed

<Marker> was created without expected prop 'lng' #12

nfk opened this issue Jun 23, 2020 · 2 comments

Comments

@nfk
Copy link
Contributor

nfk commented Jun 23, 2020

2 parameters are expected about longitude to initialize a Marker. lon or lng see https://github.com/beyonk-adventures/svelte-mapbox/blob/1041b7f165d07f9b04b9203a3cd29fae1cf1d777/src/Marker.svelte#L29. This leads to a console warning <Marker> was created without expected prop 'lng'

@antony
Copy link
Member

antony commented Jun 23, 2020

Interesting, I'm not sure at all why this change was made.

@antony
Copy link
Member

antony commented Jul 24, 2020

Looks like I tried to support lon || lng and messed it up. Serves me right for not having any tests.

Fixed in v5.0.0

@antony antony closed this as completed Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants