]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/osm.js.erb
Use html5shiv for IE8 compatibility
[rails.git] / app / assets / javascripts / osm.js.erb
index cb37373518341fb44807973da75bf0732dc53fff..4c5faa8293d959eff71b7d0e2a6abf3cb4d8915f 100644 (file)
@@ -147,7 +147,7 @@ OSM = {
       zoom = args.getZoom();
       layers = args.getLayersCode();
     } else {
-      center = L.latLng(args.lat, args.lon);
+      center = args.center || L.latLng(args.lat, args.lon);
       zoom = args.zoom;
       layers = args.layers || '';
     }