¡Ayúdanos a traducir esta Web y consigue licencias gratis!
Usuario anónimo  |  Ingresar  |  Regístrate

MarkerTracker

El MarkerTracker forma parte del GMaps Utility Library.

Lo aplicamos a un GMarker normal, de modo que cuando este GMarker quede fuera de la vista del mapa una flecha (totalmente configurable con las MarkerTrackerOptions) apuntará a su ubicación.

Su uso es muy sencillo, pues no hay más que llamar al método "AddMarkerTracker(...)" del marker en cuestión.




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