Here's another option in addition to the ones you've gotten so far...

Ernest Delgado and I wrote a JavaScript library called PolyGonzo which we
used in several election-related map projects. You can see it in action
here:

http://maps.google.com/help/maps/elections/#2008_election

or on this test page:

http://polygonzo.googlecode.com/svn/trunk/code/test.html

As John mentioned, GPolygons can be quite slow if you use very many of them,
but PolyGonzo is much faster. Drawing 50 states at any reasonable level of
detail is no problem - PolyGonzo can handle hundreds of detailed polygons
with good performance. For example, try the "all congressional districts"
view on either of those pages.

We're getting the code ready for release, but since you were asking, it's
available in rough form now if you'd like to try it out.

You can browse the source code here:

http://code.google.com/p/polygonzo/source/browse/trunk/#trunk/code

Or check it out with svn:

http://code.google.com/p/polygonzo/source/checkout

A brief road map:

test.html is the test page.

testmap.js is the JavaScript code for the test page.

polymap.js is a more general purpose map component.

polygonzo.js has the polygon drawing code and a GOverlay wrapper.

/shapes/json/us.json is the USA shapefile in the JSON format that PolyGonzo
uses.

Give me a shout with any questions...

-Mike

> From: julz
> 
> I'm totally new to Google Maps API.  I need to color code 
> states based on some criteria.  My understanding so far is 
> that I probably need to use a shape file containing all the 
> lats and longs for the US and create an overlay on my google 
> map.  I do have the shape file itself (group of shp, shx, 
> dbf, txt).  I have read postings related to this topic in 
> this forum, however, none seem to work for me (although I 
> might just not understand things well enough).  I don't want 
> to use 3rd party software and I don't have PHP.  Somehow I 
> need to read the shape file in, possibly convert it to xml 
> (and I'm guessing here), and/ or import it into my local DB?  
> Can someone help because I'm clueless at this point.....thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to