[OpenLayers-Dev] Problem loading layers

Björn Harrtell bjorn.harrtell at gmail.com
Sat Jan 30 07:01:19 EST 2010

Nice looking application. Two main things I think.

1. Like the previous answer you should consider rendering images
serverside (WMS) if it contains lots of complex geometries (like the
contour lines)

2. You need to think about your data, especially the POIs. Having POIs
coming from alot of different KML files is very suboptimal. This is
also what explains the "pause" you are experiencing in Firefox, it's
expensive to request multiple files at the same time. You should be
able to aggregate the POI data into one file and style the POIs
depending on an attribute instead. You might want to switch to GeoJSON
too, it's faster for browsers to parse.


2010/1/21 jtcrash <jacob_trainer at hotmail.com>:
> Robert,
>     Thanks for replying so quickly. I need these layers to be toggleable
> and in fact already have a checkbox expandable/collapsible tree in place,
> you can see an example of a previous version I created. Since then, I have
> completely changed the interface from my own custom design to ExtJS. But the
> idea, and the number of layers/points is basically the same:
> http://www.chds.us/?dystopia:map
> Unfortunately what you see there is only 1/9th of what it will be (adding 8
> more square land masses to create an island). So as you might imagine,
> optimizing the vector overlays is going to be a big hassle. I plan on
> implementing clustering, zoom filtering, and so on later on, but for now I
> am working on optimizing the layer loading and feature generation. The
> biggest problem at this point is if you check the Points of Interest parent
> (which checks all of its children, lots of points). But in short, the layers
> are loaded from KML. But when i tested just creating the layers, the 9
> second lag time was really annoying me. Not to mention it hangs a bit.
> Thanks agian,
> Jake
> --
> View this message in context: http://n2.nabble.com/Problem-loading-layers-tp4430938p4432031.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev

More information about the Dev mailing list