Markers for google visualization map?

85 views
Skip to first unread message

rtrigg

unread,
Apr 22, 2012, 1:34:13 AM4/22/12
to Google Visualization API, lsha...@globalfundforwomen.org
Hey experts,

I'm trying to replace the default pushpin icons in a google
visualization map with a custom .png image. After the call to
map.draw, I tried to loop through map.markers calling setIcon on each
one. But it looks as though map.markers isn't defined. Are the
markers hiding somewhere else, or is there a better way to do this?

Thanks!

- Randy

asgallant

unread,
Apr 23, 2012, 10:18:39 AM4/23/12
to google-visua...@googlegroups.com, lsha...@globalfundforwomen.org
Are you referring to the Visualization API wrapper for Google Maps?  If so, I don't believe the wrapper exposes access to the underlying Map object, so you wouldn't be able to change your markers.

rtrigg

unread,
Apr 23, 2012, 7:27:18 PM4/23/12
to Google Visualization API
Yep, that's the one I'm using. Is there another way to get maps into
my visualization (and under control of my controllers) that does let
me change the marker icons?

Thanks,

- Randy

On Apr 23, 7:18 am, asgallant <drew_gall...@abtassoc.com> wrote:
> Are you referring to the Visualization API wrapper for Google Maps<https://developers.google.com/chart/interactive/docs/gallery/map>?
Reply all
Reply to author
Forward
0 new messages