GPolyLine error when adding to Google Map
20 Feb 2007
---------------------------
Error
---------------------------
A Runtime Error has occurred.
Do you wish to Debug?
Line: 29
Error: Unexpected call to method or property access.
---------------------------
Yes No
---------------------------
If you are getting the following error in Internet Explorer when attempting to add
a GPolyLine to your google map via the API then make sure you have added the VML namespace
and CSS correctly.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>My page</title>
<style type="text/css">
v\:* {
behavior:url(#default#VML);
}
</style>
</head>
I've had the problem for a while and just made a 2nd look for the fix and found it
on the google
maps api group. I was missing out the xmlns:s namespace declaration.