Sha256: 431b32a18ab7b5522ca05d3e98b7af18d0d99718a9fe87b852d00de487dac1ef

Contents?: true

Size: 632 Bytes

Versions: 7

Compression:

Stored size: 632 Bytes

Contents

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);
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/examples/mobile-navigation.js
postrunner-0.0.9 misc/openlayers/examples/mobile-navigation.js
postrunner-0.0.8 misc/openlayers/examples/mobile-navigation.js
postrunner-0.0.7 misc/openlayers/examples/mobile-navigation.js
postrunner-0.0.6 misc/openlayers/examples/mobile-navigation.js
postrunner-0.0.5 misc/openlayers/examples/mobile-navigation.js
postrunner-0.0.4 misc/openlayers/examples/mobile-navigation.js