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