| @@ 465-479 (lines=15) @@ | ||
| 462 | } |
|
| 463 | ||
| 464 | let resizeTimer; |
|
| 465 | jQuery(window).on('resize', function (e) { |
|
| 466 | clearTimeout(resizeTimer); |
|
| 467 | resizeTimer = setTimeout(function () { |
|
| 468 | for (_i = 0; _i < olMapData.length; _i++) { |
|
| 469 | var _id = olMapData[_i].mapOpts.id; |
|
| 470 | var _w = jQuery('#' + _id + '-olContainer').parent().innerWidth(); |
|
| 471 | if (parseInt(olMapData[_i].mapOpts.width) > _w) { |
|
| 472 | jQuery('#' + _id).width(_w); |
|
| 473 | jQuery('#' + _id + '-olStatusBar').width(_w); |
|
| 474 | jQuery('#' + _id).parent().parent().find('.olMapHelp').width(_w); |
|
| 475 | olMaps[_id].updateSize(); |
|
| 476 | } |
|
| 477 | } |
|
| 478 | }, 250); |
|
| 479 | }); |
|
| 480 | ||
| 481 | // hide the table(s) with POI by giving it a print-only style |
|
| 482 | jQuery('.olPOItableSpan').addClass('olPrintOnly'); |
|
| @@ 446-460 (lines=15) @@ | ||
| 443 | } |
|
| 444 | ||
| 445 | var resizeTimer; |
|
| 446 | jQuery(window).on('resize', function (e) { |
|
| 447 | clearTimeout(resizeTimer); |
|
| 448 | resizeTimer = setTimeout(function () { |
|
| 449 | for (_i = 0; _i < olMapData.length; _i++) { |
|
| 450 | var _id = olMapData[_i].mapOpts.id; |
|
| 451 | var _w = jQuery('#' + _id + '-olContainer').parent().innerWidth(); |
|
| 452 | if (parseInt(olMapData[_i].mapOpts.width) > _w) { |
|
| 453 | jQuery('#' + _id).width(_w); |
|
| 454 | jQuery('#' + _id + '-olStatusBar').width(_w); |
|
| 455 | jQuery('#' + _id).parent().parent().find('.olMapHelp').width(_w); |
|
| 456 | olMaps[_id].updateSize(); |
|
| 457 | } |
|
| 458 | } |
|
| 459 | }, 250); |
|
| 460 | }); |
|
| 461 | ||
| 462 | // hide the table(s) with POI by giving it a print-only style |
|
| 463 | jQuery('.olPOItableSpan').addClass('olPrintOnly'); |
|