update build and changelog, do not prevent tile loading on pan animation

This commit is contained in:
Vladimir Agafonkin 2012-09-11 12:42:00 +03:00
parent 622060d336
commit c92201862c
4 changed files with 11 additions and 7 deletions

View File

@ -15,6 +15,7 @@ An in-progress version being developed on the master branch.
* Improved zoom control to zoom by 3 levels if you hold shift while clicking on a button.
* Added optional `delta` argument to `Map` `zoomIn` and `zoomOut` (1 by default).
* Improved scroll wheel zoom to be more responsive.
* Improved vectors updating/removing on Canvas backend even more (by [@danzel](https://github.com/danzel)). [#961](https://github.com/CloudMade/Leaflet/pull/961)
### Bugfixes
@ -23,6 +24,8 @@ An in-progress version being developed on the master branch.
* Fixed a glitch with zooming in while panning animation is running.
* Fixed a glitch with dragging the map while zoom animation is running.
* Fixed a bug where "Not implemented" error sometimes appeared in IE6-8 (by [@bryguy](https://github.com/bryguy) and [@lookfirst](https://github.com/lookfirst)). [#892](https://github.com/CloudMade/Leaflet/issues/892) [#893](https://github.com/CloudMade/Leaflet/pull/893)
* Fixed a bug where `TileLayer` `bringToBack` didn't work properly in some cases (by [@danzel](https://github.com/danzel)). [#963](https://github.com/CloudMade/Leaflet/pull/963) [#959](https://github.com/CloudMade/Leaflet/issues/959)
* Fixed a bug where removing a tile layer while dragging would throw an error (by [@danzel](https://github.com/danzel)). [#965](https://github.com/CloudMade/Leaflet/issues/965) [#968](https://github.com/CloudMade/Leaflet/pull/968)
## 0.4.4 (August 7, 2012)

11
dist/leaflet-src.js vendored
View File

@ -2091,7 +2091,7 @@ L.TileLayer = L.Class.extend({
}
}
this._container.style.zIndex = isFinite(edgeZIndex) ? edgeZIndex + compare(1, -1) : '';
this.options.zIndex = this._container.style.zIndex = (isFinite(edgeZIndex) ? edgeZIndex : 0) + compare(1, -1);
},
_updateOpacity: function () {
@ -2155,7 +2155,8 @@ L.TileLayer = L.Class.extend({
},
_update: function (e) {
if (this._map._panTransition && this._map._panTransition._inProgress) { return; }
if (!this._map) { return; }
var bounds = this._map.getPixelBounds(),
zoom = this._map.getZoom(),
@ -4140,13 +4141,13 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path :
},
_requestUpdate: function () {
if (this._map) {
L.Util.cancelAnimFrame(this._fireMapMoveEnd);
this._updateRequest = L.Util.requestAnimFrame(this._fireMapMoveEnd, this._map);
if (this._map && !L.Path._updateRequest) {
L.Path._updateRequest = L.Util.requestAnimFrame(this._fireMapMoveEnd, this._map);
}
},
_fireMapMoveEnd: function () {
L.Path._updateRequest = null;
this.fire('moveend');
},

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long

View File

@ -246,7 +246,7 @@ L.TileLayer = L.Class.extend({
_update: function (e) {
if (!this._map || (this._map._panTransition && this._map._panTransition._inProgress)) { return; }
if (!this._map) { return; }
var bounds = this._map.getPixelBounds(),
zoom = this._map.getZoom(),