Table of Contents

Getting started with TMS FNC Static Map

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.
  • An API key for the static map service backend you intend to use.

Add the component

  1. Drop TTMSFNCStaticMap from the TMS FNC Maps palette page onto a form.
  2. Set the APIKey property.
  3. Set the Service property to choose the static map backend.

Retrieve a static map image URL

{ Inside a button click handler: }
begin
  TMSFNCStaticMap1.Latitude := 51.5074;
  TMSFNCStaticMap1.Longitude := -0.1278;
  TMSFNCStaticMap1.ZoomLevel := 12;
  TMSFNCStaticMap1.GetStaticMap;
end;

procedure TForm1.TMSFNCStaticMap1GetStaticMap(
  Sender: TObject; AURL: string);
begin
  { AURL is the resolved static map image URL }
end;

Next steps

  • Guides — service configuration and image retrieval.
  • API reference — full class reference.