views:

49

answers:

3

It seems like I have to assign an hosted image url to MarkerImage object to create custom-icons. Is there a way to allow the user to pick a color to fill in this image?

A: 

We share the same question! I'm trying to find a way to do it... I'm migrating from old V2 API, after some hours of searching I couldn't find a way to change the color of the marker overlay.

Pedro Gil
+1  A: 

Look for styled markers in the http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries this looks like it could help ...

I would also look into generating the images on the fly with canvas and then producing a data url.

var dataURL = canvas.toDataURL("image/png");

Tobi Oetiker
Thank you @Oetiker
+1  A: 

Try using the google charts api to generate markers. You can choose the colour.

http://code.google.com/apis/chart/docs/gallery/dynamic_icons.html#pins

broady
Thank you @broady