Show multiple counties on google maps - google-maps

If I search for a county, it shows an outline. How can I add multiple counties to the query and show them all?

One option would be to create a kml file containing polygons for the countries of interest and display that on a google map.

Related

Is there an easy way of highlighting a region on Google Maps?

Other than drawing a polygon in Google Maps API, is there a way for me to get the "Northwest Washington DC" region on a Google map? When I search this area in Google maps itself, it has a nice highlighting effect which I like to replicate in my own website.
The issue with drawing the polygon is that I wouldn't really know how to get the correct LatLng coordinates for the polygon's path!
You can try using Google Geo Charts
A geochart is a map of a country, a continent, or a region with areas
identified in one of three ways:
The region mode colors whole regions, such as countries, provinces, or states.
The markers mode uses circles to designate regions that are scaled according to a value that you specify.
The text mode labels the regions with identifiers (e.g., "Russia" or "Asia").

Google Maps V3 creating polygon from county name in XML data

Well I have run into a bit of a small problem and I am not sure how to approach this. I have this test map.
http://www.mesquiteweather.net/googlemap_poly.html
Which creates polygons based on data from this XML file.
http://www.mesquiteweather.net/xml/warnings.xml
It displays weather alerts/watches/warnings etc on the map from the data which makes the polygon that shows what area the alert is in and I have an array in another file that assigns the color. All that works great.
Here is my problem. The XML feed doesn't always display alerts with polygon cords that can be split to create latlng object to create the polygons, I will only get county names half the time so there may be alerts in the feed but they will never get displayed if there is no polygon cords. If you look at the feed for cap:polygon you'll see not all of them have it. Right above it though is areaDesc which is the county name. So is there an easy way to create a polygon base on the county name from that data and how?
I have been searching the web with no results. I did read about fusion tables but will that work and can I use that to draw the polygons based on the data from the feed then have fusion tables draw it out? I don't know, I am doing stuff with Google Maps I have never done before so I am out of my element and could use some guidance and assistance. Any suggestions or advice would be greatly welcomed so I can put this project to sleep.
-Thanks
You can use FusionTables to display a FusionTablesLayer with specific counties on it, and style those polygons dynamically (with up to 5 style rules).
FusionTable containing US counties
Selected counties
Example that displays the counties (using a FusionTablesLayer) on the map
Proof of concept, not sure this will be usable with this many counties.
Probably OK with a small number of counties (your original example)

Google MAPS: colour active countries AND add markers

I'm building a travel social network website and I need to create a custom Google Maps based map.
In their profile users can:
list the countries they've visited;
for each country they can specify the cities they visited.
That means that on the same map I need to:
colour the countries the user has visited;
for each (now coloured) country he has visited, add a marker on the cities he went to.
As far as I've read, I should use Google Charts API to get the countries coloured.
But I need an actual Google Map....any ideas?
Thanks in advance,
E.
Use the Google Maps API v3. See the documentation and search this site for how to:
add markers
create country polygons

fusiontablecell object retrieve the value from kml via fusion table

currently I am work on the project by using polygons KML and fusion table
I have uploading the kml into fusion table and share it, by using the mao id, in my custom web page, they are display correct,
now I need add address search function in to custom page, my goal is display the kml polygon information and the search result information into one information window,
I could display the marker address info and I could by click to display the polygon info window, but they are separate and could not display in one inforwindow

Similar Addresses are overlapping on each other in Google Maps

I'm using Google Maps in my academic project,I've provided map for users to enter their address,Up-to that its working fine.On home page I need to display map,on map I've to show users addresses as markers(red dots).
Suppose user#1 have H.NO:45-6-3,Abids,Hyderabad and user#2 have H.No:8-9-54,Abids,Hyderabad.These two addresses are near to each other they are overlapping.I need to display two individual markers on map.What I should do ? I'm using OpenLayers map,I don't want to use clusters.