On Jan 4, 3:27 pm, sandy037 <[email protected]> wrote:
> > 20,000 polys cannot be loaded & displayed simultaneously but you can
> > do it in user selected subsets.
>
> > Look at the "US Highways" demo in:
>
> >    http://www.polylib.us
>
> > 1754 polys with 1.5 million vertices are stored in 200 (50 states - 4
> > categories) poly definition files which are loaded & displayed on
> > demand.  Too many at the same time will crash the browser.  Different
> > browsers have different limitations.
>
> To reduce the dependency on directions service, I am storing the path
> overview of a particular direction in the database and using all
> arrays of points to render different polylines. If this is the case,
> how many polylines do you think can be rendered on page load?
> Obvoiusly this will have performance issues. Is there a way to cluster
> all the polylines?

Does every user have to see every poly ?

If not, let your users decide which groups of polys to load on
demand.  It is important to let your users see something quickly.
Even if the subset of polys can be predetermined, loading on demand
can improve performance.  The BODY "onload" event must wait for every
statically defined JS file to load.  If the JS files are loaded
dynamically, you can display a map right away without waiting for
everything else to load.

The number of polys you can display simultaneously will depend on
their complexity and on which browser you use.  For realistic polys
containing a few hundred verticies each, you can display several
hundred but not several thousand.

Try the "US Highways" demos in:

    http://www.polylib.us

Decide what you think is a reasonable tradeoff.  Too many polys will
produce clutter which Rossko has already said.  The other polys are
available to be loaded if the user chooses.

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