All Overlays with Google and OSM

overlay, baselayer, google, osm, openstreetmap

Using the Google and OSM layers as overlays.

Data CC-By-SA by OpenStreetMap

Using the allOverlays property on the map, the first layer added must initially be visible. This example demonstrates the use of a Google layer and an OSM layer treated as overlays.

See the all-overlays-google.js source to see how this is done.