Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API V3 - Highlight a single road/street

Is there a way to highlight a specified road or street using Google Maps API V3?

Here is an example of what I am trying to get (image from searching a place in google): example

Styled maps does not do what I want since it will apply to all roads. Polylines is an option but finding the coordinates can be a bit of a pain since they are not always complete.

Thanks.

like image 700
DaveBC Avatar asked May 08 '13 16:05

DaveBC


People also ask

How do I highlight specific roads on Google Maps?

Use the Draw a Line tool (under the search bar, looks a bit like a share-icon), to draw either just a line, or a driving, walking or biking route. Note that your map can have one or more lines in it. Finish off each line by double-clicking on the final point.

Can you highlight an area on Google Maps?

You can trace a path or highlight an area on your map by drawing lines and shapes.


1 Answers

It has already been discussed and I'm afraid you'll have to use polylines.

This might be useful though : Highlighting whole street with some maps API

like image 77
LoicUV Avatar answered Nov 26 '22 13:11

LoicUV