Skip to main content
Table of Contents

Getting started with TMS FNC MapKit

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.
  • TMS FNC Maps installed and the runtime package added to the project.
  • macOS or iOS target platform (MapKit is a platform-native API; no API key is required).

Add the control

  1. Drop TTMSFNCMapKit from the TMS FNC Maps palette page onto a form.
  2. MapKit uses the device's native Apple Maps service — no API key setup is required.

Add a marker

Add a markerPascalC++
{ Inside your form's OnCreate event: }
var
  Marker: TTMSFNCMapsMarker;
begin
  Marker := TMSFNCMapKit1.Markers.Add;
  Marker.Coordinate.Latitude := 37.7749;
  Marker.Coordinate.Longitude := -122.4194;
  Marker.Title := 'San Francisco';
end;
// Inside your form's OnCreate event:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
  TTMSFNCMapsMarker *Marker = TMSFNCMapKit1->Markers->Add();
  Marker->Coordinate->Latitude = 37.7749;
  Marker->Coordinate->Longitude = -122.4194;
  Marker->Title = "San Francisco";
}

Next steps