Jump to content

Delete marker from UniMap


artem_niko

Recommended Posts

Hello!

How I can delete needing marker from UniMap?

I see 2 routes:

1. Delete marker by him personal ID (number)

2. Delete marker by Latitude and Longitude.

I think, that first route good. But, is it right? I'm not found procedure delete marker from UniMap by ID...

Link to comment
Share on other sites

3 hours ago, Sherzod said:

Hello,

Also you can delete by index:


UniMap1.Markers.Delete(Indx)

 

Ok, may be this right. But!

When set this Indx for the marker? When marker adding on the UniMap?

            with UniMap1.Markers.Add do
            begin
              id:=Trunc(UniNumberEditMarkerId.Value);
              Latitude:=UniFormattedNumberEdit5.Value;
              Longitude:=UniFormattedNumberEdit6.Value;
              Icon.iconUrl:=IconPath + MarkerNameMarkerIcon;
              Popup.content:='<b>Маркер:</b> ' + UniEditMarkerName.Text;
              CustomIconText:='new L.TextIcon({ text: "'+FloatToStr(id)+'", color: "G" });';
              AddToMap;
              PanToMarker(12);
              OpenPopup;
            end;

Here?

Quote

 id:=Trunc(UniNumberEditMarkerId.Value);

 

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...