From ea346a785dc1b3f7c156f6fc33da634e1f1a627b Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Tue, 12 Aug 2014 21:56:44 +0200 Subject: Adding jquery, flot and openlayers to be included with the GEM. --- misc/openlayers/examples/example.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 misc/openlayers/examples/example.js (limited to 'misc/openlayers/examples/example.js') diff --git a/misc/openlayers/examples/example.js b/misc/openlayers/examples/example.js new file mode 100644 index 0000000..d02e530 --- /dev/null +++ b/misc/openlayers/examples/example.js @@ -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(); -- cgit v1.2.3