X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b0453833b1e699a65ba1e9918eb8a5d8e02eb6e0..0d3a9ed9cb47ce3b89ea9eaffbb589f9a9ff6d22:/app/assets/javascripts/map.js.erb diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index 9c3aa9e36..50b0fe441 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -13,13 +13,13 @@ function createMap(divName, options) { new OpenLayers.Control.Attribution(), new SimpleLayerSwitcher(), new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanZoom(), - new OpenLayers.Control.PanZoomBar(), + new OpenLayers.Control.Zoom(), + new OpenLayers.Control.SimplePanZoom(), new OpenLayers.Control.ScaleLine({geodesic: true}) ], numZoomLevels: 20, displayProjection: new OpenLayers.Projection("EPSG:4326"), - theme: "<%= asset_path 'theme/default/style.css' %>" + theme: "<%= asset_path 'theme/openstreetmap/style.css' %>" }); var mapnik = new OpenLayers.Layer.OSM.Mapnik(i18n("javascripts.map.base.standard"), { @@ -67,7 +67,6 @@ function createMap(divName, options) { markers = new OpenLayers.Layer.Markers("Markers", { displayInLayerSwitcher: false, numZoomLevels: 20, - maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508), projection: "EPSG:900913" }); map.addLayer(markers); @@ -77,7 +76,7 @@ function createMap(divName, options) { function getArrowIcon() { var size = new OpenLayers.Size(25, 22); - var offset = new OpenLayers.Pixel(-30, -27); + var offset = new OpenLayers.Pixel(-22, -20); var icon = new OpenLayers.Icon("<%= asset_path 'arrow.png' %>", size, offset); return icon;