Help us translate this website and improve this translation and earn free licenses!
Anonymous user  |  Log in  |  Create Account

How to...

MarkerTracker

The MarkerTracker is part of the GMaps Utility Library

We should apply it to a GMarker, and we it is outsite the map view, an arrow (fully customizable using MarkerTrackerOptions) will point it's position.

It's really easy to use. We only nee to call the "AddMarkerTracker(...)" method of the Gmarker.




Code.aspx
<cc1:GMap ID="GMap1" runat="server" />
Code.aspx.cs
GLatLng latLng = new GLatLng(40, 0);
GMarker marker = new GMarker(latLng);
marker.AddMarkerTracker();

GMap1.Add(marker);

GMap1.GCenter = latLng + new GLatLng(8, 8);
Powered by Subgurim.NET