[OpenLayers-Commits] r11901 - trunk/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Apr 21 17:59:29 EDT 2011
Author: tschaub
Date: 2011-04-21 14:59:28 -0700 (Thu, 21 Apr 2011)
New Revision: 11901
Modified:
trunk/openlayers/examples/wfs-snap-split.html
Log:
Use OSM tiles for the wfs-snap-split.html example.
Modified: trunk/openlayers/examples/wfs-snap-split.html
===================================================================
--- trunk/openlayers/examples/wfs-snap-split.html 2011-04-21 17:42:28 UTC (rev 11900)
+++ trunk/openlayers/examples/wfs-snap-split.html 2011-04-21 21:59:28 UTC (rev 11901)
@@ -112,13 +112,7 @@
]
});
- var wms = new OpenLayers.Layer.WMS(
- "Base Layer", "http://demo.opengeo.org/geoserver_openstreetmap/gwc/service/wms",
- {
- layers: 'openstreetmap',
- format: 'image/png'
- }
- );
+ var osm = new OpenLayers.Layer.OSM();
var styles = new OpenLayers.StyleMap({
"default": new OpenLayers.Style(null, {
rules: [
@@ -186,7 +180,7 @@
})
});
- map.addLayers([wms, wfs]);
+ map.addLayers([osm, wfs]);
// configure the snapping agent
var snap = new OpenLayers.Control.Snapping({layer: wfs});
More information about the Commits
mailing list