]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/map.js.erb
Update to Leaflet 0.5
[rails.git] / app / assets / javascripts / map.js.erb
index 291633f53c1c04079311a7afd4437526ea9a2d48..a18292aaaad74083a26c119d1a206605b2dfb64a 100644 (file)
@@ -1,5 +1,5 @@
 // Leaflet extensions
-L.LatLngBounds.include({
+L.extend(L.LatLngBounds.prototype, {
   getSouthLat: function () {
     return this._southWest.lat;
   },
@@ -32,7 +32,7 @@ L.LatLngBounds.include({
   }
 });
 
-L.Bounds.include({
+L.extend(L.Bounds.prototype, {
   getWidth: function () {
    return this.max.x - this.min.x;
   },