Add a maplint layer to the map. Note that the t@h server currently serves
authorTom Hughes <tom@compton.nu>
Mon, 31 Dec 2007 09:08:30 +0000 (09:08 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 31 Dec 2007 09:08:30 +0000 (09:08 +0000)
solid grey tiles for tiles which are not in the database which limits the
utility of this.

Closes #484.

public/javascripts/map.js

index 4a5cd844baf415bcefb9bdaab4b80b18debeb7cc..abbc7f8eaa9a81860a96836f2b5a7f255fcfeeb9 100644 (file)
@@ -15,6 +15,9 @@ function createMap(divName) {
    var osmarender = new OpenLayers.Layer.OSM.Osmarender("Osmarender", { displayOutsideMaxExtent: true });
    map.addLayer(osmarender);
 
+   var maplint = new OpenLayers.Layer.OSM.Maplint("Maplint", { displayOutsideMaxExtent: true });
+   map.addLayer(maplint);
+
    var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels);
    markers = new OpenLayers.Layer.Markers("Markers", { 
       displayInLayerSwitcher: false, numZoomLevels: numZoomLevels,