Getting started with TMS FNC MapBox
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.
- A MapBox public access token.
Add the control
- Drop
TTMSFNCMapBox from the TMS FNC Maps palette page onto a form.
- Set the
APIKey property to your MapBox access token.
Add a marker
procedure TForm1.AddParisMarker;
var
LMarker: TTMSFNCMapBoxMarker;
begin
TMSFNCMapBox1.APIKey := '<your MapBox access token>';
LMarker := TMSFNCMapBox1.Markers.Add;
LMarker.Coordinate.Latitude := 48.8566;
LMarker.Coordinate.Longitude := 2.3522;
LMarker.Title := 'Paris';
end;
Next steps