Creates a google map.

Add the attribute "zoom" to provide an initial zoom level. Default is 8. If locations are given and no zoom level is provided, the zoom level will be set to fit the locations into the shown area.

Instead of "zoom" you can set the attribute "zoom-single". If locations are given, the single zoom level is used if only one location is given. Otherwise the zoom level will be set to fit the locations into the shown area.

Add the attributes "latitude" and "longitude" to define the center point of the map. If no latitude and longitude is given, the center will be calculated by using the given locations. A center has to be defined one way or the other.

To set locations on the map place hylo-map-location tags inside the hylo-google-maps tag.

Properties

apiKey: string

the google maps api key

apiLanguage: string

the api language (optional, default: de)

apiRegion: string

the api language region (optional, default: DE)

latitude: string

initial latitude (optional)

longitude: string

initial longitude (optional)

map: any

The google maps object.

Not a property of the WebComponent but of the class.

zoom: string

initial zoom level (optional, default: 8)

zoomSingle: string

initial zoom level if only one location is provided (optional)

Generated using TypeDoc