This sample illustrates the world's top 50 cities by showing the markers in their locations and clustering the markers to avoid intersecting.
In this example, you can see how to display multiple markers in the same region without intersecting each other. If a marker intersects, it will be clustered and the total number of markers will be displayed over the cluster. When zooming in, the number of clusters will be decreased, and the individual marker will be displayed. When zooming out, markers that intersect will again be clustered. You can use the "clusterSettings" property in "layer" to enable marker clustering.
Tooltip is enabled in this example. To see the tooltip in action, hover the mouse over a marker or tap a marker in touch-enabled devices.
Maps component features are segregated into individual feature-wise modules. To use a marker and cluster, inject the
Marker module using the