[OpenLayers-Users] Re: FramedPopup + Broken
Ricardo Bayley
ricardo.bayley at gmail.com
Tue Mar 29 17:50:34 EDT 2011
Sorry,
By "not showing properly" I mean that the cloud image is not displayed the
way it should.
2011/3/29 Ricardo Bayley <ricardo.bayley at gmail.com>
> Hi Fellows,
>
> For some reason the Framed Popup is not showing properly.
>
> My code is:
>
> onFeatureSelect:function(f){
> popup = new OpenLayers.Popup.FramedCloud(
> "resultados", // id
> f.geometry.getBounds().getCenterLonLat(), //lonlat
> null, //contentSize
> "<div class='popup-content'
> style='font-size:.8em;width:150px;height:150px;'><p><b>Titulo</b>Valores</p><p>hola</p></div>",
> null, //anchor
> true, //closeBox
> selectedFeaturesCtrl.unselect(f) //closeBoxCallback
> );
> f.popup = popup;
> map.addPopup(popup,true); //{Boolean} If true, closes all other popups
> first
> },
> onFeatureUnselect:function(f){
> map.removePopup(f.popup);
> f.popup.destroy();
> f.popup = null;
> }
>
> Any ideas ?
>
>
> Ricardo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110329/81d4c331/attachment.html
More information about the Users
mailing list