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

null is not an object (evaluating 'this._map.containerPointToLayerPoint') #58

Open
smeyer-p2er opened this issue Jul 8, 2024 · 1 comment

Comments

@smeyer-p2er
Copy link
Contributor

smeyer-p2er commented Jul 8, 2024

I'm facing the issue following issue:

null is not an object (evaluating 'this._map.containerPointToLayerPoint')

as seen in the original mapbox-package (https://github.com/mapbox/mapbox-gl-leaflet/blob/master/leaflet-mapbox-gl.js)
on:
https://github.com/mapbox/mapbox-gl-leaflet/blob/df9c10ccf4fe92238f97ea0d64d8366ec709d5d3/leaflet-mapbox-gl.js#L159-L1

the _update method will return, if this._map is not null.

in the current release of

// update the offset so we can correct for it later when we zoom

this part is missing
if (!this._map) { return; }

@TreehouseNorris
Copy link

Resolved in version 0.0.22 from c7ba89c

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