Get All Roads on Google Maps and Cover Them with Polyline

133 views
Skip to first unread message

Mike Brenner

unread,
Jan 30, 2011, 11:39:46 PM1/30/11
to Google Maps JavaScript API v3
Hi,

I'm trying to use the Google Maps API to create a map prebounded to a
given city's boundaries (by means of zip's or just city name). And
then I'd like to specify that all roads in that city are covered with
1-color of polylines (bound to the road, see here »
http://econym.org.uk/gmap/example_snappathdrag.htm).

Once there's a polyline on every street in that city, I'd like the
user to be able to click and drag to erase that portion of the
polyline, as if the mouse cursor is an eraser.

Breaking it down:

(1) On page load, show map with polylines on *every* street.
(2) User can click to erase points on polylines, or click+drag to
erase large portion of polylines

Could anyone offer any related links or potentially help me solve
this?

Thanks!

Chris Broadfoot

unread,
Jan 31, 2011, 12:15:34 AM1/31/11
to google-map...@googlegroups.com
Well, we don't expose road data, unfortunately. You can get something similar from Open Street Map.

There's no real way to do this. You could emulate something similar with styled maps laid on top of each other, but showing/hiding portions of map tiles would likely be a breach of the Maps API ToS.

Chris


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.




--
http://twitter.com/broady
Reply all
Reply to author
Forward
0 new messages