X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5620d7263a36fe842f4d97bc21dda5edd0651b37..4d8ea0eed0d47b3547f222fbc47524328bbd23a7:/public/javascripts/map.js diff --git a/public/javascripts/map.js b/public/javascripts/map.js index c7f381d84..9b144c560 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -8,7 +8,8 @@ OpenLayers._getScriptLocation = function () { } function createMap(divName, options) { - if (!options) { options = {} } + options = options || {}; + map = new OpenLayers.Map(divName, { controls: options.controls || [ new OpenLayers.Control.ArgParser(), @@ -40,9 +41,6 @@ function createMap(divName, options) { wrapDateLine: true }); map.addLayer(maplint); - var data = new OpenLayers.Layer.Data("Data", {'visibility': false}); - map.addLayer(data); - map.dataLayer = data; var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels); markers = new OpenLayers.Layer.Markers("Markers", {