Find more Examples here

Outdooractive Overlays (Map-API)

Version reduced to minimal set of HTML Read Example Description

Description

oa.api.maps(
    function (oamaps, gm) {

	var mapTypeIds = [
	    'oa_map',
	    'oa_map_winter',
	    'oa_osm', 
	    'oa_hybrid'
	];

	var config = {
            center : new gm.LatLng( 47.54687, 10.2928 ),
            zoom : 12,
            mapTypeId : mapTypeIds[ 0 ],
            mapTypeControlOptions : { mapTypeIds: mapTypeIds },

	    oa: {
		overlayMapTypeIds : {

		    // Show overlay map type 'hiking' on top of all map types
		    '*': [ 'oa_hiking' ],
		    
		    // Show overlay map types 'avalanche' and 'skiresort' on winter map
		    'oa_map_winter': [ 'oa_slope', 'oa_skiresort' ]
		}
	    }

        };

	map = oamaps.map( document.getElementById("map_canvas"), config );
});