Getting started with TMS FNC Leaflet
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.
- Leaflet does not require an API key for the default OpenStreetMap tile source.
Add the control
- Drop
TTMSFNCLeaflet from the TMS FNC Maps palette page onto a form.
- The default OpenStreetMap tile layer is active without an API key.
Add a marker
{ Inside your form's OnCreate event: }
var
Marker: TTMSFNCLeafletMarker;
begin
Marker := TMSFNCLeaflet1.Markers.Add;
Marker.Coordinate.Latitude := 51.5074;
Marker.Coordinate.Longitude := -0.1278;
Marker.Title := 'London';
end;
Next steps