Print Page | Close Window

Drawing on the WebGMap

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX WebGMaps / WebOSMaps
Forum Discription:
Printed Date: 14 Dec 2019 at 12:44am

Topic: Drawing on the WebGMap
Posted By: Hammer Řyvind
Subject: Drawing on the WebGMap
Date Posted: 08 Feb 2019 at 10:40pm
Has anyone managed to draw on top of the map with standard FMX canvas methods (DrawLine etc.)? I would like to draw things that are not possible with just the Google Map polygons, markers etc.

I have tried drawing directly on the canvas of the WebGMap component, but nothing is visible. I have also tried to put an Imagecontrol on top of the WebGMap, but that doesn't show either.

(By the way, a LatLon to XY function would be very useful for such drawing).

Thanks a lot!!

Posted By: Pinarbasi Berk
Date Posted: 09 Feb 2019 at 11:32am
Did you try to polylines?

In this pdf,
on page 43, you can see how you can draw lines.

Posted By: Hammer Řyvind
Date Posted: 09 Feb 2019 at 6:36pm
Thanks, but polylines are not enough for my application. I would like to draw things like ellipses, Bezier curves, text, etc., so I would need the whole set of FMX canvas methods. Is there a clever trick?

Posted By: Bart Holvoet
Date Posted: 11 Feb 2019 at 8:38am

Unfortunately there is currently no built-in functionality available to draw on the map except for Polygons and Polylines.
As a workaround you can try using custom marker images to place image files on the map.

Print Page | Close Window