artem_niko Posted December 3, 2020 Share Posted December 3, 2020 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... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 3, 2020 Share Posted December 3, 2020 4 hours ago, Артем said: How I can delete needing marker from UniMap? Hello, Also you can delete by index: UniMap1.Markers.Delete(Indx) Quote Link to comment Share on other sites More sharing options...
artem_niko Posted December 3, 2020 Author Share Posted December 3, 2020 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); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 3, 2020 Share Posted December 3, 2020 39 minutes ago, Артем said: When marker adding on the UniMap? Yes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.