TMS iCL DEVELOPERS GUIDE - TMS Software
TMS iCL DEVELOPERS GUIDE - TMS Software
TMS iCL DEVELOPERS GUIDE - TMS Software
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>TMS</strong> SOFTWARE<br />
<strong>TMS</strong> <strong>iCL</strong><br />
<strong>DEVELOPERS</strong> <strong>GUIDE</strong><br />
OnDidFinishLoadingMap<br />
OnGetDirections<br />
OnGetDirectionsError<br />
OnSelectAnnotationView<br />
OnDidStopLocatingUser<br />
OnDidUpdateUserLocation<br />
OnLongPress<br />
OnRegionDidChangeAnimated<br />
OnRegionWillChangeAnimated<br />
OnWillStartLoadingMap<br />
OnWillStartLocatingUser<br />
Event called when the map did finish loading.<br />
Event called when a directions request is<br />
finished and successfully found one or multiple<br />
routes.<br />
Event called when a directions request is<br />
finished and an error occurred during the<br />
request.<br />
Event called when an annotation is selected.<br />
Event called when the MapView stops locating<br />
the user.<br />
Event called when the user location is updated.<br />
Event called when tap holding on the MapView<br />
for at least 1.5 seconds.<br />
Event called when the region of the MapView is<br />
changed.<br />
Event called when the region of the MapView<br />
will change.<br />
Event called when the MapView will start<br />
loading.<br />
Event called when the MapView will start<br />
locating the user.<br />
Adding Annotations<br />
Annotations can be added to the map by directly adding them to the collection, or through one of<br />
the AddAnnotation overload methods. Below is a sample that demonstrates this.<br />
In this sample, we drop a <strong>TMS</strong>FMXNativeMKMapView control on the form and add the following code<br />
in a button click:<br />
var<br />
loc: T<strong>TMS</strong>FMXNativeMKMapLocation;<br />
begin<br />
loc := <strong>TMS</strong>FMXNativeMKMapView1.XYToCoordinate(<strong>TMS</strong>FMXNativeMKMapView1.Width<br />
/ 2, <strong>TMS</strong>FMXNativeMKMapView1.Height / 2);<br />
<strong>TMS</strong>FMXNativeMKMapView1.AddAnnotation(loc, 'Hello World', 'Subtitle');<br />
69