diff options
Diffstat (limited to 'misc/openlayers/examples/fullScreen.js')
-rw-r--r-- | misc/openlayers/examples/fullScreen.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/openlayers/examples/fullScreen.js b/misc/openlayers/examples/fullScreen.js new file mode 100644 index 0000000..1e03a53 --- /dev/null +++ b/misc/openlayers/examples/fullScreen.js @@ -0,0 +1,20 @@ +var map = new OpenLayers.Map({ + div: "map", + layers: [ + new OpenLayers.Layer.OSM("OSM (without buffer)"), + new OpenLayers.Layer.OSM("OSM (with buffer)", null, {buffer: 2}) + ], + controls: [ + new OpenLayers.Control.Navigation({ + dragPanOptions: { + enableKinetic: true + } + }), + new OpenLayers.Control.PanZoom(), + new OpenLayers.Control.Attribution() + ], + center: [0, 0], + zoom: 3 +}); + +map.addControl(new OpenLayers.Control.LayerSwitcher()); |