[OpenLayers-Users] openlayers and css error

Nathan Gerber ngerber999 at gmail.com
Sat Jul 10 18:08:04 EDT 2010


As others have said you really should be doing the following:

1) Reproject the geometries on the server so that the web browser will not
need to do this for each geometry. Your geometries range from around 10,000
points to nearly 14,000 points.
2) If at all possible run a simplification on the geometries so that you do
not have so many points as that alone is an issue for most web browsers. It
actually made even Google Chrome feel sluggish when dong the hover events.
This can be done in PostgreSQL/PostGIS as well as a slew of desktop software
packages.
3) Try rounding your decimal places to 5 or 6 instead of going to 9, this
will at least help you on your download sizes so that the initial page load
occurs quicker.
--
Nathan Gerber


On Sat, Jul 10, 2010 at 5:32 PM, Rossko <rossko at culzean.clara.co.uk> wrote:

>
> >
> example:
> http://www.myethiopia.org/KililisandWoredasandZones/Kilil/Kilil.html
> (shouldn't take more than 14 sec :))
>
> Took three minutes and a "script running slow" prompt in IE ; in Firefox
> about the same time and eight prompts.  Not all PCs or browsers are alike.
>
> The javascript file here is "only" 2Mb ... you've got to simplify.  Just
> taking out whitespace would help.  Do you really need both google and yahoo
> maps? Can you simplify the projections in use?  Would another data format
> work quicker than WKT?  Do your points really need to be specified to
> better
> than 1mm precision?
>
> Seperating the data from the script is good practice, and should allow you
> to at least show some kind of map while all the crunching is going on,
> instead of the nothingness that currently greets visitors to your page.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/openlayers-and-css-error-tp5271709p5278670.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100710/dfc65836/attachment.html


More information about the Users mailing list