From 69158665f3dfa5dbede350cc2aa4e58342480de1 Mon Sep 17 00:00:00 2001 From: Steve Coast Date: Tue, 28 Nov 2006 13:12:17 +0000 Subject: [PATCH] add layers to rails --- app/views/site/index.rhtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index d6b18346a..a7dbd15e3 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -40,8 +40,13 @@ } map = new OpenLayers.Map( "map", {maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), maxResolution:156543, units:'meters', projection: "EPSG:41001"} ); - layer = new OpenLayers.Layer.LikeGoogle( "OSM", "http://artem.dev.openstreetmap.org/osm_tiles/", {type:'png'} ); + layer = new OpenLayers.Layer.LikeGoogle( "Mapnik", "http://artem.dev.openstreetmap.org/osm_tiles/", {type:'png'} ); map.addLayer(layer); + layer = new OpenLayers.Layer.LikeGoogle( "Osmarender", "http://osmathome.bandnet.org/Tiles/", {type:'png'} ); + map.addLayer(layer); + layer = new OpenLayers.Layer.WMS( "Mapnik WMS-C", "http://labs.metacarta.com/wms-c/Basic.py?", {layers:'osm-merc'}); + map.addLayer(layer); + map.addControl(new OpenLayers.Control.LayerSwitcher()); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); -- 2.39.5