On Oct 11, 12:00 pm, lwall_mba <[email protected]> wrote:
> Hi all,
>
> I am new to Maps API v3 and I am experimenting with a few things.  I
> am trying to draw all states and later counties os the USA.  I started
> with the examples here (http://code.google.com/apis/maps/documentation/
> javascript/overlays.html#PolylineArrays) and have put together a quick
> test page of my own here (www.lucaswall.com/MapOverlaysStates01.html).
>
> As you can see in the source code, I have hard coded all LatLng info
> in the page.  I used the dat files the census bureau posted here
> (http://www.census.gov/geo/www/cob/co2000.html)
>
> I am familiar with vbscript and how to open a txt file and parse
> through it.  I imagine javascript should work similarly???  I am not
> familiar with it but I am looking for a js solution because Google
> Maps API v3 uses it.
>
> Question 1: Can I use javascript to call a file from the server that
> gives all LatLng points to the script?  How would that script look
> like?  Which instructions?  Any examples of similar things online?
>
> Question 2: Should I use XML and PHP instead to do such thing because
> javascript is not appropriate?
>
> Thanks

The Census Department's Cartographic Boundary files are very old.  In
general, county boundaries to not change often but counties are added
occassionally.  Broomfield County Colorado was added less than ten
years ago.  Every year, corrections are made to improve the accuracy
of the boundaries.

In 2007, the Census Department switched to shape files

    http://www.census.gov/geo/www/tiger/tgrshp2010/tgrshp2010.html

Various shapefile conversion utilities are available.  I use a command
line tool called "shp2text".  Others prefer windows based "shp2kml".
Whatever you use, you will have to transform it to something
JavaScript understands.  I like JSON.  Others like KML.

You can see demos at:

    http://www.polylib.us

specifically, the "United States" demos.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to