Page MenuHomeFeedback Tracker

curiosity with marker management.
Closed, ResolvedPublic

Description

Takistan...
but this is´nt relevant....i think.
i create 169 rectangle mapmarkers, one for every km grid.
now there is a simple question.
how can this happen:

if (count _array > 0) then {"markername" setMarkerShapeLocal "ELLIPSE";} else {deleteMarkerLocal "markername"};

in 165 cases this works fine, but the last 4 markers are still rectangle and not deleted!!!!!!

(hint str allmapmarkers;) // will proof that its not a graphic bug

further a request of the array for this area returns a []; in my world (count [] == 0) returns a true!

can you explain this strange behavior?

Details

Legacy ID
4023515649
Severity
None
Resolution
Not A Bug
Reproducibility
Have Not Tried
Category
General

Event Timeline

CHIMERACyborg set Category to General.Aug 15 2015, 3:49 PM
CHIMERACyborg set Reproducibility to Have Not Tried.
CHIMERACyborg set Severity to None.
CHIMERACyborg set Resolution to Not A Bug.
CHIMERACyborg set Legacy ID to 4023515649.May 8 2016, 12:31 PM
CHIMERACyborg added a subscriber: CHIMERACyborg.

solved

I created markers with
_marker = createMarkerLocal [_markername,[_posX,_posY,0]];
instead of _marker = createMarkerLocal [_markername,[_posX,_posY]];
this markers will randomly fail completely.
dont ask me why they are neither deletable nor its possible to change their shape.

so use:
_marker = createMarkerLocal [_markername,[_posX,_posY]];
and not:
_marker = createMarkerLocal [_markername,[_posX,_posY,0]];