You can't avoid overlapping of the pinpoints. But you can use the new feature we've introduced in the 2012.Q2 release: clustered data source.
Clustered data source provides functionality for grouping of the geographic locations using some criteria. The default implementation uses distance in degrees between 2 locations as grouping condition. It can be changed at any time by creation of the new class which implements IClusterItemGenerator or which inherits from the ClusterItemGenerator class (the default built-in implementation of the grouping condition).
The clustered data source provides information layer with 2 kinds of items: ClusterItem and ClusteredItem. The first one represents cluster which contains list of the items grouped by some criteria. The second one represents wrapper around original data with some additional functionality.
The behavior of the cluster is controlled by its state. It can be collapsed, expanded and expanded to polygon. The difference between expanded cluster and cluster expanded to polygon is as following: the expanded cluster uses original locations of the items to show them, the cluster which is expanded to polygon uses vertices of the regular polygon with center at the cluster’s center to show items.
The “expanded to polygon” mode is necessary when items are very close one to another (for example, several trucks are located on the same gas station), so simple expanding of the cluster will not give an ability to see details on every track (the elements will be overlapped even on the deep zoom level).
The collapsed cluster is always passed to the information layer. The expanded cluster passes its clustered items to the information layer. If HideExpanded property of the ClusterItem is set to true, then expanded cluster is not passed to the information layer. Otherwise it will be represented in the information layer.
Clustered data source can automatically force recreation of the clusters when zoom level is changed. This feature is controlled by GenerateClustersOnZoom property of the ClusteredDataSource class.
Please, find attached sample application which demonstrates using of the Clustered data source.
You can change text font using standard font-relative properties (FontFamily, FontSize and so on). For example:
All the best,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>