[OpenLayers-Commits] r11823 - sandbox/cmoullet/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Mar 31 03:32:59 EDT 2011


Author: cmoullet
Date: 2011-03-31 00:32:58 -0700 (Thu, 31 Mar 2011)
New Revision: 11823

Modified:
   sandbox/cmoullet/openlayers/examples/mobile-layers.js
Log:
Mobile Example with WMS, KML and WFS


Modified: sandbox/cmoullet/openlayers/examples/mobile-layers.js
===================================================================
--- sandbox/cmoullet/openlayers/examples/mobile-layers.js	2011-03-31 07:01:35 UTC (rev 11822)
+++ sandbox/cmoullet/openlayers/examples/mobile-layers.js	2011-03-31 07:32:58 UTC (rev 11823)
@@ -33,11 +33,8 @@
             new OpenLayers.Control.ZoomPanel()
         ],
         layers: [
-            new OpenLayers.Layer.OSM("OpenStreetMap", null, {
-                transitionEffect: 'resize'
-            }),
             new OpenLayers.Layer.WMS("OpenLayers WMS",
-                    "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'}, {isBaseLayer: false})
+                    "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'}, {isBaseLayer: true, transitionEffect: 'resize'})
         ]
     });
     var sundials = new OpenLayers.Layer.Vector("KML", {
@@ -66,24 +63,6 @@
         renderers: renderer
     });
 
-    // If tile matrix identifiers differ from zoom levels (0, 1, 2, ...)
-    // then they must be explicitly provided.
-    var matrixIds = new Array(26);
-    for (var i=0; i<26; ++i) {
-        matrixIds[i] = "EPSG:900913:" + i;
-    }
-
-    var wmts = new OpenLayers.Layer.WMTS({
-        name: "Medford Buildings",
-        url: "http://v2.suite.opengeo.org/geoserver/gwc/service/wmts/",
-        layer: "medford:buildings",
-        matrixSet: "EPSG:900913",
-        matrixIds: matrixIds,
-        format: "image/png",
-        style: "_null",
-        opacity: 0.7,
-        isBaseLayer: false
-    });
-    map.addLayers([wmts, wfs, sundials]);
-    map.setCenter(new OpenLayers.LonLat(-13677832, 5213272), 13);
+    map.addLayers([wfs, sundials]);
+    map.zoomToMaxExtent();
 };



More information about the Commits mailing list