Arcanemagus / 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

MarkerWithLabel example code throws error (v1.1.9) #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I browse the example code at
http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.
1.9/examples/basic.html

I get a javascript error.

 - In Firefox (v26.0):
    'TypeError: a.url[Gb] is not a function' from one of the Google Maps scripts

In Safari (v7.0.1)
    'TypeError: 'undefined' is not a function (evaluating 'a.url[Gb](0,5)')'

Original issue reported on code.google.com by he...@salcombelifeapp.com on 13 Feb 2014 at 1:21

GoogleCodeExporter commented 9 years ago
I've found the source of the error - its the icon: {} option. Incidentally this 
seems to throw the same error using a standard google.maps.Marker.

Anyway, the workaround I'm using is to define the icon as a invisible symbol:
    icon: {path: 'M0,0L0,1',strokeWeight: 0 }

Seems to work for me.

Original comment by he...@salcombelifeapp.com on 13 Feb 2014 at 1:46