[OpenLayers-Users] popup open automatically

Cúmar Cueva qmarqeva at gmail.com
Tue Feb 28 23:08:00 EST 2012


The only thing that you need to do is get the feature from the layer, you
can use its ID, and call the function for this feature, for example:

    var myFeature = myLayer.getFeatureById(myFeatureID);
    onFeatureSeleccMyFuction(myFeature );

2012/2/28 Shadin <w_ward_W at hotmail.com>

>
> I have successfully created popups when user click on any feature ( vector
> &
> wfs protocol ).
>
> also i've added a function to display exact one feature and i need make its
> popup open automatically. and of course close when i click on closebox as
> usual.
>
> so.. i can't use:  events.on({
>                "featureselected": onFeatureSelect,
>                "featureunselected": onFeatureUnselect
>            });
>
> any ideas ?
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/popup-open-automatically-tp4530011p4530011.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
>



-- 
Atte,

Cúmar Cueva, Ing
Sistemas Informáticos y Comp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120228/136df8dd/attachment-0001.html


More information about the Users mailing list