PolyLine First item not drawn

82 views
Skip to first unread message

Mattims

unread,
Nov 1, 2010, 10:43:42 AM11/1/10
to Google Maps JavaScript API v3
Hi,

I am trying to draw multiple polylines and for some reason the first
line is not drawn. If i execute the script again it will draw both
lines.

Example is at this address.

http://members.iinet.net.au/~mattims/googlemap.htm

if you click the button once I get 4 markers and one line, when you
press it the second time I get the 4 markers and both lines (one line
doubled up).

I'm pretty sure its something not being initialised properly, but I
can't find it.

geoco...@gmail.com

unread,
Nov 15, 2010, 4:07:40 PM11/15/10
to Google Maps JavaScript API v3
I looked into this a while ago, didn't realize I hadn't responded
until it came up in a recent thread, this works:
http://www.geocodezip.com/mattims_googlemapA.html

It looked to me like it was a problem with the way the API uses your
arrays.

-- Larry

Mattims

unread,
Nov 16, 2010, 8:26:51 AM11/16/10
to Google Maps JavaScript API v3
Thanks for that...

code appears functionally the same but it works your way and does
everything I need so far.

On Nov 16, 5:07 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

Canam Group

unread,
Nov 17, 2010, 8:44:21 AM11/17/10
to google-map...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages