12
Views
1
Comments
Change custom Marker size
Application Type
Mobile

I have a custom pin I want to use on my google maps application to show where the user is located.

I am able to display the pin but it is too huge and I want it scaled down to the size of the default pins.

here is what is currently in the marker options.


"{
icon: '/AmazonGas/img/AmazonGas.usericon.png'

}"
Champion
Rank: #99

Hi,


I believe you can try to add this to your JSON:

size: new google.maps.Size(20, 32)


This is an example that I take it from here:

https://stackoverflow.com/questions/44462283/change-google-map-marker-icon-size


Hope this can help.


Best regards,

Ricardo M Pereira