Remove object parameter from share URL
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 5 Dec 2013 18:59:15 +0000 (10:59 -0800)
committerTom Hughes <tom@compton.nu>
Thu, 5 Dec 2013 19:09:33 +0000 (19:09 +0000)
Fixes #616
Fixes #624

app/assets/javascripts/leaflet.map.js.erb

index af7ce202da4ec23f2bee1f018d9c0efc93b39139..ed89e1fa572106acbd4c414349040cbb915dbf45 100644 (file)
@@ -100,10 +100,6 @@ L.OSM.Map = L.Map.extend({
       params.mlon = latLng.lng.toFixed(precision);
     }
 
-    if (this._object) {
-      params[this._object.type] = this._object.id;
-    }
-
     var url = 'http://' + OSM.SERVER_URL + '/',
       query = querystring.stringify(params),
       hash = OSM.formatHash(this);