Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Change Marker Icon at Runtime

 Post Reply Post Reply
Author
Jung Michael View Drop Down
New Member
New Member
Avatar

Joined: 02 Jun 2015
Posts: 11
Post Options Post Options   Quote Jung Michael Quote  Post ReplyReply Direct Link To This Post Topic: Change Marker Icon at Runtime
    Posted: 02 Jun 2015 at 6:25pm
Assigned new icons on app start, but cannot change these at runtime.
If marker is deleted and recreated with different icon it is not shown on map.
As in one forum topic shown here BeginUpdate ... EndUpdate did not help.

Any hint ? 

Mike
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2051
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 03 Jun 2015 at 10:51am
Hi,

I have not been able to reproduce this issue.

Example:
//create marker
  TMSFMXWebGMaps1.Markers.Add(50, 3, 'Update', 'image1.png', false, true, true, false, false, 0);

//remove and recreate marker with different image
  if TMSFMXWebGMaps1.Markers.Count > 0 then
  begin
    TMSFMXWebGMaps1.DeleteMapMarker(0);
    TMSFMXWebGMaps1.Markers.Add(50, 3, 'Update', 'image2.png', false, true, true, false, false, 0);

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down