431
Views
3
Comments
Solved
[Google Maps Library] Change Marker Color
Question
google-maps-mobile
Reactive icon
Forge asset by Labs

Hi,

How can I change the color of one marker using google maps mobile?

2020-03-05 14-29-02
José Costa
Solution

Hi Mário,

You can not change the color. But you can change the icon:

  • Import an icon to the Images in the Interface layer.
  • Add in the MarkerOptions of the marker the following:
"{
icon: '<Runtime Path of the Image>'
}
"

The Runtime Path of the Image, you can get it from the properties of the imported image.

You can find markers in here:

https://www.benjaminkeen.com/google-maps-coloured-markers/

Cheers,

José

UserImage.jpg
Mário Amorim

Thanks a lot. Problem solved

UserImage.jpg
Samuel Stephen

Hello,


This worked fine for me too. But the icon I uploaded is of larger display. Is there a way I could control this in outsystems?

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