(TMap.SetOnRollOverListener Method)
Registers an event handler for mouse rollover event. The argument-OnRollOver is a function which would be called when the user moves or rolls over the marker with the mouse.
public SetOnRollOverListener(OnRollOver:Object):Void
<div id="mapContainer" style="width: 640px; height: 400px;"></div> <script type="text/javascript"> var map0 = new TMap(mapContainer, 25.7590256665386, -80.3738769902151, 15, mapLoaded, 1, true, "", "hybrid"); function mapLoaded() { var layer0=map0.AddLayer(); var marker0=layer0.AddMarker(25.759025666538, -80.3708769902151, "Text Marker0"); marker0.SetOnRollOver(OnRollOver); function OnRollOver() { marker0.ShowInfoWindow("width=240;height=100", "Normal Terrafly Marker", "Hello, This is a Text Marker."); } </script>