Mapping your way
Plotting coordinates on a map is where the usefulness of saved coordinate data really comes into play. This service also requires the permission of location services, but we covered that in the previous section so we don't need to address it again. However, viewing coordinates on a map introduces another layer of APIs, detailed as follows:
- For iOS, the MapKit framework is ready to use, with no additional setup.
- For Android, the Google Maps Android API requires a special API key you have to request through a Google account.
These are the only two platforms supported by Delphi's TMapView
component.
Note
Not all devices based on Android support Google Maps. For example, Amazon Kindle Fire tablets use a variant of Android but provide their own Amazon Maps API; apps that try to access the Google Maps Android API on such devices will raise an error.
Since there's nothing extra to do for iOS devices, let's go straight to getting...