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

New error in 2.4.1 - "Cannot set property latRange of #<ba>" #133

Open
gaspo opened this issue Oct 31, 2024 · 2 comments
Open

New error in 2.4.1 - "Cannot set property latRange of #<ba>" #133

gaspo opened this issue Oct 31, 2024 · 2 comments

Comments

@gaspo
Copy link

gaspo commented Oct 31, 2024

Hi, I started to get this error with the latest release v2.4.1. Everything works on v2.4.0.

Uncaught (in promise) TypeError: Cannot set property latRange of #<ba> which has only a getter
    at e._initMaptilerSDK (leaflet-maptilersdk.js:1:4268)
    at e.onAdd (leaflet-maptilersdk.js:1:1450)
    at e._layerAdd (Layer.js:114:8)
    at e.whenReady (Map.js:1477:13)
    at e.addLayer (Layer.js:172:8)
    at e.addTo (Layer.js:52:7))

I didnt notice any changes that could cause this issue in the changelog. Is there anything i can help with? Im reverting to 2.4.0 for now.

@jonathanlurie
Copy link
Collaborator

hello @gaspo , so the error you have seems to be related to https://github.com/maptiler/leaflet-maptilersdk , rather than the SDK. Do you confirm?

@gaspo
Copy link
Author

gaspo commented Nov 4, 2024

Hi, yes, i thought so as well. But there has not been any changes lately in that source code. The only difference I found is the version of this project - 2.4.1 vs 2.4.0 . Using the newest one gives me this error. I will try to prepare some stripped down example.

Also maybe not the right place to ask this, but what is this change? What is version 2.3.1?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants