By default the the last object ( Icon) drawn on a layer is shown on top.
I would like to know if there is a way of changing the Z-order ( Drawing order) of these icons based on a given Property.
For example I have many icons displaying in very close proximity. I would like to draw then Icons with a specific Name on top of the others.
Is this possible, or do I need to handle this on the actual draw operation.
Z-order of drawn objects
Hi Steve,
Would you please let us know which kind of layer you are using? if you are using the shapefilefeaturelayer or inmemoryfeaturelayer, I am afraid it can’t be as the whole layer including the markers and labels are combined by the tiles image. A possible solution is we define another temple layer to contain the markers with a specific name and then we add this template layer overlap the original layer.
Hope it helps.
Troy
After some testing I have noticed that there is no correlation between the order in which the items are added and their zorder on the screen.
Seems like they are random. This basic assumption is causing most of the issues I was trying to address.
Steve,
It’s hard for us to judge which parts would be the root of the issue and we are hoping you can provide us more details like screenshots or a concrete sample is better.
Waiting for your further information.
Thanks,
Troy
Steve,
It’s hard for us to judge which parts would be the root of the issue and we are hoping you can provide us more details like screenshots or a concrete sample is better.
Waiting for your further information.
Thanks,
Troy