artmacks / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

setContent function returns as undefined #305

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If I try to do this: marker.setContent("Success");

I get this: TypeError: 'undefined' is not a function (evaluating 
'marker.setContent("Success")')

In the past, I'd simply set the marker to null and recreated it, but thought 
instead to just move it and update the label, but when I try this, the function 
setContent generates this error.

Just thought you should know.

Thanks very much for the utility. I can just go back to recreating the marker.

Also doesn't make difference if I specify older map API.

version 1.1.9

Browser / Operating System: Safari / Mavericks

Jennifer Petkus

Original issue reported on code.google.com by virtuali...@gmail.com on 2 May 2014 at 12:02

GoogleCodeExporter commented 8 years ago
Whoops, found out that you set content with marker.setOptions({ labelContent: 
"Woohoo!" }); Please ignore this post.

Original comment by virtuali...@gmail.com on 2 May 2014 at 1:38