Set Polygon to editable at runtime

WebGMaps1PolygonClick(Sender: TObject; IdPolygon: Integer;  Button: TMouseButton);

How can I get the selected Polygon to be editable when you click it.
I then need to get the new Coordinates and radius value to inserted into database.

help much appreciated.

in TMS TWebGMaps DEVELOPERS GUIDE


Editing a polygon:
WebGMaps1.Polylines[0].Polygon.Visible := not WebGMaps1.Polylines[0].Polygon.Visible;
this produce [dcc32 Error] uMapClient.pas(739): E2003 Undeclared identifier: 'Polygon'

if I do this, still polygon not editable.?
WebGMaps1.Polygons[0].Polygon.Visible := not WebGMaps1.Polygons[0].Polygon.Visible;


Hi,


- Unfortunately it's currently not supported to retrieve updated coordinates of a polygon that has been edited.
This functionality is on our feature-request list and we'll have to investigate if this can be added in a future version of the TMS WebGMaps.

The correct way to make a polygon editable is like this:

WebGMaps1.Polygons[0].Polygon.Editable := true;
WebGMaps1.UpdateMapPolygon(WebGMaps1.Polygons[0].Polygon);

- Please note that the section "Editing a polygon" in the TMS WebGMaps Developers Guide is about changing a polygon's properties in the WebGMaps.Polygons collection and then displaying the changed polygon on the map.
This technique can't be used to retrieve updated coordinates from a polygon that has been edited on the map.

There was indeed a typo in the PDF Manual. This has now been corrected.


Is there a work around to get edited coordinates, radius. been trying mouse move events , etc, doesn't seems to expose new values.


Any ideas much appreciated.

Unfortunately there is no workaround available at this time.
We'll investigate to add the possibility to get edited coordinates in a future version of the TMS WebGMaps.

Hi, I just spent a bunch of time trying to retrieve coordinates of edited polygons. I figured there'd be an event for it. I just couldn't believe it wasn't possible and tried everything before coming here. I'm also doing for the same reason -- need to update coordinates in a database. PLEASE ADD THIS FEATURE!

Hi,


Retrieving coordinates of edited polygons is on our feature-request list and we'll consider adding this functionality in a future version of the TMS WebGMaps.

@Bart. Thanks! What's the point of editing polygons if you can't retrieve the edited coordinates?

See the work around solution I came up with:

http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=5772&PID=23025#23025