Skip to content

Commit

Permalink
fixed 'null is not an object (evaluating 'this._map.containerPointToL…
Browse files Browse the repository at this point in the history
…ayerPoint')' (#59)

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

* update version number

* updated changelog

* Update leaflet-maplibre-gl.js

Co-authored-by: Ian Wagner <ianwagner+github@switzerlandmail.ch>

---------

Co-authored-by: Ian Wagner <ianwagner+github@switzerlandmail.ch>
  • Loading branch information
smeyer-p2er and ianthetechie authored Jul 16, 2024
1 parent 0dc1016 commit c7ba89c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
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;
}
// 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

0 comments on commit c7ba89c

Please sign in to comment.