Update build and changelog
This commit is contained in:
parent
fdde989f05
commit
f36c27851b
@ -107,6 +107,8 @@ Leaflet Changelog
|
|||||||
|
|
||||||
* Fixed a bug that caused an error when clicking vector layers under iOS. [#204](https://github.com/CloudMade/Leaflet/issues/204)
|
* Fixed a bug that caused an error when clicking vector layers under iOS. [#204](https://github.com/CloudMade/Leaflet/issues/204)
|
||||||
* Fixed crash on Android 3+ when panning or zooming (by [@florian](https://github.com/florianf)). [#137](https://github.com/CloudMade/Leaflet/issues/137)
|
* Fixed crash on Android 3+ when panning or zooming (by [@florian](https://github.com/florianf)). [#137](https://github.com/CloudMade/Leaflet/issues/137)
|
||||||
|
* Fixed a bug on Android 2/3 that sometimes caused the map to disappear after zooming. [#69](https://github.com/CloudMade/Leaflet/issues/69)
|
||||||
|
* Fixed a bug on Android 3 that caused tiles to shift position on a big map.
|
||||||
* Fixed a bug that caused the map to pan when touch-panning inside a popup. [#452](https://github.com/CloudMade/Leaflet/issues/452)
|
* Fixed a bug that caused the map to pan when touch-panning inside a popup. [#452](https://github.com/CloudMade/Leaflet/issues/452)
|
||||||
* Fixed a bug that caused click delays on zoom control.
|
* Fixed a bug that caused click delays on zoom control.
|
||||||
|
|
||||||
|
18
dist/leaflet-src.js
vendored
18
dist/leaflet-src.js
vendored
@ -636,8 +636,13 @@ L.DomUtil = {
|
|||||||
|
|
||||||
setPosition: function (el, point) {
|
setPosition: function (el, point) {
|
||||||
el._leaflet_pos = point;
|
el._leaflet_pos = point;
|
||||||
if (L.Browser.webkit && !L.Browser.android) {
|
if (L.Browser.webkit3d) {
|
||||||
el.style[L.DomUtil.TRANSFORM] = L.DomUtil.getTranslateString(point);
|
el.style[L.DomUtil.TRANSFORM] = L.DomUtil.getTranslateString(point);
|
||||||
|
|
||||||
|
if (L.Browser.android) {
|
||||||
|
el.style['-webkit-perspective'] = '1000';
|
||||||
|
el.style['-webkit-backface-visibility'] = 'hidden';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
el.style.left = point.x + 'px';
|
el.style.left = point.x + 'px';
|
||||||
el.style.top = point.y + 'px';
|
el.style.top = point.y + 'px';
|
||||||
@ -1605,7 +1610,7 @@ L.TileLayer = L.Class.extend({
|
|||||||
|
|
||||||
unloadInvisibleTiles: L.Browser.mobile,
|
unloadInvisibleTiles: L.Browser.mobile,
|
||||||
updateWhenIdle: L.Browser.mobile,
|
updateWhenIdle: L.Browser.mobile,
|
||||||
reuseTiles: false
|
reuseTiles: L.Browser.mobile
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function (url, options, urlParams) {
|
initialize: function (url, options, urlParams) {
|
||||||
@ -1725,7 +1730,7 @@ L.TileLayer = L.Class.extend({
|
|||||||
var bounds = this._map.getPixelBounds(),
|
var bounds = this._map.getPixelBounds(),
|
||||||
zoom = this._map.getZoom(),
|
zoom = this._map.getZoom(),
|
||||||
tileSize = this.options.tileSize;
|
tileSize = this.options.tileSize;
|
||||||
|
|
||||||
if (zoom > this.options.maxZoom || zoom < this.options.minZoom) {
|
if (zoom > this.options.maxZoom || zoom < this.options.minZoom) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1788,17 +1793,14 @@ L.TileLayer = L.Class.extend({
|
|||||||
tile = this._tiles[key];
|
tile = this._tiles[key];
|
||||||
this.fire("tileunload", {tile: tile, url: tile.src});
|
this.fire("tileunload", {tile: tile, url: tile.src});
|
||||||
|
|
||||||
// evil, don't do this! crashes Android 3, produces load errors, doesn't solve memory leaks
|
|
||||||
// this._tiles[key].src = '';
|
|
||||||
|
|
||||||
//tile.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';
|
|
||||||
|
|
||||||
if (tile.parentNode === this._container) {
|
if (tile.parentNode === this._container) {
|
||||||
this._container.removeChild(tile);
|
this._container.removeChild(tile);
|
||||||
}
|
}
|
||||||
if (this.options.reuseTiles) {
|
if (this.options.reuseTiles) {
|
||||||
this._unusedTiles.push(this._tiles[key]);
|
this._unusedTiles.push(this._tiles[key]);
|
||||||
}
|
}
|
||||||
|
//tile.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';
|
||||||
|
|
||||||
delete this._tiles[key];
|
delete this._tiles[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
dist/leaflet.js
vendored
2
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user