update build and changelog
This commit is contained in:
parent
140cace2a7
commit
4551633b9c
12
CHANGELOG.md
12
CHANGELOG.md
@ -7,9 +7,19 @@ Leaflet Changelog
|
|||||||
|
|
||||||
An in-progress version being developed on the master branch.
|
An in-progress version being developed on the master branch.
|
||||||
|
|
||||||
* Fixed `Polygon` to filter out last point if it's equal to the first one (to GeoJSON polygon issues) (by [@snkashis](https://github.com/snkashis)). [#1153](https://github.com/Leaflet/Leaflet/pull/1153) [#1135](https://github.com/Leaflet/Leaflet/issues/1135)
|
### Improvements
|
||||||
|
|
||||||
* Added `Control.Layers` `overlayadd` and `overlayremove` events (by [@calvinmetcalf](https://github.com/calvinmetcalf)). [#1286](https://github.com/Leaflet/Leaflet/issues/1286)
|
* Added `Control.Layers` `overlayadd` and `overlayremove` events (by [@calvinmetcalf](https://github.com/calvinmetcalf)). [#1286](https://github.com/Leaflet/Leaflet/issues/1286)
|
||||||
* Updated `TileLayer.Canvas` `redraw` method to return `this` (by [@jieter](https://github.com/jieter)). [#1287](https://github.com/Leaflet/Leaflet/pull/1287)
|
* Updated `TileLayer.Canvas` `redraw` method to return `this` (by [@jieter](https://github.com/jieter)). [#1287](https://github.com/Leaflet/Leaflet/pull/1287)
|
||||||
|
* Added `LayerGroup` `hasLayer` method (by [@rvlasveld](https://github.com/rvlasveld)). [#1282](https://github.com/Leaflet/Leaflet/issues/1282) [#1300](https://github.com/Leaflet/Leaflet/pull/1300)
|
||||||
|
* Improved `Polygon` to filter out last point if it's equal to the first one (to fix GeoJSON polygon issues) (by [@snkashis](https://github.com/snkashis)). [#1153](https://github.com/Leaflet/Leaflet/pull/1153) [#1135](https://github.com/Leaflet/Leaflet/issues/1135)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
* Fixed a regression with `GeoJSON` not accepting arrays of `FeatureCollection` (by [@snkashis](https://github.com/snkashis)). [#1299](https://github.com/Leaflet/Leaflet/pull/1299) [#1298](https://github.com/Leaflet/Leaflet/issues/1298)
|
||||||
|
* Fixed a bug where default marker icon path wasn't properly detected in some cases in IE6-7 (by [@calvinmetcalf](https://github.com/calvinmetcalf)). [#1294](https://github.com/Leaflet/Leaflet/pull/1294)
|
||||||
|
* Fixed a bug where `Map` `hasLayer` wasn't handling `null` objects (by [@rvlasveld](https://github.com/rvlasveld)). [#1282](https://github.com/Leaflet/Leaflet/issues/1282) [#1302](https://github.com/Leaflet/Leaflet/pull/1302)
|
||||||
|
|
||||||
|
|
||||||
## 0.5 (January 17, 2013)
|
## 0.5 (January 17, 2013)
|
||||||
|
|
||||||
|
16
dist/leaflet-src.js
vendored
16
dist/leaflet-src.js
vendored
@ -1523,6 +1523,8 @@ L.Map = L.Class.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
hasLayer: function (layer) {
|
hasLayer: function (layer) {
|
||||||
|
if (!layer) { return false; }
|
||||||
|
|
||||||
var id = L.stamp(layer);
|
var id = L.stamp(layer);
|
||||||
return this._layers.hasOwnProperty(id);
|
return this._layers.hasOwnProperty(id);
|
||||||
},
|
},
|
||||||
@ -3039,14 +3041,15 @@ L.Icon.Default.imagePath = (function () {
|
|||||||
var scripts = document.getElementsByTagName('script'),
|
var scripts = document.getElementsByTagName('script'),
|
||||||
leafletRe = /\/?leaflet[\-\._]?([\w\-\._]*)\.js\??/;
|
leafletRe = /\/?leaflet[\-\._]?([\w\-\._]*)\.js\??/;
|
||||||
|
|
||||||
var i, len, src, matches;
|
var i, len, src, matches, path;
|
||||||
|
|
||||||
for (i = 0, len = scripts.length; i < len; i++) {
|
for (i = 0, len = scripts.length; i < len; i++) {
|
||||||
src = scripts[i].src;
|
src = scripts[i].src;
|
||||||
matches = src.match(leafletRe);
|
matches = src.match(leafletRe);
|
||||||
|
|
||||||
if (matches) {
|
if (matches) {
|
||||||
return src.split(leafletRe)[0] + '/images';
|
path = src.split(leafletRe)[0];
|
||||||
|
return (path ? path + '/' : '') + 'images';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
@ -3767,6 +3770,13 @@ L.LayerGroup = L.Class.extend({
|
|||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
hasLayer: function (layer) {
|
||||||
|
if (!layer) { return false; }
|
||||||
|
|
||||||
|
var id = L.stamp(layer);
|
||||||
|
return this._layers.hasOwnProperty(id);
|
||||||
|
},
|
||||||
|
|
||||||
clearLayers: function () {
|
clearLayers: function () {
|
||||||
this.eachLayer(this.removeLayer, this);
|
this.eachLayer(this.removeLayer, this);
|
||||||
return this;
|
return this;
|
||||||
@ -5449,7 +5459,7 @@ L.GeoJSON = L.FeatureGroup.extend({
|
|||||||
if (features) {
|
if (features) {
|
||||||
for (i = 0, len = features.length; i < len; i++) {
|
for (i = 0, len = features.length; i < len; i++) {
|
||||||
// Only add this if geometry or geometries are set and not null
|
// Only add this if geometry or geometries are set and not null
|
||||||
if (features[i].geometries || features[i].geometry) {
|
if (features[i].geometries || features[i].geometry || features[i].features) {
|
||||||
this.addData(features[i]);
|
this.addData(features[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
8
dist/leaflet.js
vendored
8
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user