OpenLayers OpenLayers

Changeset 6707

Show
Ignore:
Timestamp:
03/30/08 15:58:04 (9 months ago)
Author:
crschmidt
Message:

clean up out-of-line comments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/examples/popupMatrix.html

    r6702 r6707  
    4141        }); 
    4242 
    43     //anchoredbubble 
     43        //anchoredbubble 
    4444     
    4545        AutoSizeAnchoredBubble = OpenLayers.Class(OpenLayers.Popup.AnchoredBubble, { 
     
    5757        }); 
    5858 
    59     //framed 
     59        //framed 
    6060 
    6161        //disable the autosize for the purpose of our matrix 
     
    105105        // 
    106106 
    107           //anchored popup small contents no autosize 
     107            //anchored popup small contents no autosize 
    108108            ll = new OpenLayers.LonLat(-55,20); 
    109109            popupClass = OpenLayers.Popup.Anchored; 
     
    111111            addMarker(ll, popupClass, popupContentHTML); 
    112112 
    113           //anchored popup small contents no autosize closebox 
     113            //anchored popup small contents no autosize closebox 
    114114            var ll = new OpenLayers.LonLat(-50,20); 
    115115            popupClass = OpenLayers.Popup.Anchored; 
     
    118118 
    119119 
    120           //anchored popup small contents autosize 
     120            //anchored popup small contents autosize 
    121121            ll = new OpenLayers.LonLat(-40,20); 
    122122            popupClass = AutoSizeAnchored; 
     
    124124            addMarker(ll, popupClass, popupContentHTML); 
    125125 
    126           //anchored popup small contents autosize closebox 
     126            //anchored popup small contents autosize closebox 
    127127            ll = new OpenLayers.LonLat(-35,20); 
    128128            popupClass = AutoSizeAnchored; 
     
    131131 
    132132 
    133           //anchored popup small contents autosize minsize 
     133            //anchored popup small contents autosize minsize 
    134134            ll = new OpenLayers.LonLat(-25,20); 
    135135            popupClass = AutoSizeAnchoredMinSize; 
     
    137137            addMarker(ll, popupClass, popupContentHTML); 
    138138 
    139           //anchored popup small contents autosize minsize closebox 
     139            //anchored popup small contents autosize minsize closebox 
    140140            ll = new OpenLayers.LonLat(-20,20); 
    141141            popupClass = AutoSizeAnchoredMinSize; 
     
    144144 
    145145 
    146           //anchored popup small contents autosize maxsize 
     146            //anchored popup small contents autosize maxsize 
    147147            ll = new OpenLayers.LonLat(-10,20); 
    148148            popupClass = AutoSizeAnchoredMaxSize; 
     
    150150            addMarker(ll, popupClass, popupContentHTML); 
    151151 
    152           //anchored popup small contents autosize maxsize closebox 
     152            //anchored popup small contents autosize maxsize closebox 
    153153            ll = new OpenLayers.LonLat(-5,20); 
    154154            popupClass = AutoSizeAnchoredMaxSize; 
     
    157157 
    158158 
    159           //anchored popup bigger contents autosize 
     159            //anchored popup bigger contents autosize 
    160160            ll = new OpenLayers.LonLat(5,20); 
    161161            popupClass = AutoSizeAnchored; 
     
    163163            addMarker(ll, popupClass, popupContentHTML); 
    164164 
    165           //anchored popup bigger contents autosize closebox 
     165            //anchored popup bigger contents autosize closebox 
    166166            ll = new OpenLayers.LonLat(10,20); 
    167167            popupClass = AutoSizeAnchored; 
     
    169169            addMarker(ll, popupClass, popupContentHTML, true); 
    170170 
    171           //anchored popup wide short text contents autosize 
     171            //anchored popup wide short text contents autosize 
    172172            ll = new OpenLayers.LonLat(20,20); 
    173173            popupClass = AutoSizeAnchored; 
     
    175175            addMarker(ll, popupClass, popupContentHTML); 
    176176 
    177           //anchored popup wide short text contents autosize closebox 
     177            //anchored popup wide short text contents autosize closebox 
    178178            ll = new OpenLayers.LonLat(25,20); 
    179179            popupClass = AutoSizeAnchored; 
     
    182182 
    183183 
    184           //anchored popup wide short fixed contents autosize 
     184            //anchored popup wide short fixed contents autosize 
    185185            ll = new OpenLayers.LonLat(35,20); 
    186186            popupClass = AutoSizeAnchored; 
     
    188188            addMarker(ll, popupClass, popupContentHTML); 
    189189 
    190           //anchored popup wide short fixed contents autosize closebox 
     190            //anchored popup wide short fixed contents autosize closebox 
    191191            ll = new OpenLayers.LonLat(40,20); 
    192192            popupClass = AutoSizeAnchored; 
     
    195195 
    196196 
    197           //anchored popup thin long fixed contents autosize 
     197            //anchored popup thin long fixed contents autosize 
    198198            ll = new OpenLayers.LonLat(50,20); 
    199199            popupClass = AutoSizeAnchored; 
     
    201201            addMarker(ll, popupClass, popupContentHTML); 
    202202 
    203           //anchored popup thin long fixed contents autosize closebox 
     203            //anchored popup thin long fixed contents autosize closebox 
    204204            ll = new OpenLayers.LonLat(55,20); 
    205205            popupClass = AutoSizeAnchored; 
     
    208208 
    209209 
    210           //anchored popup wide long fixed contents autosize 
     210            //anchored popup wide long fixed contents autosize 
    211211            ll = new OpenLayers.LonLat(65,20); 
    212212            popupClass = AutoSizeAnchored; 
     
    214214            addMarker(ll, popupClass, popupContentHTML); 
    215215 
    216           //anchored popup wide long fixed contents autosize closebox 
     216            //anchored popup wide long fixed contents autosize closebox 
    217217            ll = new OpenLayers.LonLat(70,20); 
    218218            popupClass = AutoSizeAnchored; 
     
    224224        // 
    225225 
    226           //anchored popup small contents no autosize overflow 
     226            //anchored popup small contents no autosize overflow 
    227227            var ll = new OpenLayers.LonLat(-55,15); 
    228228            popupClass = OpenLayers.Popup.Anchored; 
     
    230230            addMarker(ll, popupClass, popupContentHTML, false, true); 
    231231 
    232           //anchored popup small contents no autosize closebox overflow 
     232            //anchored popup small contents no autosize closebox overflow 
    233233            var ll = new OpenLayers.LonLat(-50,15); 
    234234            popupClass = OpenLayers.Popup.Anchored; 
     
    237237 
    238238 
    239           //anchored popup small contents autosize overflow 
     239            //anchored popup small contents autosize overflow 
    240240            ll = new OpenLayers.LonLat(-40,15); 
    241241            popupClass = AutoSizeAnchored; 
     
    243243            addMarker(ll, popupClass, popupContentHTML, false, true); 
    244244 
    245           //anchored popup small contents autosize closebox overflow 
     245            //anchored popup small contents autosize closebox overflow 
    246246            ll = new OpenLayers.LonLat(-35,15); 
    247247            popupClass = AutoSizeAnchored; 
     
    250250 
    251251 
    252           //anchored popup small contents autosize minsize overflow 
     252            //anchored popup small contents autosize minsize overflow 
    253253            ll = new OpenLayers.LonLat(-25,15); 
    254254            popupClass = AutoSizeAnchoredMinSize; 
     
    256256            addMarker(ll, popupClass, popupContentHTML, false, true); 
    257257 
    258           //anchored popup small contents autosize minsize closebox overflow 
     258            //anchored popup small contents autosize minsize closebox overflow 
    259259            ll = new OpenLayers.LonLat(-20,15); 
    260260            popupClass = AutoSizeAnchoredMinSize; 
     
    263263 
    264264 
    265           //anchored popup small contents autosize maxsize overflow 
     265            //anchored popup small contents autosize maxsize overflow 
    266266            ll = new OpenLayers.LonLat(-10,15); 
    267267            popupClass = AutoSizeAnchoredMaxSize; 
     
    269269            addMarker(ll, popupClass, popupContentHTML, false, true); 
    270270 
    271           //anchored popup small contents autosize maxsize closebox overflow 
     271            //anchored popup small contents autosize maxsize closebox overflow 
    272272            ll = new OpenLayers.LonLat(-5,15); 
    273273            popupClass = AutoSizeAnchoredMaxSize; 
     
    276276 
    277277 
    278           //anchored popup bigger contents autosize overflow 
     278            //anchored popup bigger contents autosize overflow 
    279279            ll = new OpenLayers.LonLat(5,15); 
    280280            popupClass = AutoSizeAnchored; 
     
    282282            addMarker(ll, popupClass, popupContentHTML, false, true); 
    283283 
    284           //anchored popup bigger contents autosize closebox overflow 
     284            //anchored popup bigger contents autosize closebox overflow 
    285285            ll = new OpenLayers.LonLat(10,15); 
    286286            popupClass = AutoSizeAnchored; 
     
    289289 
    290290 
    291           //anchored popup wide short text contents autosize overflow 
     291            //anchored popup wide short text contents autosize overflow 
    292292            ll = new OpenLayers.LonLat(20,15); 
    293293            popupClass = AutoSizeAnchored; 
     
    295295            addMarker(ll, popupClass, popupContentHTML, false, true); 
    296296 
    297           //anchored popup wide short text contents autosize closebox overflow 
     297            //anchored popup wide short text contents autosize closebox overflow 
    298298            ll = new OpenLayers.LonLat(25,15); 
    299299            popupClass = AutoSizeAnchored; 
     
    301301            addMarker(ll, popupClass, popupContentHTML, true, true); 
    302302 
    303           //anchored popup wide short fixed contents autosize overflow 
     303            //anchored popup wide short fixed contents autosize overflow 
    304304            ll = new OpenLayers.LonLat(35,15); 
    305305            popupClass = AutoSizeAnchored; 
     
    307307            addMarker(ll, popupClass, popupContentHTML, false, true); 
    308308 
    309           //anchored popup wide short fixed contents autosize closebox overflow 
     309            //anchored popup wide short fixed contents autosize closebox overflow 
    310310            ll = new OpenLayers.LonLat(40,15); 
    311311            popupClass = AutoSizeAnchored; 
     
    314314 
    315315 
    316           //anchored popup thin long fixed contents autosize overflow 
     316            //anchored popup thin long fixed contents autosize overflow 
    317317            ll = new OpenLayers.LonLat(50,15); 
    318318            popupClass = AutoSizeAnchored; 
     
    320320            addMarker(ll, popupClass, popupContentHTML, false, true); 
    321321 
    322           //anchored popup thin long fixed contents autosize closebox overflow 
     322            //anchored popup thin long fixed contents autosize closebox overflow 
    323323            ll = new OpenLayers.LonLat(55,15); 
    324324            popupClass = AutoSizeAnchored; 
     
    327327 
    328328 
    329           //anchored popup wide long fixed contents autosize overflow 
     329            //anchored popup wide long fixed contents autosize overflow 
    330330            ll = new OpenLayers.LonLat(65,15); 
    331331            popupClass = AutoSizeAnchored; 
     
    333333            addMarker(ll, popupClass, popupContentHTML, false, true); 
    334334 
    335           //anchored popup wide long fixed contents autosize closebox overflow 
     335            //anchored popup wide long fixed contents autosize closebox overflow 
    336336            ll = new OpenLayers.LonLat(70,15); 
    337337            popupClass = AutoSizeAnchored; 
     
    357357 
    358358 
    359           //anchored bubble popup small contents autosize 
     359            //anchored bubble popup small contents autosize 
    360360            ll = new OpenLayers.LonLat(-40,5); 
    361361            popupClass = AutoSizeAnchoredBubble; 
     
    363363            addMarker(ll, popupClass, popupContentHTML, false); 
    364364 
    365           //anchored bubble popup small contents autosize closebox 
     365            //anchored bubble popup small contents autosize closebox 
    366366            ll = new OpenLayers.LonLat(-35,5); 
    367367            popupClass = AutoSizeAnchoredBubble; 
     
    370370 
    371371 
    372           //anchored bubble popup small contents autosize minsize 
     372            //anchored bubble popup small contents autosize minsize 
    373373            ll = new OpenLayers.LonLat(-25,5); 
    374374            popupClass = AutoSizeAnchoredBubbleMinSize; 
     
    376376            addMarker(ll, popupClass, popupContentHTML, false); 
    377377 
    378           //anchored bubble popup small contents autosize minsize closebox 
     378            //anchored bubble popup small contents autosize minsize closebox 
    379379            ll = new OpenLayers.LonLat(-20,5); 
    380380            popupClass = AutoSizeAnchoredBubbleMinSize; 
     
    383383 
    384384 
    385           //anchored bubble popup small contents autosize maxsize 
     385            //anchored bubble popup small contents autosize maxsize 
    386386            ll = new OpenLayers.LonLat(-10,5); 
    387387            popupClass = AutoSizeAnchoredBubbleMaxSize; 
     
    389389            addMarker(ll, popupClass, popupContentHTML, false); 
    390390 
    391           //anchored bubble popup small contents autosize maxsize closebox 
     391            //anchored bubble popup small contents autosize maxsize closebox 
    392392            ll = new OpenLayers.LonLat(-5,5); 
    393393            popupClass = AutoSizeAnchoredBubbleMaxSize; 
     
    396396 
    397397 
    398           //anchored bubble popup bigger contents autosize closebox 
     398            //anchored bubble popup bigger contents autosize closebox 
    399399            ll = new OpenLayers.LonLat(5,5); 
    400400            popupClass = AutoSizeAnchoredBubble; 
     
    402402            addMarker(ll, popupClass, popupContentHTML, false); 
    403403 
    404           //anchored bubble popup bigger contents autosize closebox 
     404            //anchored bubble popup bigger contents autosize closebox 
    405405            ll = new OpenLayers.LonLat(10,5); 
    406406            popupClass = AutoSizeAnchoredBubble; 
     
    409409 
    410410 
    411           //anchored bubble popup wide short text contents autosize 
     411            //anchored bubble popup wide short text contents autosize 
    412412            ll = new OpenLayers.LonLat(20,5); 
    413413            popupClass = AutoSizeAnchoredBubble; 
     
    415415            addMarker(ll, popupClass, popupContentHTML); 
    416416 
    417           //anchored bubble popup wide short text contents autosize closebox 
     417            //anchored bubble popup wide short text contents autosize closebox 
    418418            ll = new OpenLayers.LonLat(25,5); 
    419419            popupClass = AutoSizeAnchoredBubble; 
     
    422422 
    423423 
    424           //anchored bubble popup wide short fixed contents autosize 
     424            //anchored bubble popup wide short fixed contents autosize 
    425425            ll = new OpenLayers.LonLat(35,5); 
    426426            popupClass = AutoSizeAnchoredBubble; 
     
    428428            addMarker(ll, popupClass, popupContentHTML); 
    429429 
    430           //anchored bubble popup wide short fixed contents autosize closebox 
     430            //anchored bubble popup wide short fixed contents autosize closebox 
    431431            ll = new OpenLayers.LonLat(40,5); 
    432432            popupClass = AutoSizeAnchoredBubble; 
     
    435435 
    436436 
    437           //anchored bubble popup thin long fixed contents autosize 
     437            //anchored bubble popup thin long fixed contents autosize 
    438438            ll = new OpenLayers.LonLat(50,5); 
    439439            popupClass = AutoSizeAnchoredBubble; 
     
    441441            addMarker(ll, popupClass, popupContentHTML); 
    442442 
    443           //anchored bubble popup thin long fixed contents autosize closebox 
     443            //anchored bubble popup thin long fixed contents autosize closebox 
    444444            ll = new OpenLayers.LonLat(55,5); 
    445445            popupClass = AutoSizeAnchoredBubble; 
     
    448448 
    449449 
    450           //anchored bubble popup wide long fixed contents autosize 
     450            //anchored bubble popup wide long fixed contents autosize 
    451451            ll = new OpenLayers.LonLat(65,5); 
    452452            popupClass = AutoSizeAnchoredBubble; 
     
    454454            addMarker(ll, popupClass, popupContentHTML); 
    455455 
    456           //anchored bubble popup wide long fixed contents autosize closebox 
     456            //anchored bubble popup wide long fixed contents autosize closebox 
    457457            ll = new OpenLayers.LonLat(70,5); 
    458458            popupClass = AutoSizeAnchoredBubble; 
     
    460460            addMarker(ll, popupClass, popupContentHTML, true); 
    461461 
    462         // 
    463         //Bubble OVERFLOW 
    464         // 
    465  
    466             //anchored bubble popup small contents no autosize 
     462          // 
     463          //Bubble OVERFLOW 
     464          // 
     465 
     466              //anchored bubble popup small contents no autosize 
    467467            var ll = new OpenLayers.LonLat(-55,0); 
    468468            popupClass = OpenLayers.Popup.AnchoredBubble; 
     
    470470            addMarker(ll, popupClass, popupContentHTML, false, true); 
    471471 
    472             //anchored bubble popup small contents no autosize closebox 
     472              //anchored bubble popup small contents no autosize closebox 
    473473            var ll = new OpenLayers.LonLat(-50,0); 
    474474            popupClass = OpenLayers.Popup.AnchoredBubble; 
     
    477477 
    478478 
    479           //anchored bubble popup small contents autosize 
     479            //anchored bubble popup small contents autosize 
    480480            ll = new OpenLayers.LonLat(-40,0); 
    481481            popupClass = AutoSizeAnchoredBubble; 
     
    483483            addMarker(ll, popupClass, popupContentHTML, false, true); 
    484484 
    485           //anchored bubble popup small contents autosize closebox 
     485            //anchored bubble popup small contents autosize closebox 
    486486            ll = new OpenLayers.LonLat(-35,0); 
    487487            popupClass = AutoSizeAnchoredBubble; 
     
    490490 
    491491 
    492           //anchored bubble popup small contents autosize minsize 
     492            //anchored bubble popup small contents autosize minsize 
    493493            ll = new OpenLayers.LonLat(-25,0); 
    494494            popupClass = AutoSizeAnchoredBubbleMinSize; 
     
    496496            addMarker(ll, popupClass, popupContentHTML, false, true); 
    497497 
    498           //anchored bubble popup small contents autosize minsize closebox 
     498            //anchored bubble popup small contents autosize minsize closebox 
    499499            ll = new OpenLayers.LonLat(-20,0); 
    500500            popupClass = AutoSizeAnchoredBubbleMinSize; 
     
    503503 
    504504 
    505           //anchored bubble popup small contents autosize maxsize 
     505            //anchored bubble popup small contents autosize maxsize 
    506506            ll = new OpenLayers.LonLat(-10,0); 
    507507            popupClass = AutoSizeAnchoredBubbleMaxSize; 
     
    509509            addMarker(ll, popupClass, popupContentHTML, false, true); 
    510510 
    511           //anchored bubble popup small contents autosize maxsize closebox 
     511            //anchored bubble popup small contents autosize maxsize closebox 
    512512            ll = new OpenLayers.LonLat(-5,0); 
    513513            popupClass = AutoSizeAnchoredBubbleMaxSize; 
     
    516516 
    517517 
    518           //anchored bubble popup bigger contents autosize closebox 
     518            //anchored bubble popup bigger contents autosize closebox 
    519519            ll = new OpenLayers.LonLat(5,0); 
    520520            popupClass = AutoSizeAnchoredBubble; 
     
    522522            addMarker(ll, popupClass, popupContentHTML, false, true); 
    523523 
    524           //anchored bubble popup bigger contents autosize closebox 
     524            //anchored bubble popup bigger contents autosize closebox 
    525525            ll = new OpenLayers.LonLat(10,0); 
    526526            popupClass = AutoSizeAnchoredBubble; 
     
    529529 
    530530 
    531           //anchored bubble popup wide short contents autosize overflow 
     531            //anchored bubble popup wide short contents autosize overflow 
    532532            ll = new OpenLayers.LonLat(20,0); 
    533533            popupClass = AutoSizeAnchoredBubble; 
     
    535535            addMarker(ll, popupClass, popupContentHTML, false, true); 
    536536 
    537           //anchored bubble popup wide short contents autosize closebox overflow 
     537            //anchored bubble popup wide short contents autosize closebox overflow 
    538538            ll = new OpenLayers.LonLat(25,0); 
    539539            popupClass = AutoSizeAnchoredBubble; 
     
    542542 
    543543 
    544           //anchored bubble popup wide short fixed contents autosize overflow 
     544            //anchored bubble popup wide short fixed contents autosize overflow 
    545545            ll = new OpenLayers.LonLat(35,0); 
    546546            popupClass = AutoSizeAnchoredBubble; 
     
    548548            addMarker(ll, popupClass, popupContentHTML, false, true); 
    549549 
    550           //anchored bubble popup wide short fixed contents autosize closebox overflow 
     550            //anchored bubble popup wide short fixed contents autosize closebox overflow 
    551551            ll = new OpenLayers.LonLat(40,0); 
    552552            popupClass = AutoSizeAnchoredBubble; 
     
    555555 
    556556 
    557           //anchored bubble popup thin long fixed contents autosize overflow 
     557            //anchored bubble popup thin long fixed contents autosize overflow 
    558558            ll = new OpenLayers.LonLat(50,0); 
    559559            popupClass = AutoSizeAnchoredBubble; 
     
    561561            addMarker(ll, popupClass, popupContentHTML, false, true); 
    562562 
    563           //anchored bubble popup thin long fixed contents autosize closebox overflow 
     563            //anchored bubble popup thin long fixed contents autosize closebox overflow 
    564564            ll = new OpenLayers.LonLat(55,0); 
    565565            popupClass = AutoSizeAnchoredBubble; 
     
    568568 
    569569 
    570           //anchored bubble popup wide long fixed contents autosize overflow 
     570            //anchored bubble popup wide long fixed contents autosize overflow 
    571571            ll = new OpenLayers.LonLat(65,0); 
    572572            popupClass = AutoSizeAnchoredBubble; 
     
    574574            addMarker(ll, popupClass, popupContentHTML, false, true); 
    575575 
    576           //anchored bubble popup wide long fixed contents autosize closebox overflow 
     576            //anchored bubble popup wide long fixed contents autosize closebox overflow 
    577577            ll = new OpenLayers.LonLat(70,0); 
    578578            popupClass = AutoSizeAnchoredBubble; 
     
    580580            addMarker(ll, popupClass, popupContentHTML, true, true); 
    581581 
    582  //FRAMED 
     582   //FRAMED 
    583583  
    584         // 
    585         //FRAMED NO OVERFLOW 
    586         // 
    587  
    588             //anchored bubble popup small contents no autosize 
     584          // 
     585          //FRAMED NO OVERFLOW 
     586          // 
     587 
     588              //anchored bubble popup small contents no autosize 
    589589            var ll = new OpenLayers.LonLat(-55,-15); 
    590590            popupClass = OpenLayers.Popup.FramedCloud; 
     
    592592            addMarker(ll, popupClass, popupContentHTML, false); 
    593593 
    594             //anchored bubble popup small contents no autosize closebox 
     594              //anchored bubble popup small contents no autosize closebox 
    595595            var ll = new OpenLayers.LonLat(-50,-15); 
    596596            popupClass = OpenLayers.Popup.FramedCloud; 
     
    599599 
    600600 
    601           //anchored bubble popup small contents autosize 
     601            //anchored bubble popup small contents autosize 
    602602            ll = new OpenLayers.LonLat(-40,-15); 
    603603            popupClass = AutoSizeFramedCloud; 
     
    605605            addMarker(ll, popupClass, popupContentHTML, false); 
    606606 
    607           //anchored bubble popup small contents autosize closebox 
     607            //anchored bubble popup small contents autosize closebox 
    608608            ll = new OpenLayers.LonLat(-35,-15); 
    609609            popupClass = AutoSizeFramedCloud; 
     
    612612 
    613613 
    614           //anchored bubble popup small contents autosize minsize 
     614            //anchored bubble popup small contents autosize minsize 
    615615            ll = new OpenLayers.LonLat(-25,-15); 
    616616            popupClass = AutoSizeFramedCloudMinSize; 
     
    618618            addMarker(ll, popupClass, popupContentHTML, false); 
    619619 
    620           //anchored bubble popup small contents autosize minsize closebox 
     620            //anchored bubble popup small contents autosize minsize closebox 
    621621            ll = new OpenLayers.LonLat(-20,-15); 
    622622            popupClass = AutoSizeFramedCloudMinSize; 
     
    625625 
    626626 
    627           //anchored bubble popup small contents autosize maxsize 
     627            //anchored bubble popup small contents autosize maxsize 
    628628            ll = new OpenLayers.LonLat(-10,-15); 
    629629            popupClass = AutoSizeFramedCloudMaxSize; 
     
    631631            addMarker(ll, popupClass, popupContentHTML, false); 
    632632 
    633           //anchored bubble popup small contents autosize maxsize closebox 
     633            //anchored bubble popup small contents autosize maxsize closebox 
    634634            ll = new OpenLayers.LonLat(-5,-15); 
    635635            popupClass = AutoSizeFramedCloudMaxSize; 
     
    638638 
    639639 
    640           //anchored bubble popup bigger contents autosize closebox 
     640            //anchored bubble popup bigger contents autosize closebox 
    641641            ll = new OpenLayers.LonLat(5,-15); 
    642642            popupClass = AutoSizeFramedCloud; 
     
    644644            addMarker(ll, popupClass, popupContentHTML, false); 
    645645 
    646           //anchored bubble popup bigger contents autosize closebox 
     646            //anchored bubble popup bigger contents autosize closebox 
    647647            ll = new OpenLayers.LonLat(10,-15); 
    648648            popupClass = AutoSizeFramedCloud; 
     
    651651 
    652652 
    653           //anchored bubble popup wide short text contents autosize 
     653            //anchored bubble popup wide short text contents autosize 
    654654            ll = new OpenLayers.LonLat(20,-15); 
    655655            popupClass = AutoSizeFramedCloud; 
     
    657657            addMarker(ll, popupClass, popupContentHTML); 
    658658 
    659           //anchored bubble popup wide short text contents autosize closebox 
     659            //anchored bubble popup wide short text contents autosize closebox 
    660660            ll = new OpenLayers.LonLat(25,-15); 
    661661            popupClass = AutoSizeFramedCloud; 
     
    664664 
    665665 
    666           //anchored bubble popup wide short fixed contents autosize 
     666            //anchored bubble popup wide short fixed contents autosize 
    667667            ll = new OpenLayers.LonLat(35,-15); 
    668668            popupClass = AutoSizeFramedCloud; 
     
    670670            addMarker(ll, popupClass, popupContentHTML); 
    671671 
    672           //anchored bubble popup wide short fixed contents autosize closebox 
     672            //anchored bubble popup wide short fixed contents autosize closebox 
    673673            ll = new OpenLayers.LonLat(40,-15); 
    674674            popupClass = AutoSizeFramedCloud; 
     
    677677 
    678678 
    679           //anchored bubble popup thin long fixed contents autosize 
     679            //anchored bubble popup thin long fixed contents autosize 
    680680            ll = new OpenLayers.LonLat(50,-15); 
    681681            popupClass = AutoSizeFramedCloud; 
     
    683683            addMarker(ll, popupClass, popupContentHTML); 
    684684 
    685           //anchored bubble popup thin long fixed contents autosize closebox 
     685            //anchored bubble popup thin long fixed contents autosize closebox 
    686686            ll = new OpenLayers.LonLat(55,-15); 
    687687            popupClass = AutoSizeFramedCloud; 
     
    690690 
    691691 
    692           //anchored bubble popup wide long fixed contents autosize 
     692            //anchored bubble popup wide long fixed contents autosize 
    693693            ll = new OpenLayers.LonLat(65,-15); 
    694694            popupClass = AutoSizeFramedCloud; 
     
    696696            addMarker(ll, popupClass, popupContentHTML); 
    697697 
    698           //anchored bubble popup wide long fixed contents autosize closebox 
     698            //anchored bubble popup wide long fixed contents autosize closebox 
    699699            ll = new OpenLayers.LonLat(70,-15); 
    700700            popupClass = AutoSizeFramedCloud; 
     
    702702            addMarker(ll, popupClass, popupContentHTML, true); 
    703703 
    704         // 
    705         //FRAMED OVERFLOW 
    706         // 
    707  
    708             //anchored bubble popup small contents no autosize 
     704          // 
     705          //FRAMED OVERFLOW 
     706          // 
     707 
     708              //anchored bubble popup small contents no autosize 
    709709            var ll = new OpenLayers.LonLat(-55,-20); 
    710710            popupClass = OpenLayers.Popup.FramedCloud; 
     
    712712            addMarker(ll, popupClass, popupContentHTML, false, true); 
    713713 
    714             //anchored bubble popup small contents no autosize closebox 
     714              //anchored bubble popup small contents no autosize closebox 
    715715            var ll = new OpenLayers.LonLat(-50,-20); 
    716716            popupClass = OpenLayers.Popup.FramedCloud; 
     
    719719 
    720720 
    721           //anchored bubble popup small contents autosize 
     721            //anchored bubble popup small contents autosize 
    722722            ll = new OpenLayers.LonLat(-40,-20); 
    723723            popupClass = AutoSizeFramedCloud; 
     
    725725            addMarker(ll, popupClass, popupContentHTML, false, true); 
    726726 
    727           //anchored bubble popup small contents autosize closebox 
     727            //anchored bubble popup small contents autosize closebox 
    728728            ll = new OpenLayers.LonLat(-35,-20); 
    729729            popupClass = AutoSizeFramedCloud; 
     
    732732 
    733733 
    734           //anchored bubble popup small contents autosize minsize 
     734            //anchored bubble popup small contents autosize minsize 
    735735            ll = new OpenLayers.LonLat(-25,-20); 
    736736            popupClass = AutoSizeFramedCloudMinSize; 
     
    738738            addMarker(ll, popupClass, popupContentHTML, false, true); 
    739739 
    740           //anchored bubble popup small contents autosize minsize closebox 
     740            //anchored bubble popup small contents autosize minsize closebox 
    741741            ll = new OpenLayers.LonLat(-20,-20); 
    742742            popupClass = AutoSizeFramedCloudMinSize; 
     
    745745 
    746746 
    747           //anchored bubble popup small contents autosize maxsize 
     747            //anchored bubble popup small contents autosize maxsize 
    748748            ll = new OpenLayers.LonLat(-10,-20); 
    749749            popupClass = AutoSizeFramedCloudMaxSize; 
     
    751751            addMarker(ll, popupClass, popupContentHTML, false, true); 
    752752 
    753           //anchored bubble popup small contents autosize maxsize closebox 
     753            //anchored bubble popup small contents autosize maxsize closebox 
    754754            ll = new OpenLayers.LonLat(-5,-20); 
    755755            popupClass = AutoSizeFramedCloudMaxSize; 
     
    758758 
    759759 
    760           //anchored bubble popup bigger contents autosize closebox 
     760            //anchored bubble popup bigger contents autosize closebox 
    761761            ll = new OpenLayers.LonLat(5,-20); 
    762762            popupClass = AutoSizeFramedCloud; 
     
    764764            addMarker(ll, popupClass, popupContentHTML, false, true); 
    765765 
    766           //anchored bubble popup bigger contents autosize closebox 
     766            //anchored bubble popup bigger contents autosize closebox 
    767767            ll = new OpenLayers.LonLat(10,-20); 
    768768            popupClass = AutoSizeFramedCloud; 
     
    771771 
    772772 
    773           //anchored bubble popup wide short contents autosize overflow 
     773            //anchored bubble popup wide short contents autosize overflow 
    774774            ll = new OpenLayers.LonLat(20,-20); 
    775775            popupClass = AutoSizeFramedCloud; 
     
    777777            addMarker(ll, popupClass, popupContentHTML, false, true); 
    778778 
    779           //anchored bubble popup wide short contents autosize closebox overflow 
     779            //anchored bubble popup wide short contents autosize closebox overflow 
    780780            ll = new OpenLayers.LonLat(25,-20); 
    781781            popupClass = AutoSizeFramedCloud; 
     
    784784 
    785785 
    786           //anchored bubble popup wide short fixed contents autosize overflow 
     786            //anchored bubble popup wide short fixed contents autosize overflow 
    787787            ll = new OpenLayers.LonLat(35,-20); 
    788788            popupClass = AutoSizeFramedCloud; 
     
    790790            addMarker(ll, popupClass, popupContentHTML, false, true); 
    791791 
    792           //anchored bubble popup wide short fixed contents autosize closebox overflow 
     792            //anchored bubble popup wide short fixed contents autosize closebox overflow 
    793793            ll = new OpenLayers.LonLat(40,-20); 
    794794            popupClass = AutoSizeFramedCloud; 
     
    797797 
    798798 
    799           //anchored bubble popup thin long fixed contents autosize overflow 
     799            //anchored bubble popup thin long fixed contents autosize overflow 
    800800            ll = new OpenLayers.LonLat(50,-20); 
    801801            popupClass = AutoSizeFramedCloud; 
     
    803803            addMarker(ll, popupClass, popupContentHTML, false, true); 
    804804 
    805           //anchored bubble popup thin long fixed contents autosize closebox overflow 
     805            //anchored bubble popup thin long fixed contents autosize closebox overflow 
    806806            ll = new OpenLayers.LonLat(55,-20); 
    807807            popupClass = AutoSizeFramedCloud; 
     
    810810 
    811811 
    812           //anchored bubble popup wide long fixed contents autosize overflow 
     812            //anchored bubble popup wide long fixed contents autosize overflow 
    813813            ll = new OpenLayers.LonLat(65,-20); 
    814814            popupClass = AutoSizeFramedCloud; 
     
    816816            addMarker(ll, popupClass, popupContentHTML, false, true); 
    817817 
    818           //anchored bubble popup wide long fixed contents autosize closebox overflow 
     818            //anchored bubble popup wide long fixed contents autosize closebox overflow 
    819819            ll = new OpenLayers.LonLat(70,-20); 
    820820            popupClass = AutoSizeFramedCloud; 
  • sandbox/euzuro/pop/lib/OpenLayers/Popup.js

    r6704 r6707  
    396396        var contentSize = this.size.clone(); 
    397397         
    398       // if our contentDiv has a css 'padding' set on it by a stylesheet, we  
    399       //  must add that to the desired "size".  
     398        // if our contentDiv has a css 'padding' set on it by a stylesheet, we  
     399        //  must add that to the desired "size".  
    400400        var contentDivPadding = this.getContentDivPadding(); 
    401401        var wPadding = contentDivPadding.left + contentDivPadding.right; 
    402402        var hPadding = contentDivPadding.top + contentDivPadding.bottom; 
    403403 
    404       // take into account the popup's 'padding' property 
     404        // take into account the popup's 'padding' property 
    405405        this.fixPadding(); 
    406406        wPadding += this.padding.left + this.padding.right; 
    407407        hPadding += this.padding.top + this.padding.bottom; 
    408408 
    409       //make extra space for the close div 
     409        // make extra space for the close div 
    410410        if (this.closeDiv) { 
    411411            var closeDivWidth = parseInt(this.closeDiv.style.width); 
     
    585585        var safeContentSize = size.clone(); 
    586586 
    587       // if our contentDiv has a css 'padding' set on it by a stylesheet, we  
    588       //  must add that to the desired "size".  
     587        // if our contentDiv has a css 'padding' set on it by a stylesheet, we  
     588        //  must add that to the desired "size".  
    589589        var contentDivPadding = this.getContentDivPadding(); 
    590590        var wPadding = contentDivPadding.left + contentDivPadding.right; 
    591591        var hPadding = contentDivPadding.top + contentDivPadding.bottom; 
    592592 
    593       // take into account the popup's 'padding' property 
     593        // take into account the popup's 'padding' property 
    594594        this.fixPadding(); 
    595595        wPadding += this.padding.left + this.padding.right; 
     
    601601        } 
    602602 
    603       // prevent the popup from being smaller than a specified minimal size 
     603        // prevent the popup from being smaller than a specified minimal size 
    604604        if (this.minSize) { 
    605605            safeContentSize.w = Math.max(safeContentSize.w,  
     
    609609        } 
    610610 
    611       // prevent the popup from being bigger than a specified maximum size 
     611        // prevent the popup from being bigger than a specified maximum size 
    612612        if (this.maxSize) { 
    613613            safeContentSize.w = Math.min(safeContentSize.w,  
     
    617617        } 
    618618         
    619       //make sure the desired size to set doesn't result in a popup that  
    620       // is bigger than the map's viewport. 
    621       // 
     619        //make sure the desired size to set doesn't result in a popup that  
     620        // is bigger than the map's viewport. 
     621        // 
    622622        if (this.map && this.map.size) { 
    623623 
    624           // Note that there *was* a reference to a  
    625           // 'OpenLayers.Popup.SCROLL_BAR_WIDTH' constant here, with special  
    626           // tolerance for it and everything... but it was never defined in the  
    627           // first place, so I don't know what to think. 
    628           // 
     624            // Note that there *was* a reference to a 
     625            // 'OpenLayers.Popup.SCROLL_BAR_WIDTH' constant here, with special 
     626            // tolerance for it and everything... but it was never defined in 
     627            // the first place, so I don't know what to think. 
    629628           
    630629            var maxY = this.map.size.h -