Updating basic example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
23
examples/example.js
Normal file
23
examples/example.js
Normal file
@@ -0,0 +1,23 @@
|
||||
var map = new OpenLayers.Map("map");
|
||||
|
||||
var ol_wms = new OpenLayers.Layer.WMS(
|
||||
"OpenLayers WMS",
|
||||
"http://vmap0.tiles.osgeo.org/wms/vmap0",
|
||||
{layers: "basic"}
|
||||
);
|
||||
|
||||
var dm_wms = new OpenLayers.Layer.WMS(
|
||||
"Canadian Data",
|
||||
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
|
||||
{
|
||||
layers: "bathymetry,land_fn,park,drain_fn,drainage," +
|
||||
"prov_bound,fedlimit,rail,road,popplace",
|
||||
transparent: "true",
|
||||
format: "image/png"
|
||||
},
|
||||
{isBaseLayer: false, visibility: false}
|
||||
);
|
||||
|
||||
map.addLayers([ol_wms, dm_wms]);
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
map.zoomToMaxExtent();
|
||||
Reference in New Issue
Block a user