Find more Examples here

Tilelayer - Google Maps (Map-API)

Version reduced to minimal set of HTML Read Example Description

Description

function initMap() {

    map = new google.maps.Map(document.getElementById('map'), {
        center: {lat: -34.397, lng: 150.644},
        zoom: 8,

        mapTypeId: 'oa_map',

        mapTypeControlOptions: {
            mapTypeIds: ['oa_map', 'oa_map_winter', google.maps.MapTypeId.ROADMAP]
        }

    });

    map.mapTypes.set( 'oa_map',        oax.api.tilelayer( 'oa_map' ) );
    map.mapTypes.set( 'oa_map_winter', oax.api.tilelayer( 'oa_map_winter' ) );
    
    oax.api.showCopyright( map );  // Mandatory

}