Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google has started highlighting search areas in Pink color. Is this feature available in Google Maps API 3?

Since Jan 2012, Google has started highlighting search areas in pick color. See the details here: http://googlesystem.blogspot.in/2012/01/highlight-areas-in-google-maps.html

Does anyone know if this can be programmatically done using google maps API 3? I would want to show my cities in the map highlighted as shown in the link above.

I have already tried the Geocode API where I search for a city. That API only gives me the lat and long information. It does not help me in plotting the city boundaries.

like image 418
Himanshu Khurana Avatar asked Jun 26 '12 12:06

Himanshu Khurana


People also ask

What is the pink area on Google Maps?

When you search for a city or a county or a ZIP Code, Google Maps now highlights the boundaries of what you searched for. If you are zoomed out, the whole area is shaded pink. If you zoom in a bit, it has just a big pink border with grey shading. Zoom in even more and it's a dashed boundary with grey shading.

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.

What does pink umbrella mean on Google Maps?

The idea is that now users can easily spot what they're looking for. For example, if you're out of town and have an accident, you can quickly spot a pink icon on the map and get to hospital.

What is the purple area on Google Maps?

Google is testing a purple “Ad” label in Maps that matches the purple pin noting the location of the advertiser on the map itself. The purple pin distinguishes it from the red organic pins.


1 Answers

No. It's not available in the API.

(It may be available in the future. Features of Google Maps do migrate into the API, but Google don't make announcements in advance and no-one has a crystal ball.)

You would need to find the city boundaries and draw the line yourself. Boundary data is almost certainly public-domain for the US. Other jurisdictions may not be so forthcoming.

like image 77
Andrew Leach Avatar answered Sep 18 '22 13:09

Andrew Leach