[OpenLayers-Users] Adding features before layer creation

Xavier Mamano (jorix) xavier.mamano at gmail.com
Mon Mar 18 11:22:16 PDT 2013


Hi Pol,

Don't use option "features" at `vlayer` creation, is not supported and is
ignored.

Use:
 vlayer.addFeatures(format.read(kml));

Regards,

Xavier Mamano


Pol D. wrote
> Hello,
> 
> I registered to this mailing list to get help.
> 
> I'm trying to create a map with a vector layer, but I want to add the
> features in the options array passed to the
> *OpenLayers.Layer.Vector()*class.
> 
> See this example: http://jsbin.com/ecuwes/14/edit
> 
> No marker is displayed, any help on this ?
> 
> Thanks.
> 
>   -φol d.-
> 
> _______________________________________________
> Users mailing list

> Users at .osgeo

> http://lists.osgeo.org/mailman/listinfo/openlayers-users





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Adding-features-before-layer-creation-tp5041130p5041163.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list