You can find the map of US states yourself by looking at the Network tab in
Chrome developer tools to see what content has been loaded. The current
version of the US state map can be found
here<http://www.gstatic.com/charts/geochart/10/mapfiles/US_PROVINCES.js>
.

You can set up a regionClick event like so:
google.visualization.events.addListener(geochart, 'regionClick',
function(r) {
  options.region = r.region;
  geochart.draw(data, options);
});

- Sergey


On Thu, Jul 18, 2013 at 11:12 AM, Bluestreak2k5 <[email protected]>wrote:

> Alright so this proved to be a litttle tougher then originally thought
> (The maps was the easy part).
>
> All of the maps are done here: http://chrisdblumberg.com/maps/mapfiles/
> I had to use Hexadecimal on the number of counties as Texas has 255
> counties and couldn't do Hexadecimal on the FIPS.
>
> When then led to my next problem getting the data from the US labor bureau
> to map it... Turns out opening allt he files required to get all the data
> and parsing 2 million lines of county data takes about 13 hours, and I
> didn't get it right the first time. Also I have a column in the DB named
> mapping_code specifically to create the map code for the current base 16
> format, but haven't actually fixed all of the state in my DB, even AL is
> only partially fixed.
>
> Here is my current working project:
> http://chrisdblumberg.com/unemployment/
>
> Alright so here is what I need:
>
> I need the map for all the US states as shown, so I can just set all the
> location for the entire project to use my domain.
> How would I go about setting up a RegionClick event to load a new map when
> clicked?
>
> This is what I want to do:
> given the map shown, if you click on AL I want to load AL counties and
> populate it. I am still working on the files and the mapping data, but It's
> almost done here: http://chrisdblumberg.com/unemployment/getCounties.php
> The file only currently returns AL but will eventually return data based
> on GET parameters of YEAR, MONTH, and STATE.
>
> mapping_code will be the code used to map the data to each county and when
> I can use FIPS instead this will be deleted.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to