701
Views
7
Comments
Solved
[Google Maps Web] How do i change the Marker?
Question
google-maps-web
Web icon
Forge asset by Labs

Hi,

I am unable to find the property to change the marker into an image or something.

tried the markeroption property using icon: .. imgPath.. only to get a resource not found error

Do assist!


Thanks

2021-10-17 12-36-16
Amreen Shaikh
Solution

Hi Joshua Lee,

In logic tab --> GoogleMaps->Markers-->I was using

SyntaxEditor Code Snippet

AddCoordinateMarkerToMap

One of its input parameter 

SyntaxEditor Code Snippet

MarkerOptions

as shown in a snapshot, you can change the image icon.


Regards ,

Amreen

UserImage.jpg
Joshua Lee

Amreen Shaikh wrote:

Hi Joshua Lee,

In logic tab --> GoogleMaps->Markers-->I was using

SyntaxEditor Code Snippet

AddCoordinateMarkerToMap

One of its input parameter 

SyntaxEditor Code Snippet

MarkerOptions

as shown in a snapshot, you can change the image icon.


Regards ,

Amreen

Thanks Amreen!


UserImage.jpg
Khoa Vu

Hi Amreen Shaikh,

In my case, i want to change icon marker in the method add Direction for both Orginal and Destination.

Do you have any suggestion?


Thank

2021-10-17 12-36-16
Amreen Shaikh

Khoa Vu wrote:

Hi Amreen Shaikh,

In my case, i want to change icon marker in the method add Direction for both Orginal and Destination.

Do you have any suggestion?


Thank

Use if condition for it.


UserImage.jpg
Vijay Verma

Hi,

      I am stuck to  set the ''source record attribute'' of Form . What should I used value in source record attribute. PLease tell me


2021-05-05 07-35-47
Vera Tiago
Staff

Hi Vijay,

I'm not sure I understood your question correctly. Is this a generic question about Forms with OutSystems in general, or does this relates to the Google Maps component? 


Can you please share more details about the problem you are facing?

Vera

UserImage.jpg
Susana Mendes

Hi,

I want to change the icon of the marker. How can i do that?

I try to change in the MarkerOptions, in the assigne where i passed the lat and long, but i still get the default icon.


Can someone help me please?


Thanks

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