I\'m trying to port my googlemaps v2 functions to v3.
But somehow i stuck in a strange error and i could not find, what i\'m doing wrong.
Erro
I had the same problem, and resolved it. In my case it was error due to the non-proper format. Please check the first and last coordinates array in geometry coordinates they must be same then and only then it will work. Hope it may help you!
What about casting to Number in Javascript using the Unary (+) Operator
lat: 12.23
lat: +12.23
Depends on the use case. Here is a fullchart what works and what not: parseInt vs unary plus - when to use which
I had the same problem with exactly the same error message. In the end the error was, that I still called the maps v2 javascript. I had to replace:
<script src="http://maps.google.com/maps?file=api&v=2&key=####################" type="text/javascript"></script>
with
<script src="http://maps.googleapis.com/maps/api/js?key=####################&sensor=false" type="text/javascript"></script>
after this, it worked fine. took me a while ;-)