Luke Smith

Write today, wrong tomorrow

GPolyLine error when adding to Google Map

—————————
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.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.