On Mar 4, 11:53 pm, Drew <[email protected]> wrote:
> Hi all,
>
> I'm currently building a system which is drawing administrative
> regions in different countries. I'm working on top of other code,
> which uses Polylines/Polygons to do this. I'm about to implement the
> US and due to the large number of regions, and the complexity of their
> borders, I am worried about drawing time with many states on screen at
> once.
>
> I have only been able to find one location with potential examples,
> and have been looking at some of the demos in the galleries
> athttp://home.provide.net/~bratliff, but unfortunately, due to the
> obfuscation implemented in the code and the lack of documentation, I
> am unfortunately not able to use these samples without divesting more
> large (re impractical) amounts of time to re-factor the code to make
> it usable.
>
> Ideally I would like to continue to use polygons rather than a custom
> overlay view as the regions change colour depending on actions applied
> to them, and will need to be clickable.
>
> I have noticed in G2 that there is a method to implement encoded
> Polygons from encoded lines with zoom factors, so my question is, does
> anyone know of any modular/documented libraries, to handle large
> numbers of points, or if zoom factors are being handle automatically
> in G3, or at not (yet) implemented.
>
> Many thanks for any input,
>
> Drew J. Sonne.
I had to do a lot of code consolidation to prevent IE from displaying
"Script running slowly ... " messages. IE counts the number of
statements executed rather than measuring elapsed time to avoid
dependency on CPU chip speed.
http://support.microsoft.com/kb/175500
One very ugly loop with one 750 character statement is simply to
eliminate another "set-up" loop. It is deeply embedded in other loops
which means it receives heavy traffic. Also, some browsers perform
"just in time" compilation of the JavaScript. Individual complex
statements are well suited for optimization. Compilers can remove
redundant sub-expressions but have difficulty analyzing flow.
Another reason is to prevent the "cut & paste" crowd from stealing my
code. I am happy to have people use it but not butcher it.
--
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.