An example showing how to incorporate Leaflet and OpenStreetMaps into UniGUI.
The following lines must be added to the ServerModule | CustomFiles:
https://unpkg.com/leaflet@1.3.4/dist/leaflet.css
https://unpkg.com/leaflet@1.3.4/dist/leaflet.js
See the Mapbox Tab in the application for more details.
P.S. I am no expert with Leaflet - please see the following for more details:
Getting started with Leaflet
OpenStreetMap
Mapbox - the accessToken used for this is a public one...you can register to receive your own.
Leaflet Maps Example.zip
procedure TMainForm.UniFormCreate(Sender: TObject);
begin
with UniMemo1.JSInterface do
begin
JSConfig('enforceMaxLength', [True]);
JSConfig('maxLength', [50]);
end;
end;