X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9ceb077afc1ad6755b5b5b9f797fe238eb622c4a..1dbc655235bbc407c33e83bbe827f8e832c4d426:/vendor/assets/leaflet/leaflet.js diff --git a/vendor/assets/leaflet/leaflet.js b/vendor/assets/leaflet/leaflet.js index aecf2677b..bc92d749f 100644 --- a/vendor/assets/leaflet/leaflet.js +++ b/vendor/assets/leaflet/leaflet.js @@ -7,7 +7,7 @@ var oldL = window.L, L = {}; -L.version = '0.7.4'; +L.version = '0.7.5'; // define Leaflet for Node module pattern loaders, including Browserify if (typeof module === 'object' && typeof module.exports === 'object') { @@ -3537,12 +3537,8 @@ L.Marker = L.Class.extend({ update: function () { if (this._icon) { - var pos = this._map.latLngToLayerPoint(this._latlng).round(); - L.Util.requestAnimFrame(function () { - this._setPos(pos); - }, this); + this._setPos(this._map.latLngToLayerPoint(this._latlng).round()); } - return this; }, @@ -3565,7 +3561,7 @@ L.Marker = L.Class.extend({ if (options.title) { icon.title = options.title; } - + if (options.alt) { icon.alt = options.alt; }