[OpenLayers-Users] Reading KML file into multiple layers

Yerry yerry at gmx.net
Thu Apr 21 02:22:59 EDT 2011


Hello,

I have KML files with multiple tracks and multiple placemarks.

I would like to have each track in a seperate layer
and a seperate layer for all placemarks.

Currently I use the following code:

           layer = new OpenLayers.Layer.Vector("All", {
                projection: map.displayProjection,
                strategies: [new OpenLayers.Strategy.Fixed()],
                protocol: new OpenLayers.Protocol.HTTP({
                    url: KML_FILE,
                    format: new OpenLayers.Format.KML({
                        extractStyles: true,
                        extractAttributes: true
                    }),	
                }),
            });

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reading-KML-file-into-multiple-layers-tp6293353p6293353.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list