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 Service property to choose the static map backend.
  3. Set the APIKey property to a key issued for that service.

Retrieve a static map image URL

GetStaticMap returns the provider's image URL as its result — it is a function, not a request with a completion event.

{ Inside a button click handler: }
var
  LURL: string;
begin
  LURL := TMSFNCStaticMap1.GetStaticMap(
    CreateCoordinate(51.5074, -0.1278), 640, 480, 12);
  { LURL is the resolved static map image URL }
end;

Next steps

  • Guides — service configuration, map types, and the HERE backend.
  • API reference — full class reference.