[OpenLayers-Users] FramedPopup + Broken
Ricardo Bayley
ricardo.bayley at gmail.com
Tue Mar 29 17:47:40 EDT 2011
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/913a4273/attachment.html
More information about the Users
mailing list