preview:GadvancedMarker

From Documentation

Icon info.png Notice: IN DEVELOPMENT

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.

Icon info.png Notice: Advanced markers are only available for maps which have received a mapId

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

Supported Children

*None

Use Cases

Version Description Example Location
     

Version History

Last Update : 2024/12/18


Version Date Content
     



Last Update : 2024/12/18

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.