Commit 4e68715
authored
* #11779: FIX Setting the map projection crashes MapStore if resolutions configured in new.json file with a different projection
Description:
- prevent OOM by enforcing projection-aware resolutions in new.json file in mapOptions.view
- Add strict check: only use configured resolutions if `view.projection` matches target SRS
- Eliminates infinite tile loading and out-of-memory crashes when switching to different CRS
- fix print file by passing the projection prop with resolutions to gurantee the above check
- add unit test
* #11779: FIX Setting the map projection crashes MapStore if resolutions configured in new.json file with a different projection
Description:
- edit unit test uses resolutions without projection
* - resolve review comments by editing the order of viewOptions in openlayers/Map.js
1 parent f5bc240 commit 4e68715
3 files changed
Lines changed: 91 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | | - | |
360 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
361 | 380 | | |
362 | | - | |
363 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
364 | 384 | | |
365 | 385 | | |
366 | 386 | | |
| |||
513 | 533 | | |
514 | 534 | | |
515 | 535 | | |
| 536 | + | |
516 | 537 | | |
517 | 538 | | |
518 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
519 | 558 | | |
520 | 559 | | |
521 | 560 | | |
522 | 561 | | |
523 | 562 | | |
524 | | - | |
| 563 | + | |
525 | 564 | | |
526 | 565 | | |
527 | 566 | | |
| |||
530 | 569 | | |
531 | 570 | | |
532 | 571 | | |
533 | | - | |
534 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
535 | 576 | | |
536 | 577 | | |
537 | 578 | | |
| |||
Lines changed: 39 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
1407 | | - | |
| 1407 | + | |
1408 | 1408 | | |
1409 | 1409 | | |
1410 | 1410 | | |
| |||
1460 | 1460 | | |
1461 | 1461 | | |
1462 | 1462 | | |
1463 | | - | |
| 1463 | + | |
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1526 | 1563 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
0 commit comments