Sha256: ac452d3fc6676482537e18d6f0126354b49d6f01bba32bcd9c82dc0816fe99f3

Contents?: true

Size: 399 Bytes

Versions: 12

Compression:

Stored size: 399 Bytes

Contents

function init() {
    var map = new OpenLayers.Map({
        div: "map",
        projection: new OpenLayers.Projection("EPSG:900913"),
        displayProjection: new OpenLayers.Projection("EPSG:4326"),
        layers: [
            new OpenLayers.Layer.OSM()
        ]
    });
    if (!map.getCenter()) map.zoomToMaxExtent();

    map.addControl(new OpenLayers.Control.Permalink({anchor: true}));
}

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/examples/anchor-permalink.js
postrunner-0.0.9 misc/openlayers/examples/anchor-permalink.js
postrunner-0.0.8 misc/openlayers/examples/anchor-permalink.js
postrunner-0.0.7 misc/openlayers/examples/anchor-permalink.js
postrunner-0.0.6 misc/openlayers/examples/anchor-permalink.js
postrunner-0.0.5 misc/openlayers/examples/anchor-permalink.js
postrunner-0.0.4 misc/openlayers/examples/anchor-permalink.js
gb_mapfish_appserver-0.0.5 vendor/assets/javascripts/openlayers/examples/anchor-permalink.js
gb_mapfish_appserver-0.0.4 vendor/assets/javascripts/openlayers/examples/anchor-permalink.js
gb_mapfish_appserver-0.0.3 vendor/assets/javascripts/openlayers/examples/anchor-permalink.js
gb_mapfish_appserver-0.0.2 vendor/assets/javascripts/openlayers/examples/anchor-permalink.js
gb_mapfish_appserver-0.0.1 vendor/assets/javascripts/openlayers/examples/anchor-permalink.js