[OpenLayers-Users] Popup troubles with GIT version
Eric Lemoine
eric.lemoine at camptocamp.com
Sun May 20 03:46:36 PDT 2012
On Sunday, May 20, 2012, Matthias Meißer wrote:
> Hi,
>
> to get tooltip support I updated my 2.11 to a fresh one from GIT.
> Unfortunatly, there seems to be now a problem with popup size.
>
> With the following code, I get an XXL Popup that is as wide as my screen:
> <style>.pop_heading{font-**family: Arial, Helvetica, sans-serif;
> font-weight: bold;font-size:16px}</style>
> <style>.pop_text{font-family: Arial, Helvetica, sans-serif;
> font-size: 12px;
> text-decoration: none;
> padding-right:5px;
> padding-top:5px;}
> </style>
> ...
>
> function nodeSelect(feature) {
> content=getNodePopupContent(**feature.data);
> feature.popup = new OpenLayers.Popup.FramedCloud(**null,
> feature.geometry.getBounds().**getCenterLonLat(),
> null,
> '<div>'+content+"</div>",
> feature.marker,
> true);
> feature.popup.minSize=new OpenLayers.Size(250,400);
> feature.popup.autoSize=true;
> map.addPopup(feature.popup);
> }
>
> Can anybody confirm this behaviour? on 2.12-rc4? As far as I analysed, my
> design seems to be ok :/
Could you please create a complete example that works as expected with 2.11
and not with 2.12? An HTML file that we can just drop in OpenLayers'
“examples” dir would be ideal. Thanks.
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120520/881d90e9/attachment.html
More information about the Users
mailing list