[OpenLayers-Users] Description attribute of KML file

Nicholas Bergson-Shilcock nicholasbs at openplans.org
Mon Jun 8 09:48:39 EDT 2009


Excerpts from pmilanovic's message of Mon Jun 08 05:49:39 -0400 2009:
> 
> Is it posible to read description attribute of KML file?

feature.attributes.description should do this.

-Nick

> 
> I have loaded kml file with next commands
> 
> testLayer = new OpenLayers.Layer.GML("Test layer", kmlPath, 
> {
>     format: OpenLayers.Format.KML, 
>     projection: map.displayProjection,
>     formatOptions: {
>     extractStyles: true, 
>     extractAttributes: true
>     }
> });
> ...
> 



More information about the Users mailing list