summaryrefslogtreecommitdiff
path: root/misc/openlayers/examples/mobile-navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/openlayers/examples/mobile-navigation.js')
-rw-r--r--misc/openlayers/examples/mobile-navigation.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/misc/openlayers/examples/mobile-navigation.js b/misc/openlayers/examples/mobile-navigation.js
new file mode 100644
index 0000000..3d4818a
--- /dev/null
+++ b/misc/openlayers/examples/mobile-navigation.js
@@ -0,0 +1,24 @@
+var map;
+
+function init() {
+ map = new OpenLayers.Map({
+ div: "map",
+ theme: null,
+ projection: new OpenLayers.Projection("EPSG:900913"),
+ numZoomLevels: 18,
+ controls: [
+ new OpenLayers.Control.TouchNavigation({
+ dragPanOptions: {
+ enableKinetic: true
+ }
+ }),
+ new OpenLayers.Control.Zoom()
+ ],
+ layers: [
+ new OpenLayers.Layer.OSM("OpenStreetMap", null, {
+ transitionEffect: 'resize'
+ })
+ ]
+ });
+ map.setCenter(new OpenLayers.LonLat(0, 0), 3);
+}