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
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to