“Hi,
We are currently experiencing an unexpected behaviour where the map marker display order does not appear consistent or controllable.
Our use case is a mobile application displaying the user's location using a custom marker on the map. We wish for this custom marker to be displayed behind all other markers consistently.
We’ve created an OML (Attached) to demonstrate the issue, as seen in the recording here:
https://www.dropbox.com/s/juocfhla1260io5/2023-05-08_IssueWithZ-IndexDemo.mp4?dl=0
Without success, we’ve attempted to set the marker Zindex upon creation, including the Max Zindex:
ZIndex:
Max ZIndex:
We’ve checked out the following solutions but doesn't control the markers as we hoped since migrating to OutSystems Maps:
https://stackoverflow.com/questions/14034292/specify-the-z-index-of-google-map-markers
https://stackoverflow.com/questions/54714115/is-there-a-way-to-set-the-z-index-of-one-map-marker-out-of-multiple-markers?noredirect=1&lq=1
https://stackoverflow.com/questions/42273646/google-maps-v3-move-markers-on-top-when-updated?noredirect=1&lq=1
https://stackoverflow.com/questions/9021159/how-do-i-set-the-z-index-of-a-marker-in-google-maps-api-v3
Kind regards,
Matt
Hello @Matthew Halliday
Just ran some tests using the same approach from the post I mentioned and I'll attach an sample since it works as expected.
Hope it helps.
Cheers,GM
Hi @Matthew Halliday
Did you get the chance to check this forum post in order to see if it helps?I'll try to take a look at your oml. Can you just clarify the order you want to apply on the markers in terms of z-index?
Did you get the chance to test the solution I shared?If so, were you able to overcome your use case?
Hi Gonçalo,
The solution is exactly what we were looking for.
Thank you very much for the assistance!
Kind regards, Matt