Polylines show multiple times

73 views
Skip to first unread message

winklerd

unread,
Dec 8, 2010, 4:18:44 PM12/8/10
to Google Maps JavaScript API v3
Hello,

When I add a polyline to the map, if I have a very wide view or I zoom
out all the way, I see the polyline multiple times. The behavior for
marker is not the same... it appears only once, in the location
closest to the center that corresponds to the correct lat/lng
coordinates.

Is there a way to make the polylines appear only once?

--Derek
Message has been deleted

Rossko

unread,
Oct 16, 2012, 2:54:35 PM10/16/12
to Google Maps JavaScript API v3
Do you think the behaviour is wrong? If you draw a box round
Australia to highlight it, and zoom out far enough to see two
"Australia's", should there be one box or two? Why?

Enoch Lau (Google Employee)

unread,
Oct 16, 2012, 10:45:06 PM10/16/12
to google-map...@googlegroups.com
The behavior you describe for markers is only when 'optimized' is set to false (which is currently implied if 'draggable' is true).

Zoom all the way out in https://google-developers.appspot.com/maps/documentation/javascript/examples/marker-simple to see the marker multiple times.
Reply all
Reply to author
Forward
0 new messages