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.
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.
You can trace a path or highlight an area on your map by drawing lines and shapes.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With