Changeset 6707
- Timestamp:
- 03/30/08 15:58:04 (9 months ago)
- Files:
-
- sandbox/euzuro/pop/examples/popupMatrix.html (modified) (108 diffs)
- sandbox/euzuro/pop/lib/OpenLayers/Popup.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/pop/examples/popupMatrix.html
r6702 r6707 41 41 }); 42 42 43 //anchoredbubble43 //anchoredbubble 44 44 45 45 AutoSizeAnchoredBubble = OpenLayers.Class(OpenLayers.Popup.AnchoredBubble, { … … 57 57 }); 58 58 59 //framed59 //framed 60 60 61 61 //disable the autosize for the purpose of our matrix … … 105 105 // 106 106 107 //anchored popup small contents no autosize107 //anchored popup small contents no autosize 108 108 ll = new OpenLayers.LonLat(-55,20); 109 109 popupClass = OpenLayers.Popup.Anchored; … … 111 111 addMarker(ll, popupClass, popupContentHTML); 112 112 113 //anchored popup small contents no autosize closebox113 //anchored popup small contents no autosize closebox 114 114 var ll = new OpenLayers.LonLat(-50,20); 115 115 popupClass = OpenLayers.Popup.Anchored; … … 118 118 119 119 120 //anchored popup small contents autosize120 //anchored popup small contents autosize 121 121 ll = new OpenLayers.LonLat(-40,20); 122 122 popupClass = AutoSizeAnchored; … … 124 124 addMarker(ll, popupClass, popupContentHTML); 125 125 126 //anchored popup small contents autosize closebox126 //anchored popup small contents autosize closebox 127 127 ll = new OpenLayers.LonLat(-35,20); 128 128 popupClass = AutoSizeAnchored; … … 131 131 132 132 133 //anchored popup small contents autosize minsize133 //anchored popup small contents autosize minsize 134 134 ll = new OpenLayers.LonLat(-25,20); 135 135 popupClass = AutoSizeAnchoredMinSize; … … 137 137 addMarker(ll, popupClass, popupContentHTML); 138 138 139 //anchored popup small contents autosize minsize closebox139 //anchored popup small contents autosize minsize closebox 140 140 ll = new OpenLayers.LonLat(-20,20); 141 141 popupClass = AutoSizeAnchoredMinSize; … … 144 144 145 145 146 //anchored popup small contents autosize maxsize146 //anchored popup small contents autosize maxsize 147 147 ll = new OpenLayers.LonLat(-10,20); 148 148 popupClass = AutoSizeAnchoredMaxSize; … … 150 150 addMarker(ll, popupClass, popupContentHTML); 151 151 152 //anchored popup small contents autosize maxsize closebox152 //anchored popup small contents autosize maxsize closebox 153 153 ll = new OpenLayers.LonLat(-5,20); 154 154 popupClass = AutoSizeAnchoredMaxSize; … … 157 157 158 158 159 //anchored popup bigger contents autosize159 //anchored popup bigger contents autosize 160 160 ll = new OpenLayers.LonLat(5,20); 161 161 popupClass = AutoSizeAnchored; … … 163 163 addMarker(ll, popupClass, popupContentHTML); 164 164 165 //anchored popup bigger contents autosize closebox165 //anchored popup bigger contents autosize closebox 166 166 ll = new OpenLayers.LonLat(10,20); 167 167 popupClass = AutoSizeAnchored; … … 169 169 addMarker(ll, popupClass, popupContentHTML, true); 170 170 171 //anchored popup wide short text contents autosize171 //anchored popup wide short text contents autosize 172 172 ll = new OpenLayers.LonLat(20,20); 173 173 popupClass = AutoSizeAnchored; … … 175 175 addMarker(ll, popupClass, popupContentHTML); 176 176 177 //anchored popup wide short text contents autosize closebox177 //anchored popup wide short text contents autosize closebox 178 178 ll = new OpenLayers.LonLat(25,20); 179 179 popupClass = AutoSizeAnchored; … … 182 182 183 183 184 //anchored popup wide short fixed contents autosize184 //anchored popup wide short fixed contents autosize 185 185 ll = new OpenLayers.LonLat(35,20); 186 186 popupClass = AutoSizeAnchored; … … 188 188 addMarker(ll, popupClass, popupContentHTML); 189 189 190 //anchored popup wide short fixed contents autosize closebox190 //anchored popup wide short fixed contents autosize closebox 191 191 ll = new OpenLayers.LonLat(40,20); 192 192 popupClass = AutoSizeAnchored; … … 195 195 196 196 197 //anchored popup thin long fixed contents autosize197 //anchored popup thin long fixed contents autosize 198 198 ll = new OpenLayers.LonLat(50,20); 199 199 popupClass = AutoSizeAnchored; … … 201 201 addMarker(ll, popupClass, popupContentHTML); 202 202 203 //anchored popup thin long fixed contents autosize closebox203 //anchored popup thin long fixed contents autosize closebox 204 204 ll = new OpenLayers.LonLat(55,20); 205 205 popupClass = AutoSizeAnchored; … … 208 208 209 209 210 //anchored popup wide long fixed contents autosize210 //anchored popup wide long fixed contents autosize 211 211 ll = new OpenLayers.LonLat(65,20); 212 212 popupClass = AutoSizeAnchored; … … 214 214 addMarker(ll, popupClass, popupContentHTML); 215 215 216 //anchored popup wide long fixed contents autosize closebox216 //anchored popup wide long fixed contents autosize closebox 217 217 ll = new OpenLayers.LonLat(70,20); 218 218 popupClass = AutoSizeAnchored; … … 224 224 // 225 225 226 //anchored popup small contents no autosize overflow226 //anchored popup small contents no autosize overflow 227 227 var ll = new OpenLayers.LonLat(-55,15); 228 228 popupClass = OpenLayers.Popup.Anchored; … … 230 230 addMarker(ll, popupClass, popupContentHTML, false, true); 231 231 232 //anchored popup small contents no autosize closebox overflow232 //anchored popup small contents no autosize closebox overflow 233 233 var ll = new OpenLayers.LonLat(-50,15); 234 234 popupClass = OpenLayers.Popup.Anchored; … … 237 237 238 238 239 //anchored popup small contents autosize overflow239 //anchored popup small contents autosize overflow 240 240 ll = new OpenLayers.LonLat(-40,15); 241 241 popupClass = AutoSizeAnchored; … … 243 243 addMarker(ll, popupClass, popupContentHTML, false, true); 244 244 245 //anchored popup small contents autosize closebox overflow245 //anchored popup small contents autosize closebox overflow 246 246 ll = new OpenLayers.LonLat(-35,15); 247 247 popupClass = AutoSizeAnchored; … … 250 250 251 251 252 //anchored popup small contents autosize minsize overflow252 //anchored popup small contents autosize minsize overflow 253 253 ll = new OpenLayers.LonLat(-25,15); 254 254 popupClass = AutoSizeAnchoredMinSize; … … 256 256 addMarker(ll, popupClass, popupContentHTML, false, true); 257 257 258 //anchored popup small contents autosize minsize closebox overflow258 //anchored popup small contents autosize minsize closebox overflow 259 259 ll = new OpenLayers.LonLat(-20,15); 260 260 popupClass = AutoSizeAnchoredMinSize; … … 263 263 264 264 265 //anchored popup small contents autosize maxsize overflow265 //anchored popup small contents autosize maxsize overflow 266 266 ll = new OpenLayers.LonLat(-10,15); 267 267 popupClass = AutoSizeAnchoredMaxSize; … … 269 269 addMarker(ll, popupClass, popupContentHTML, false, true); 270 270 271 //anchored popup small contents autosize maxsize closebox overflow271 //anchored popup small contents autosize maxsize closebox overflow 272 272 ll = new OpenLayers.LonLat(-5,15); 273 273 popupClass = AutoSizeAnchoredMaxSize; … … 276 276 277 277 278 //anchored popup bigger contents autosize overflow278 //anchored popup bigger contents autosize overflow 279 279 ll = new OpenLayers.LonLat(5,15); 280 280 popupClass = AutoSizeAnchored; … … 282 282 addMarker(ll, popupClass, popupContentHTML, false, true); 283 283 284 //anchored popup bigger contents autosize closebox overflow284 //anchored popup bigger contents autosize closebox overflow 285 285 ll = new OpenLayers.LonLat(10,15); 286 286 popupClass = AutoSizeAnchored; … … 289 289 290 290 291 //anchored popup wide short text contents autosize overflow291 //anchored popup wide short text contents autosize overflow 292 292 ll = new OpenLayers.LonLat(20,15); 293 293 popupClass = AutoSizeAnchored; … … 295 295 addMarker(ll, popupClass, popupContentHTML, false, true); 296 296 297 //anchored popup wide short text contents autosize closebox overflow297 //anchored popup wide short text contents autosize closebox overflow 298 298 ll = new OpenLayers.LonLat(25,15); 299 299 popupClass = AutoSizeAnchored; … … 301 301 addMarker(ll, popupClass, popupContentHTML, true, true); 302 302 303 //anchored popup wide short fixed contents autosize overflow303 //anchored popup wide short fixed contents autosize overflow 304 304 ll = new OpenLayers.LonLat(35,15); 305 305 popupClass = AutoSizeAnchored; … … 307 307 addMarker(ll, popupClass, popupContentHTML, false, true); 308 308 309 //anchored popup wide short fixed contents autosize closebox overflow309 //anchored popup wide short fixed contents autosize closebox overflow 310 310 ll = new OpenLayers.LonLat(40,15); 311 311 popupClass = AutoSizeAnchored; … … 314 314 315 315 316 //anchored popup thin long fixed contents autosize overflow316 //anchored popup thin long fixed contents autosize overflow 317 317 ll = new OpenLayers.LonLat(50,15); 318 318 popupClass = AutoSizeAnchored; … … 320 320 addMarker(ll, popupClass, popupContentHTML, false, true); 321 321 322 //anchored popup thin long fixed contents autosize closebox overflow322 //anchored popup thin long fixed contents autosize closebox overflow 323 323 ll = new OpenLayers.LonLat(55,15); 324 324 popupClass = AutoSizeAnchored; … … 327 327 328 328 329 //anchored popup wide long fixed contents autosize overflow329 //anchored popup wide long fixed contents autosize overflow 330 330 ll = new OpenLayers.LonLat(65,15); 331 331 popupClass = AutoSizeAnchored; … … 333 333 addMarker(ll, popupClass, popupContentHTML, false, true); 334 334 335 //anchored popup wide long fixed contents autosize closebox overflow335 //anchored popup wide long fixed contents autosize closebox overflow 336 336 ll = new OpenLayers.LonLat(70,15); 337 337 popupClass = AutoSizeAnchored; … … 357 357 358 358 359 //anchored bubble popup small contents autosize359 //anchored bubble popup small contents autosize 360 360 ll = new OpenLayers.LonLat(-40,5); 361 361 popupClass = AutoSizeAnchoredBubble; … … 363 363 addMarker(ll, popupClass, popupContentHTML, false); 364 364 365 //anchored bubble popup small contents autosize closebox365 //anchored bubble popup small contents autosize closebox 366 366 ll = new OpenLayers.LonLat(-35,5); 367 367 popupClass = AutoSizeAnchoredBubble; … … 370 370 371 371 372 //anchored bubble popup small contents autosize minsize372 //anchored bubble popup small contents autosize minsize 373 373 ll = new OpenLayers.LonLat(-25,5); 374 374 popupClass = AutoSizeAnchoredBubbleMinSize; … … 376 376 addMarker(ll, popupClass, popupContentHTML, false); 377 377 378 //anchored bubble popup small contents autosize minsize closebox378 //anchored bubble popup small contents autosize minsize closebox 379 379 ll = new OpenLayers.LonLat(-20,5); 380 380 popupClass = AutoSizeAnchoredBubbleMinSize; … … 383 383 384 384 385 //anchored bubble popup small contents autosize maxsize385 //anchored bubble popup small contents autosize maxsize 386 386 ll = new OpenLayers.LonLat(-10,5); 387 387 popupClass = AutoSizeAnchoredBubbleMaxSize; … … 389 389 addMarker(ll, popupClass, popupContentHTML, false); 390 390 391 //anchored bubble popup small contents autosize maxsize closebox391 //anchored bubble popup small contents autosize maxsize closebox 392 392 ll = new OpenLayers.LonLat(-5,5); 393 393 popupClass = AutoSizeAnchoredBubbleMaxSize; … … 396 396 397 397 398 //anchored bubble popup bigger contents autosize closebox398 //anchored bubble popup bigger contents autosize closebox 399 399 ll = new OpenLayers.LonLat(5,5); 400 400 popupClass = AutoSizeAnchoredBubble; … … 402 402 addMarker(ll, popupClass, popupContentHTML, false); 403 403 404 //anchored bubble popup bigger contents autosize closebox404 //anchored bubble popup bigger contents autosize closebox 405 405 ll = new OpenLayers.LonLat(10,5); 406 406 popupClass = AutoSizeAnchoredBubble; … … 409 409 410 410 411 //anchored bubble popup wide short text contents autosize411 //anchored bubble popup wide short text contents autosize 412 412 ll = new OpenLayers.LonLat(20,5); 413 413 popupClass = AutoSizeAnchoredBubble; … … 415 415 addMarker(ll, popupClass, popupContentHTML); 416 416 417 //anchored bubble popup wide short text contents autosize closebox417 //anchored bubble popup wide short text contents autosize closebox 418 418 ll = new OpenLayers.LonLat(25,5); 419 419 popupClass = AutoSizeAnchoredBubble; … … 422 422 423 423 424 //anchored bubble popup wide short fixed contents autosize424 //anchored bubble popup wide short fixed contents autosize 425 425 ll = new OpenLayers.LonLat(35,5); 426 426 popupClass = AutoSizeAnchoredBubble; … … 428 428 addMarker(ll, popupClass, popupContentHTML); 429 429 430 //anchored bubble popup wide short fixed contents autosize closebox430 //anchored bubble popup wide short fixed contents autosize closebox 431 431 ll = new OpenLayers.LonLat(40,5); 432 432 popupClass = AutoSizeAnchoredBubble; … … 435 435 436 436 437 //anchored bubble popup thin long fixed contents autosize437 //anchored bubble popup thin long fixed contents autosize 438 438 ll = new OpenLayers.LonLat(50,5); 439 439 popupClass = AutoSizeAnchoredBubble; … … 441 441 addMarker(ll, popupClass, popupContentHTML); 442 442 443 //anchored bubble popup thin long fixed contents autosize closebox443 //anchored bubble popup thin long fixed contents autosize closebox 444 444 ll = new OpenLayers.LonLat(55,5); 445 445 popupClass = AutoSizeAnchoredBubble; … … 448 448 449 449 450 //anchored bubble popup wide long fixed contents autosize450 //anchored bubble popup wide long fixed contents autosize 451 451 ll = new OpenLayers.LonLat(65,5); 452 452 popupClass = AutoSizeAnchoredBubble; … … 454 454 addMarker(ll, popupClass, popupContentHTML); 455 455 456 //anchored bubble popup wide long fixed contents autosize closebox456 //anchored bubble popup wide long fixed contents autosize closebox 457 457 ll = new OpenLayers.LonLat(70,5); 458 458 popupClass = AutoSizeAnchoredBubble; … … 460 460 addMarker(ll, popupClass, popupContentHTML, true); 461 461 462 //463 //Bubble OVERFLOW464 //465 466 //anchored bubble popup small contents no autosize462 // 463 //Bubble OVERFLOW 464 // 465 466 //anchored bubble popup small contents no autosize 467 467 var ll = new OpenLayers.LonLat(-55,0); 468 468 popupClass = OpenLayers.Popup.AnchoredBubble; … … 470 470 addMarker(ll, popupClass, popupContentHTML, false, true); 471 471 472 //anchored bubble popup small contents no autosize closebox472 //anchored bubble popup small contents no autosize closebox 473 473 var ll = new OpenLayers.LonLat(-50,0); 474 474 popupClass = OpenLayers.Popup.AnchoredBubble; … … 477 477 478 478 479 //anchored bubble popup small contents autosize479 //anchored bubble popup small contents autosize 480 480 ll = new OpenLayers.LonLat(-40,0); 481 481 popupClass = AutoSizeAnchoredBubble; … … 483 483 addMarker(ll, popupClass, popupContentHTML, false, true); 484 484 485 //anchored bubble popup small contents autosize closebox485 //anchored bubble popup small contents autosize closebox 486 486 ll = new OpenLayers.LonLat(-35,0); 487 487 popupClass = AutoSizeAnchoredBubble; … … 490 490 491 491 492 //anchored bubble popup small contents autosize minsize492 //anchored bubble popup small contents autosize minsize 493 493 ll = new OpenLayers.LonLat(-25,0); 494 494 popupClass = AutoSizeAnchoredBubbleMinSize; … … 496 496 addMarker(ll, popupClass, popupContentHTML, false, true); 497 497 498 //anchored bubble popup small contents autosize minsize closebox498 //anchored bubble popup small contents autosize minsize closebox 499 499 ll = new OpenLayers.LonLat(-20,0); 500 500 popupClass = AutoSizeAnchoredBubbleMinSize; … … 503 503 504 504 505 //anchored bubble popup small contents autosize maxsize505 //anchored bubble popup small contents autosize maxsize 506 506 ll = new OpenLayers.LonLat(-10,0); 507 507 popupClass = AutoSizeAnchoredBubbleMaxSize; … … 509 509 addMarker(ll, popupClass, popupContentHTML, false, true); 510 510 511 //anchored bubble popup small contents autosize maxsize closebox511 //anchored bubble popup small contents autosize maxsize closebox 512 512 ll = new OpenLayers.LonLat(-5,0); 513 513 popupClass = AutoSizeAnchoredBubbleMaxSize; … … 516 516 517 517 518 //anchored bubble popup bigger contents autosize closebox518 //anchored bubble popup bigger contents autosize closebox 519 519 ll = new OpenLayers.LonLat(5,0); 520 520 popupClass = AutoSizeAnchoredBubble; … … 522 522 addMarker(ll, popupClass, popupContentHTML, false, true); 523 523 524 //anchored bubble popup bigger contents autosize closebox524 //anchored bubble popup bigger contents autosize closebox 525 525 ll = new OpenLayers.LonLat(10,0); 526 526 popupClass = AutoSizeAnchoredBubble; … … 529 529 530 530 531 //anchored bubble popup wide short contents autosize overflow531 //anchored bubble popup wide short contents autosize overflow 532 532 ll = new OpenLayers.LonLat(20,0); 533 533 popupClass = AutoSizeAnchoredBubble; … … 535 535 addMarker(ll, popupClass, popupContentHTML, false, true); 536 536 537 //anchored bubble popup wide short contents autosize closebox overflow537 //anchored bubble popup wide short contents autosize closebox overflow 538 538 ll = new OpenLayers.LonLat(25,0); 539 539 popupClass = AutoSizeAnchoredBubble; … … 542 542 543 543 544 //anchored bubble popup wide short fixed contents autosize overflow544 //anchored bubble popup wide short fixed contents autosize overflow 545 545 ll = new OpenLayers.LonLat(35,0); 546 546 popupClass = AutoSizeAnchoredBubble; … … 548 548 addMarker(ll, popupClass, popupContentHTML, false, true); 549 549 550 //anchored bubble popup wide short fixed contents autosize closebox overflow550 //anchored bubble popup wide short fixed contents autosize closebox overflow 551 551 ll = new OpenLayers.LonLat(40,0); 552 552 popupClass = AutoSizeAnchoredBubble; … … 555 555 556 556 557 //anchored bubble popup thin long fixed contents autosize overflow557 //anchored bubble popup thin long fixed contents autosize overflow 558 558 ll = new OpenLayers.LonLat(50,0); 559 559 popupClass = AutoSizeAnchoredBubble; … … 561 561 addMarker(ll, popupClass, popupContentHTML, false, true); 562 562 563 //anchored bubble popup thin long fixed contents autosize closebox overflow563 //anchored bubble popup thin long fixed contents autosize closebox overflow 564 564 ll = new OpenLayers.LonLat(55,0); 565 565 popupClass = AutoSizeAnchoredBubble; … … 568 568 569 569 570 //anchored bubble popup wide long fixed contents autosize overflow570 //anchored bubble popup wide long fixed contents autosize overflow 571 571 ll = new OpenLayers.LonLat(65,0); 572 572 popupClass = AutoSizeAnchoredBubble; … … 574 574 addMarker(ll, popupClass, popupContentHTML, false, true); 575 575 576 //anchored bubble popup wide long fixed contents autosize closebox overflow576 //anchored bubble popup wide long fixed contents autosize closebox overflow 577 577 ll = new OpenLayers.LonLat(70,0); 578 578 popupClass = AutoSizeAnchoredBubble; … … 580 580 addMarker(ll, popupClass, popupContentHTML, true, true); 581 581 582 //FRAMED582 //FRAMED 583 583 584 //585 //FRAMED NO OVERFLOW586 //587 588 //anchored bubble popup small contents no autosize584 // 585 //FRAMED NO OVERFLOW 586 // 587 588 //anchored bubble popup small contents no autosize 589 589 var ll = new OpenLayers.LonLat(-55,-15); 590 590 popupClass = OpenLayers.Popup.FramedCloud; … … 592 592 addMarker(ll, popupClass, popupContentHTML, false); 593 593 594 //anchored bubble popup small contents no autosize closebox594 //anchored bubble popup small contents no autosize closebox 595 595 var ll = new OpenLayers.LonLat(-50,-15); 596 596 popupClass = OpenLayers.Popup.FramedCloud; … … 599 599 600 600 601 //anchored bubble popup small contents autosize601 //anchored bubble popup small contents autosize 602 602 ll = new OpenLayers.LonLat(-40,-15); 603 603 popupClass = AutoSizeFramedCloud; … … 605 605 addMarker(ll, popupClass, popupContentHTML, false); 606 606 607 //anchored bubble popup small contents autosize closebox607 //anchored bubble popup small contents autosize closebox 608 608 ll = new OpenLayers.LonLat(-35,-15); 609 609 popupClass = AutoSizeFramedCloud; … … 612 612 613 613 614 //anchored bubble popup small contents autosize minsize614 //anchored bubble popup small contents autosize minsize 615 615 ll = new OpenLayers.LonLat(-25,-15); 616 616 popupClass = AutoSizeFramedCloudMinSize; … … 618 618 addMarker(ll, popupClass, popupContentHTML, false); 619 619 620 //anchored bubble popup small contents autosize minsize closebox620 //anchored bubble popup small contents autosize minsize closebox 621 621 ll = new OpenLayers.LonLat(-20,-15); 622 622 popupClass = AutoSizeFramedCloudMinSize; … … 625 625 626 626 627 //anchored bubble popup small contents autosize maxsize627 //anchored bubble popup small contents autosize maxsize 628 628 ll = new OpenLayers.LonLat(-10,-15); 629 629 popupClass = AutoSizeFramedCloudMaxSize; … … 631 631 addMarker(ll, popupClass, popupContentHTML, false); 632 632 633 //anchored bubble popup small contents autosize maxsize closebox633 //anchored bubble popup small contents autosize maxsize closebox 634 634 ll = new OpenLayers.LonLat(-5,-15); 635 635 popupClass = AutoSizeFramedCloudMaxSize; … … 638 638 639 639 640 //anchored bubble popup bigger contents autosize closebox640 //anchored bubble popup bigger contents autosize closebox 641 641 ll = new OpenLayers.LonLat(5,-15); 642 642 popupClass = AutoSizeFramedCloud; … … 644 644 addMarker(ll, popupClass, popupContentHTML, false); 645 645 646 //anchored bubble popup bigger contents autosize closebox646 //anchored bubble popup bigger contents autosize closebox 647 647 ll = new OpenLayers.LonLat(10,-15); 648 648 popupClass = AutoSizeFramedCloud; … … 651 651 652 652 653 //anchored bubble popup wide short text contents autosize653 //anchored bubble popup wide short text contents autosize 654 654 ll = new OpenLayers.LonLat(20,-15); 655 655 popupClass = AutoSizeFramedCloud; … … 657 657 addMarker(ll, popupClass, popupContentHTML); 658 658 659 //anchored bubble popup wide short text contents autosize closebox659 //anchored bubble popup wide short text contents autosize closebox 660 660 ll = new OpenLayers.LonLat(25,-15); 661 661 popupClass = AutoSizeFramedCloud; … … 664 664 665 665 666 //anchored bubble popup wide short fixed contents autosize666 //anchored bubble popup wide short fixed contents autosize 667 667 ll = new OpenLayers.LonLat(35,-15); 668 668 popupClass = AutoSizeFramedCloud; … … 670 670 addMarker(ll, popupClass, popupContentHTML); 671 671 672 //anchored bubble popup wide short fixed contents autosize closebox672 //anchored bubble popup wide short fixed contents autosize closebox 673 673 ll = new OpenLayers.LonLat(40,-15); 674 674 popupClass = AutoSizeFramedCloud; … … 677 677 678 678 679 //anchored bubble popup thin long fixed contents autosize679 //anchored bubble popup thin long fixed contents autosize 680 680 ll = new OpenLayers.LonLat(50,-15); 681 681 popupClass = AutoSizeFramedCloud; … … 683 683 addMarker(ll, popupClass, popupContentHTML); 684 684 685 //anchored bubble popup thin long fixed contents autosize closebox685 //anchored bubble popup thin long fixed contents autosize closebox 686 686 ll = new OpenLayers.LonLat(55,-15); 687 687 popupClass = AutoSizeFramedCloud; … … 690 690 691 691 692 //anchored bubble popup wide long fixed contents autosize692 //anchored bubble popup wide long fixed contents autosize 693 693 ll = new OpenLayers.LonLat(65,-15); 694 694 popupClass = AutoSizeFramedCloud; … … 696 696 addMarker(ll, popupClass, popupContentHTML); 697 697 698 //anchored bubble popup wide long fixed contents autosize closebox698 //anchored bubble popup wide long fixed contents autosize closebox 699 699 ll = new OpenLayers.LonLat(70,-15); 700 700 popupClass = AutoSizeFramedCloud; … … 702 702 addMarker(ll, popupClass, popupContentHTML, true); 703 703 704 //705 //FRAMED OVERFLOW706 //707 708 //anchored bubble popup small contents no autosize704 // 705 //FRAMED OVERFLOW 706 // 707 708 //anchored bubble popup small contents no autosize 709 709 var ll = new OpenLayers.LonLat(-55,-20); 710 710 popupClass = OpenLayers.Popup.FramedCloud; … … 712 712 addMarker(ll, popupClass, popupContentHTML, false, true); 713 713 714 //anchored bubble popup small contents no autosize closebox714 //anchored bubble popup small contents no autosize closebox 715 715 var ll = new OpenLayers.LonLat(-50,-20); 716 716 popupClass = OpenLayers.Popup.FramedCloud; … … 719 719 720 720 721 //anchored bubble popup small contents autosize721 //anchored bubble popup small contents autosize 722 722 ll = new OpenLayers.LonLat(-40,-20); 723 723 popupClass = AutoSizeFramedCloud; … … 725 725 addMarker(ll, popupClass, popupContentHTML, false, true); 726 726 727 //anchored bubble popup small contents autosize closebox727 //anchored bubble popup small contents autosize closebox 728 728 ll = new OpenLayers.LonLat(-35,-20); 729 729 popupClass = AutoSizeFramedCloud; … … 732 732 733 733 734 //anchored bubble popup small contents autosize minsize734 //anchored bubble popup small contents autosize minsize 735 735 ll = new OpenLayers.LonLat(-25,-20); 736 736 popupClass = AutoSizeFramedCloudMinSize; … … 738 738 addMarker(ll, popupClass, popupContentHTML, false, true); 739 739 740 //anchored bubble popup small contents autosize minsize closebox740 //anchored bubble popup small contents autosize minsize closebox 741 741 ll = new OpenLayers.LonLat(-20,-20); 742 742 popupClass = AutoSizeFramedCloudMinSize; … … 745 745 746 746 747 //anchored bubble popup small contents autosize maxsize747 //anchored bubble popup small contents autosize maxsize 748 748 ll = new OpenLayers.LonLat(-10,-20); 749 749 popupClass = AutoSizeFramedCloudMaxSize; … … 751 751 addMarker(ll, popupClass, popupContentHTML, false, true); 752 752 753 //anchored bubble popup small contents autosize maxsize closebox753 //anchored bubble popup small contents autosize maxsize closebox 754 754 ll = new OpenLayers.LonLat(-5,-20); 755 755 popupClass = AutoSizeFramedCloudMaxSize; … … 758 758 759 759 760 //anchored bubble popup bigger contents autosize closebox760 //anchored bubble popup bigger contents autosize closebox 761 761 ll = new OpenLayers.LonLat(5,-20); 762 762 popupClass = AutoSizeFramedCloud; … … 764 764 addMarker(ll, popupClass, popupContentHTML, false, true); 765 765 766 //anchored bubble popup bigger contents autosize closebox766 //anchored bubble popup bigger contents autosize closebox 767 767 ll = new OpenLayers.LonLat(10,-20); 768 768 popupClass = AutoSizeFramedCloud; … … 771 771 772 772 773 //anchored bubble popup wide short contents autosize overflow773 //anchored bubble popup wide short contents autosize overflow 774 774 ll = new OpenLayers.LonLat(20,-20); 775 775 popupClass = AutoSizeFramedCloud; … … 777 777 addMarker(ll, popupClass, popupContentHTML, false, true); 778 778 779 //anchored bubble popup wide short contents autosize closebox overflow779 //anchored bubble popup wide short contents autosize closebox overflow 780 780 ll = new OpenLayers.LonLat(25,-20); 781 781 popupClass = AutoSizeFramedCloud; … … 784 784 785 785 786 //anchored bubble popup wide short fixed contents autosize overflow786 //anchored bubble popup wide short fixed contents autosize overflow 787 787 ll = new OpenLayers.LonLat(35,-20); 788 788 popupClass = AutoSizeFramedCloud; … … 790 790 addMarker(ll, popupClass, popupContentHTML, false, true); 791 791 792 //anchored bubble popup wide short fixed contents autosize closebox overflow792 //anchored bubble popup wide short fixed contents autosize closebox overflow 793 793 ll = new OpenLayers.LonLat(40,-20); 794 794 popupClass = AutoSizeFramedCloud; … … 797 797 798 798 799 //anchored bubble popup thin long fixed contents autosize overflow799 //anchored bubble popup thin long fixed contents autosize overflow 800 800 ll = new OpenLayers.LonLat(50,-20); 801 801 popupClass = AutoSizeFramedCloud; … … 803 803 addMarker(ll, popupClass, popupContentHTML, false, true); 804 804 805 //anchored bubble popup thin long fixed contents autosize closebox overflow805 //anchored bubble popup thin long fixed contents autosize closebox overflow 806 806 ll = new OpenLayers.LonLat(55,-20); 807 807 popupClass = AutoSizeFramedCloud; … … 810 810 811 811 812 //anchored bubble popup wide long fixed contents autosize overflow812 //anchored bubble popup wide long fixed contents autosize overflow 813 813 ll = new OpenLayers.LonLat(65,-20); 814 814 popupClass = AutoSizeFramedCloud; … … 816 816 addMarker(ll, popupClass, popupContentHTML, false, true); 817 817 818 //anchored bubble popup wide long fixed contents autosize closebox overflow818 //anchored bubble popup wide long fixed contents autosize closebox overflow 819 819 ll = new OpenLayers.LonLat(70,-20); 820 820 popupClass = AutoSizeFramedCloud; sandbox/euzuro/pop/lib/OpenLayers/Popup.js
r6704 r6707 396 396 var contentSize = this.size.clone(); 397 397 398 // if our contentDiv has a css 'padding' set on it by a stylesheet, we399 // 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". 400 400 var contentDivPadding = this.getContentDivPadding(); 401 401 var wPadding = contentDivPadding.left + contentDivPadding.right; 402 402 var hPadding = contentDivPadding.top + contentDivPadding.bottom; 403 403 404 // take into account the popup's 'padding' property404 // take into account the popup's 'padding' property 405 405 this.fixPadding(); 406 406 wPadding += this.padding.left + this.padding.right; 407 407 hPadding += this.padding.top + this.padding.bottom; 408 408 409 //make extra space for the close div409 // make extra space for the close div 410 410 if (this.closeDiv) { 411 411 var closeDivWidth = parseInt(this.closeDiv.style.width); … … 585 585 var safeContentSize = size.clone(); 586 586 587 // if our contentDiv has a css 'padding' set on it by a stylesheet, we588 // 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". 589 589 var contentDivPadding = this.getContentDivPadding(); 590 590 var wPadding = contentDivPadding.left + contentDivPadding.right; 591 591 var hPadding = contentDivPadding.top + contentDivPadding.bottom; 592 592 593 // take into account the popup's 'padding' property593 // take into account the popup's 'padding' property 594 594 this.fixPadding(); 595 595 wPadding += this.padding.left + this.padding.right; … … 601 601 } 602 602 603 // prevent the popup from being smaller than a specified minimal size603 // prevent the popup from being smaller than a specified minimal size 604 604 if (this.minSize) { 605 605 safeContentSize.w = Math.max(safeContentSize.w, … … 609 609 } 610 610 611 // prevent the popup from being bigger than a specified maximum size611 // prevent the popup from being bigger than a specified maximum size 612 612 if (this.maxSize) { 613 613 safeContentSize.w = Math.min(safeContentSize.w, … … 617 617 } 618 618 619 //make sure the desired size to set doesn't result in a popup that620 // 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 // 622 622 if (this.map && this.map.size) { 623 623 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. 629 628 630 629 var maxY = this.map.size.h -
