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

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

Merged
merged 4 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 0.0.22 - 2024-07-08

### Fixed

- Fix [#29](https://github.com/maplibre/maplibre-gl-leaflet/issues/58) - added missing guard for empty object

## 0.0.20 - 2023-09-19

### Added
Expand Down
3 changes: 3 additions & 0 deletions leaflet-maplibre-gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
},

_update: function (e) {
if (!this._map) {
return;
}
smeyer-p2er marked this conversation as resolved.
Show resolved Hide resolved
// update the offset so we can correct for it later when we zoom
this._offset = this._map.containerPointToLayerPoint([0, 0]);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maplibre/maplibre-gl-leaflet",
"version": "0.0.21",
"version": "0.0.22",
"description": "Supports adding Maplibre GL Web to a Leaflet Map as a layer",
"main": "leaflet-maplibre-gl.js",
"directories": {
Expand Down