update build and changelog
This commit is contained in:
parent
7622bfea8f
commit
a393cdec20
@ -7,8 +7,12 @@ Leaflet Changelog
|
||||
|
||||
An in-progress version being developed on the master branch.
|
||||
|
||||
## 0.4.1 (July 31, 2012)
|
||||
|
||||
* Fixed a bug that caused marker shadows appear as opaque black in IE6-8. [#850](https://github.com/CloudMade/Leaflet/issues/850)
|
||||
* Fixed a bug with incorrect calculation of scale by the scale control. [#852](https://github.com/CloudMade/Leaflet/issues/852)
|
||||
* Fixed broken L.tileLayer.wms class factory (by [@mattcurrie](https://github.com/mattcurrie)). [#856](https://github.com/CloudMade/Leaflet/issues/856)
|
||||
* Improved retina detection for `TileLayer` `detectRetina` option (by [@sxua](https://github.com/sxua)). [#854](https://github.com/CloudMade/Leaflet/issues/854)
|
||||
|
||||
## 0.4 (July 30, 2012)
|
||||
|
||||
|
14
dist/leaflet-src.js
vendored
14
dist/leaflet-src.js
vendored
@ -21,7 +21,7 @@ if (typeof exports !== undefined + '') {
|
||||
window.L = L;
|
||||
}
|
||||
|
||||
L.version = '0.4';
|
||||
L.version = '0.4.1';
|
||||
|
||||
|
||||
/*
|
||||
@ -382,6 +382,8 @@ L.Mixin.Events.fire = L.Mixin.Events.fireEvent;
|
||||
return supported;
|
||||
}());
|
||||
|
||||
var retina = (('devicePixelRatio' in window && window.devicePixelRatio > 1) || ('matchMedia' in window && window.matchMedia("(min-resolution:144dpi)").matches));
|
||||
|
||||
L.Browser = {
|
||||
ua: ua,
|
||||
ie: ie,
|
||||
@ -405,7 +407,9 @@ L.Mixin.Events.fire = L.Mixin.Events.fireEvent;
|
||||
mobileWebkit3d: mobile && webkit3d,
|
||||
mobileOpera: mobile && opera,
|
||||
|
||||
touch: touch
|
||||
touch: touch,
|
||||
|
||||
retina: retina
|
||||
};
|
||||
}());
|
||||
|
||||
@ -1890,7 +1894,7 @@ L.TileLayer = L.Class.extend({
|
||||
options = L.Util.setOptions(this, options);
|
||||
|
||||
// detecting retina displays, adjusting tileSize and zoom levels
|
||||
if (options.detectRetina && window.devicePixelRatio > 1 && options.maxZoom > 0) {
|
||||
if (options.detectRetina && L.Browser.retina && options.maxZoom > 0) {
|
||||
|
||||
options.tileSize = Math.floor(options.tileSize / 2);
|
||||
options.zoomOffset++;
|
||||
@ -2398,7 +2402,7 @@ L.TileLayer.WMS = L.TileLayer.extend({
|
||||
|
||||
var wmsParams = L.Util.extend({}, this.defaultWmsParams);
|
||||
|
||||
if (options.detectRetina && window.devicePixelRatio > 1) {
|
||||
if (options.detectRetina && L.Browser.retina) {
|
||||
wmsParams.width = wmsParams.height = this.options.tileSize * 2;
|
||||
} else {
|
||||
wmsParams.width = wmsParams.height = this.options.tileSize;
|
||||
@ -2456,7 +2460,7 @@ L.TileLayer.WMS = L.TileLayer.extend({
|
||||
});
|
||||
|
||||
L.tileLayer.wms = function (url, options) {
|
||||
return new L.TileLayer(url, options);
|
||||
return new L.TileLayer.WMS(url, options);
|
||||
};
|
||||
|
||||
|
||||
|
2
dist/leaflet.js
vendored
2
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
@ -14,4 +14,4 @@ if (typeof exports !== undefined + '') {
|
||||
window.L = L;
|
||||
}
|
||||
|
||||
L.version = '0.4';
|
||||
L.version = '0.4.1';
|
||||
|
Loading…
Reference in New Issue
Block a user