preview:GadvancedMarker
Employment/Purpose
Component representing the AdvancedMarkerElement of the Google Maps that you can used to indicate a specific (latitude, longitude) points. The advanced marker is the replacement for the GMarker, which has been deprecated by Google maps APIs.
Migration Requirements
In order to use advanced markers, additional configuration is required on the associated map. Follow the [| official migration guide] for more information.
To allow for this new configuration, the GMaps component in the development branch now has a new setter: mapId.
mapId can be set from java, using org.zkoss.gmaps.Gmaps.setMapId(String)
or in zul with <gmaps mapId="String"/>
.
The steps necessary to obtain a mapId are:
- Register your developer account on the [| Google Maps developer console], with the account supporting your Google Maps API key.
- In "Map Style": Create a map style
- In "Map Management": Create a Map ID
- Associate your Map ID and your Map style
- Copy the Map ID field, and use either Java or Zul to set the map ID on your Gmaps component.
Once these steps are completed, you can add GAdvancedMarker descendants to your Gmaps map component. This can be done in Java, or in Zul.
Supported Events
- Inherited Supported Events: GMarker
Supported Children
*None
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|