> I am planning to divide the lines by tiles (at higher zoom levels in
> order to make less number of polylines per tile) and group them into a
> set. Then I want to render these lines when the user sees those tiles
> in the viewport by listening to map 'idle' event or 'dragend' event or
> when user finishes zooming.
>
> Do you think this is feasible? I want to use the normal API to render
> 100 lines because the polys do not contain more than 2-4 points.

5000 polys with 4 vertices apiece is a very manageable number.  Worst
case, you will have 20,000 points in view at the same time.  SVG may
crash due to the size of the DOM.  CANVAS will be fine.

To avoid calling Googles direction service with 20,000 requests, other
sources for road definitions are:

Primary & Secondary roads by state:

    ftp://ftp.census.gov/geo/tiger/TIGER2010/PRISECROADS/

Full road system by county:

    ftp://ftp.census.gov/geo/tiger/TIGER2010/ROADS/

Also:

    http://www.bts.gov/publications/national_transportation_atlas_databas...

The 2010 US Census Department Tiger shapefiles are about two thirds
complete.  The remaining 17 states ought to be complete by the end of
January 2011.  You will have to use "shp2text" to extract the
shapefile information to spreadsheet format which you can convert to
poly definitions.

-- 
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