[OpenLayers-Users] Adding features before layer creation

Pol D. pol.dellaiera at gmail.com
Mon Mar 18 11:28:12 PDT 2013


Thanks Xavier,

Good to see you here too !

I just wanted to know if it was possible... I have the answer now :-)

Have a nice day !

  -φol d.-


On Mon, Mar 18, 2013 at 7:22 PM, Xavier Mamano (jorix) <
xavier.mamano at gmail.com> wrote:

> 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.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130318/74de2b4a/attachment.html>


More information about the Users mailing list