]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
simplify local tile code, uniform titles
authorAntoine Beaupré <anarcat@koumbit.org>
Sat, 11 Aug 2012 15:15:31 +0000 (11:15 -0400)
committerAntoine Beaupré <anarcat@koumbit.org>
Sat, 25 Aug 2012 12:20:30 +0000 (08:20 -0400)
underlays/osm/ikiwiki/osm.js

index c41aeeb1f37c37b64a16832ce1bc8e0e0bc615b3..4f53b1dc8e2c97798ed93e9d0fa1d74139ed56d6 100644 (file)
@@ -42,10 +42,9 @@ function mapsetup(divname, options) {
        });
 
        if (options.mapurl) {
        });
 
        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 {
        } 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
        }
 
        // this nightmare is possible through http://docs.openlayers.org/library/spherical_mercator.html