From: Antoine Beaupré Date: Sat, 11 Aug 2012 15:15:31 +0000 (-0400) Subject: simplify local tile code, uniform titles X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2fb93db1afea846447cfe8ce723af80e2aa25882;p=ikiwiki.git simplify local tile code, uniform titles --- diff --git a/underlays/osm/ikiwiki/osm.js b/underlays/osm/ikiwiki/osm.js index c41aeeb1f..4f53b1dc8 100644 --- a/underlays/osm/ikiwiki/osm.js +++ b/underlays/osm/ikiwiki/osm.js @@ -42,10 +42,9 @@ function mapsetup(divname, options) { }); if (options.mapurl) { - var newLayer = new OpenLayers.Layer.OSM("Local Tiles", options.mapurl); - map.addLayer(newLayer); + map.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap (Local)", options.mapurl)); } else { - map.addLayer(new OpenLayers.Layer.OSM()); + map.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap (Mapnik)")); } // this nightmare is possible through http://docs.openlayers.org/library/spherical_mercator.html