19
Views
2
Comments
Solved
[OutSystems Maps] StaticMarker color and label
Question
OutSystems Maps
Forge asset by OutSystems

Hello,

I have a question; maybe I'm not looking in the right place. I'm using a StaticMap with StaticMarkers. According to Google's documentation, it's quite basic to change their color and add a character inside: color:mycolor|label:A.

But I can't find these parameters on the component. Is there a trick to do this?

I tried to cheat by using the icon, but if the icon is empty, it doesn't take the rest. I tried before the localization, but there is a parser behind it.

Is there another trick?

2022-07-04 09-41-59
Carlos Mendes
Staff
Solution

Hi Vincent!
I hope you're well. 
Let me understand if swapping the original GoogleMaps pinpoint with an image, that would represent that color change you want, would work for you. 
If so, you can do this by passing an image to the IconURL inside OptionalConfigs, that's inside the Marker. 
I needed to implement something similar, and what I did was create a function that, based on a position of the list, it would change the color of the icon, and in fact what was happening behind the scene was changing the image for another one that was exactly the same, except for the color.

Best regards,
Carlos Mendes

2024-04-23 10-08-23
Vincent Massieye

Thank you. It's what I have done. Is it in the roadmap to add the two parameters (label and colors) in the future for static markers? 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.