X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/07aa5ade6704a5b963ad964cb2e923a01bda5561..87127d41e95380236ba7652b14a86059ff6eeedc:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index d1527207f..2678ba282 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -334,7 +334,7 @@ $(document).ready(function () { }; function addObject(type, id, center) { - map.addObject({type: type, id: parseInt(id)}, function(bounds) { + map.addObject({type: type, id: parseInt(id, 10)}, function(bounds) { if (!window.location.hash && bounds.isValid() && (center || !map.getBounds().contains(bounds))) { OSM.router.withoutMoveListener(function () {