Skip to main content
Table of Contents

Getting started with TMS FNC Bing Maps

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 Bing Maps API key from the Microsoft Azure portal.

Add the control

  1. Drop TTMSFNCBingMaps from the TMS FNC Maps palette page onto a form.
  2. Set the APIKey property to your Bing Maps API key.

Add a marker

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

Next steps