On Sunday, November 14, 2010, noob <[email protected]> wrote:
>
> I'm new to OpenLayers and am trying to figure out the basics.  I currently
> have OpenLayers displaying Google Maps data and it works fine.  I can even
> draw vector paths on my map.
>
> My question is how do I return the vector line data as KML?
>
> I'm aware of code similar to this:
>
> var format = new OpenLayers.Format.KML();
> format.write(features);
>
> How do I get the features array from my drawn vectors?  I have been
> searching on Google for an hour and am at the mercy of the forum :p  What I
> could find was either too vague or too detailed.


Hi.

layer.features where layer is the vector layer you draw on.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to