Use basemap.at map tiles with Google Maps Javascript API v3
Create new Basemap object with the reference to your google.maps.Map object as a single parameter
(example). This will overlay geolandbasemap or bmaphidpi layers (if retina display is detected) over standard MapTypeId.ROADMAP, bmapgelaende layer over MapTypeId.TERRAIN as well as bmaporthofoto30cm and bmapoverlay above MapTypeId.SATELLITE and MapTypeId.HYBRID (the latter adds captions over the satellite layer). You can switch between layers using standard Google Maps type controls. The map will be also locked within borders of Austria according to EPSG:31297 bounds.
There are 5 tile layers available:
- geolandbasemap - standard basemap.at layer (redish)
- bmapgrau - a color variation of the standard layer (grayish)
- bmaphidpi - retina version of the standard layer
- bmaporthofoto30cm - satellite imagery
- bmapoverlay - transparent layer with labels meant to be used as overlay above satellite imagery or topographic layer.
- bmapgelaende - topographic layer.
To use as a map type:
map.mapTypes.set('Basemap', new google.maps.BasemapMapType('geolandbasemap'));
("Basemap" will be used as a label for map type selector control)
To add as overlay to any other map type:
map.overlayMapTypes.push(new google.maps.BasemapMapType('geolandbasemap'));
For further reference, please see Google Maps API docs.
Basemap.at map tiles are licensed under Creative Commons license. Be sure to include the link to basemap.at as their usage policy requires.