Hi,
version: 2.9.9.0
I create polygon(ptPath) with this code.
var
Circle: TMapPolygon;
PolygonItem: TPolygonItem;
begin
PolygonItem := WebGMaps1.Polygons.Add;
Circle := PolygonItem.Polygon;
Circle.PolygonType := ptPath;
Circle.Clickable := False;
Circle.TagString := '888';
Circle.Path.Add(39.9651599353384,32.7510797299922);
Circle.Path.Add(39.965073594233,32.7520292319834);
Circle.Path.Add(39.9644650919221,32.7519809522212);
Circle.Path.Add(39.9645596568259,32.7509402551234);
Circle.BackgroundOpacity := 40;
Circle.BorderWidth := 2;
WebGMaps1.CreateMapPolygon(Circle);
Question 1)
I want to write a text center of this polygon. TagString is shown only mouse enter the polygon and it has to "Circle.Clickable := True".
But I use it mobile platforms and want to see TagString(or any text) in center of polygon for everytime, not only mouse action.
How can I do this?
Question 2
I tried to run time create a label in polygon in WebGmaps. But it doesnt appear in WebGmaps.
Is it possible to create an object in WebGmaps?
Question 3
When I use Polygon.Center paramater, it goes different location.
WebGMaps1.MapPanTo(WebGMaps1.Polygons[0].Polygon.Center.Latitude,WebGMaps1.Polygons[0].Polygon.Center.Longitude);
You can test this code with my polygon create codes.