I’m creating a map application where I dynamically add kml based on DB query. It will be set of LineStrings – sometimes ten of them sometimes a thousand.
What is more efficient:
-
to create one big kml with all elements and stylings
-
to create one small kml per each line (advantage would be that I can tick/untick them with OL menu)
-
to add them via javascript:
addFeature('LINESTRING(20.0367 50.0727,20.0366 50.0727,20.0326 50.0757)');
The most efficient would be using WMS (via geoserver) and filter lines using CQL. Displaying thousand of features on one map might ruin the speed of application