Sha256: 4437a387bca479ea66569ab450b43336e58ec2218cb751f7a1d836157cd08439

Contents?: true

Size: 409 Bytes

Versions: 12

Compression:

Stored size: 409 Bytes

Contents

var map;

function init() {

    map = new OpenLayers.Map({
        div: "map",
        allOverlays: true
    });

    var osm = new OpenLayers.Layer.OSM();
    var gmap = new OpenLayers.Layer.Google("Google Streets", {visibility: false});

    // note that first layer must be visible
    map.addLayers([osm, gmap]);

    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.zoomToMaxExtent();

}

Version data entries

12 entries across 12 versions & 2 rubygems

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