Use OSM tiles for the wfs-snap-split.html example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -112,13 +112,7 @@
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
var wms = new OpenLayers.Layer.WMS(
|
var osm = new OpenLayers.Layer.OSM();
|
||||||
"Base Layer", "http://demo.opengeo.org/geoserver_openstreetmap/gwc/service/wms",
|
|
||||||
{
|
|
||||||
layers: 'openstreetmap',
|
|
||||||
format: 'image/png'
|
|
||||||
}
|
|
||||||
);
|
|
||||||
var styles = new OpenLayers.StyleMap({
|
var styles = new OpenLayers.StyleMap({
|
||||||
"default": new OpenLayers.Style(null, {
|
"default": new OpenLayers.Style(null, {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -186,7 +180,7 @@
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
map.addLayers([wms, wfs]);
|
map.addLayers([osm, wfs]);
|
||||||
|
|
||||||
// configure the snapping agent
|
// configure the snapping agent
|
||||||
var snap = new OpenLayers.Control.Snapping({layer: wfs});
|
var snap = new OpenLayers.Control.Snapping({layer: wfs});
|
||||||
|
|||||||
Reference in New Issue
Block a user