dashed line

121 views
Skip to first unread message

67S...@ukr.net

unread,
Dec 23, 2011, 12:12:30 PM12/23/11
to Google Maps JavaScript API v3
Hello. How I can write a dashed line in the Google Maps?

MymsMan

unread,
Dec 23, 2011, 5:46:45 PM12/23/11
to google-map...@googlegroups.com
Unfortunately you can't easily.
You may wish to Star this issue http://code.google.com/p/gmaps-api-issues/issues/detail?id=1800

Berry Ratliff

unread,
Dec 30, 2011, 9:45:19 AM12/30/11
to Google Maps JavaScript API v3
On Dec 23, 5:12 pm, "67SA...@ukr.net" <67SA...@ukr.net> wrote:
> Hello. How I can write a dashed line in the Google Maps?

It is difficult to do with tiled polys. Without a lot of extra work,
the dashes in adjacent tiles will not be aligned. It can be done in
an "OverlayView". CANVAS does not support dashes but it can be
simulated by segmenting the line.

The following static map demo might be useful:

http://home.provide.net/~bratliff/harbor

Also:

http://home.provide.net/~bratliff/hawaii

for other pattern options.
Reply all
Reply to author
Forward
0 new messages