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
- Drop
TTMSFNCStaticMap from the TMS FNC Maps palette page onto a form.
- Set the
APIKey property.
- 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