Hi List,

sorry, due to troubles in RL it took more time than expected to deploy my page as an example: http://www.on-i.de/map2

If you click on the nodes, there will come a popup, but with the current one it's XXL. If you patch the HTML to use "openlayers-2.11" instead, it worked fine. The trigger is nodeSelect() and the content is generated in getNodePopupContent().

Maybe it's just a very stupid mistake by myself, but I reviewed my code and didn’t find any anomalies. Would be great, if other experienced people could check this behaviour, please :)

bye
Matthias


Am 20.05.2012 12:46, schrieb Eric Lemoine:


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 : [email protected] <mailto:[email protected]>
http://www.camptocamp.com


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to