Topic: map marker colour change or custom vector image

hi, how to change google map marker icon colour change? or can we make custom marker icon?
pls healp

Re: map marker colour change or custom vector image

Hello.


Using property MarkerIcon you can specify own icon marker using the picture in PNG format. You can specify the URL of the graphic file, or a local file.


The URL of the marker should start with http


When specifying a local file, you can specify both an absolute path (e.g.: c:\marker.png) and a relative path. For example, marker.png, in this case this graphic file should be located in the folder of your project. Also the file can be placed in a subfolder, for example: images\marker.png.

Dmitry.

Re: map marker colour change or custom vector image

THANKS VERY MUCH

4 (edited by majuten 2020-03-31 14:03:10)

Re: map marker colour change or custom vector image

Sir, is it possible to add various   marker images , if i choose a particular  dropdown data?
i mean drop down value related with marker image.
like,
drop down list 1, marker1.png
dropdown list 2, marker2.png

Re: map marker colour change or custom vector image

Check out this example

Post's attachments

Attachment icon Google maps multiple markers FormMarker and change icon.zip 18.52 kb, 392 downloads since 2020-04-02 

Dmitry.