Luke Smith Write today, wrong tomorrow

GPolyLine error when adding to Google Map

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="" xmlns:v="urn:schemas-microsoft-com:vml">
<title>My page</title>
<style type="text/css">
v\:* {

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.

comments powered by Disqus