Jump to content

TUniMap how to implement draw polygon


KingOrmon

Recommended Posts

  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...

No, btw

When you restore a map polygon from database, How can I make these points editable ?

Using this code:

with UniMap1.Vectors.Add do
  begin
     AddPoint(38.264225, -1.554657);
AddPoint(38.262325, -1.556964);
...

    VectorType:=mvPolygon;
    Popup.content:='C';

    AddToMap;
    FitBounds;
    OpenPopup;

  end;

 

Draw polygon in Map but I cannot edit or delete it.

Link to comment
Share on other sites

1 hour ago, KingOrmon said:

No, btw

When you restore a map polygon from database, How can I make these points editable ?

Using this code:

with UniMap1.Vectors.Add do
  begin
     AddPoint(38.264225, -1.554657);
AddPoint(38.262325, -1.556964);
...

    VectorType:=mvPolygon;
    Popup.content:='C';

    AddToMap;
    FitBounds;
    OpenPopup;

  end;

 

Draw polygon in Map but I cannot edit or delete it.

Hello

Set editable := true

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...