[Pkg-javascript-commits] [leaflet] 81/301: fix resize tracking on multiple maps, close #1980
Jonas Smedegaard
js at moszumanska.debian.org
Mon Jan 27 22:22:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet.
commit 62b23b42e030dc49b3c0a387b027a1d115c8431f
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date: Wed Aug 28 17:56:43 2013 +0300
fix resize tracking on multiple maps, close #1980
---
CHANGELOG.md | 1 +
src/map/Map.js | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index deeacca..32a6915 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ An in-progress version being developed on the `master` branch.
### Bugfixes
* Fixed a bug where `toGeoJSON` of layers originated from GeoJSON GeometryCollection and MultiPoint didn't work properly (wasn't round-tripped). [#1956](https://github.com/Leaflet/Leaflet/issues/1956)
+* Fixed a bug where all maps except the first one on a page didn't track window resize. [#1980](https://github.com/Leaflet/Leaflet/issues/1980)
* Fixed a bug where `Map` `getCenter` returned old result after map container size changed (by [@jfirebaugh](https://github.com/jfirebaugh)). [#1940](https://github.com/Leaflet/Leaflet/issues/1940) [#1919](https://github.com/Leaflet/Leaflet/issues/1919)
* Fixed `GeoJSON` dependencies in build configuration that could lead to a broken custom build in some situations (by [@alubchuk](https://github.com/alubchuk)). [#1909](https://github.com/Leaflet/Leaflet/issues/1909)
* Fixed a bug where `CircleMarker` popup placement wasn't updated after calling `setLatLng` (by [@snkashis](https://github.com/snkashis)). [#1921](https://github.com/Leaflet/Leaflet/issues/1921) [#1927](https://github.com/Leaflet/Leaflet/issues/1927)
diff --git a/src/map/Map.js b/src/map/Map.js
index 28a2ca5..048b116 100644
--- a/src/map/Map.js
+++ b/src/map/Map.js
@@ -23,8 +23,13 @@ L.Map = L.Class.extend({
initialize: function (id, options) { // (HTMLElement or String, Object)
options = L.setOptions(this, options);
+
this._initContainer(id);
this._initLayout();
+
+ // hack for https://github.com/Leaflet/Leaflet/issues/1980
+ // this._onResize = L.bind(this._onResize, this);
+
this._initEvents();
if (options.maxBounds) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git
More information about the Pkg-javascript-commits
mailing list