[Google Maps Mobile] Change Marker Color

[Google Maps Mobile] Change Marker Color

  
Forge Component
(8)
Published on 2017-07-21 by OutSystems Labs
8 votes
Published on 2017-07-21 by OutSystems Labs

Hi,

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

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:

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

Cheers,

José

Solution

Thanks a lot. Problem solved