umap-project 1.4.4__py3-none-any.whl → 1.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of umap-project might be problematic. Click here for more details.

Files changed (132) hide show
  1. umap/__init__.py +1 -1
  2. umap/locale/br/LC_MESSAGES/django.mo +0 -0
  3. umap/locale/br/LC_MESSAGES/django.po +8 -7
  4. umap/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
  5. umap/locale/cs_CZ/LC_MESSAGES/django.po +35 -35
  6. umap/locale/en/LC_MESSAGES/django.po +28 -28
  7. umap/migrations/0011_alter_map_edit_status_alter_map_share_status.py +24 -0
  8. umap/models.py +10 -2
  9. umap/settings/base.py +2 -0
  10. umap/static/umap/base.css +4 -4
  11. umap/static/umap/img/16-white.svg +18 -3
  12. umap/static/umap/img/logo_small.svg +14 -0
  13. umap/static/umap/img/source/16-white.svg +19 -5
  14. umap/static/umap/js/umap.controls.js +122 -132
  15. umap/static/umap/js/umap.core.js +12 -5
  16. umap/static/umap/js/umap.features.js +40 -14
  17. umap/static/umap/js/umap.forms.js +55 -5
  18. umap/static/umap/js/umap.js +59 -100
  19. umap/static/umap/js/umap.layer.js +69 -26
  20. umap/static/umap/js/umap.permissions.js +5 -0
  21. umap/static/umap/js/umap.popup.js +3 -6
  22. umap/static/umap/js/umap.xhr.js +2 -1
  23. umap/static/umap/locale/am_ET.js +14 -7
  24. umap/static/umap/locale/am_ET.json +14 -7
  25. umap/static/umap/locale/ar.js +14 -7
  26. umap/static/umap/locale/ar.json +14 -7
  27. umap/static/umap/locale/ast.js +14 -7
  28. umap/static/umap/locale/ast.json +14 -7
  29. umap/static/umap/locale/bg.js +14 -7
  30. umap/static/umap/locale/bg.json +14 -7
  31. umap/static/umap/locale/br.js +29 -22
  32. umap/static/umap/locale/br.json +29 -22
  33. umap/static/umap/locale/ca.js +14 -7
  34. umap/static/umap/locale/ca.json +14 -7
  35. umap/static/umap/locale/cs_CZ.js +42 -35
  36. umap/static/umap/locale/cs_CZ.json +42 -35
  37. umap/static/umap/locale/da.js +14 -7
  38. umap/static/umap/locale/da.json +14 -7
  39. umap/static/umap/locale/de.js +14 -7
  40. umap/static/umap/locale/de.json +14 -7
  41. umap/static/umap/locale/el.js +14 -7
  42. umap/static/umap/locale/el.json +14 -7
  43. umap/static/umap/locale/en.js +14 -7
  44. umap/static/umap/locale/en.json +14 -7
  45. umap/static/umap/locale/en_US.json +14 -7
  46. umap/static/umap/locale/es.js +14 -7
  47. umap/static/umap/locale/es.json +14 -7
  48. umap/static/umap/locale/et.js +14 -7
  49. umap/static/umap/locale/et.json +14 -7
  50. umap/static/umap/locale/eu.js +7 -7
  51. umap/static/umap/locale/eu.json +7 -7
  52. umap/static/umap/locale/fa_IR.js +14 -7
  53. umap/static/umap/locale/fa_IR.json +14 -7
  54. umap/static/umap/locale/fi.js +14 -7
  55. umap/static/umap/locale/fi.json +14 -7
  56. umap/static/umap/locale/fr.js +14 -7
  57. umap/static/umap/locale/fr.json +14 -7
  58. umap/static/umap/locale/gl.js +14 -7
  59. umap/static/umap/locale/gl.json +14 -7
  60. umap/static/umap/locale/he.js +14 -7
  61. umap/static/umap/locale/he.json +14 -7
  62. umap/static/umap/locale/hr.js +14 -7
  63. umap/static/umap/locale/hr.json +14 -7
  64. umap/static/umap/locale/hu.js +14 -7
  65. umap/static/umap/locale/hu.json +14 -7
  66. umap/static/umap/locale/id.js +14 -7
  67. umap/static/umap/locale/id.json +14 -7
  68. umap/static/umap/locale/is.js +14 -7
  69. umap/static/umap/locale/is.json +14 -7
  70. umap/static/umap/locale/it.js +14 -7
  71. umap/static/umap/locale/it.json +14 -7
  72. umap/static/umap/locale/ja.js +14 -7
  73. umap/static/umap/locale/ja.json +14 -7
  74. umap/static/umap/locale/ko.js +14 -7
  75. umap/static/umap/locale/ko.json +14 -7
  76. umap/static/umap/locale/lt.js +14 -7
  77. umap/static/umap/locale/lt.json +14 -7
  78. umap/static/umap/locale/ms.js +14 -7
  79. umap/static/umap/locale/ms.json +14 -7
  80. umap/static/umap/locale/nl.js +14 -7
  81. umap/static/umap/locale/nl.json +14 -7
  82. umap/static/umap/locale/no.js +14 -7
  83. umap/static/umap/locale/no.json +14 -7
  84. umap/static/umap/locale/pl.js +14 -7
  85. umap/static/umap/locale/pl.json +14 -7
  86. umap/static/umap/locale/pl_PL.json +14 -7
  87. umap/static/umap/locale/pt.js +14 -7
  88. umap/static/umap/locale/pt.json +14 -7
  89. umap/static/umap/locale/pt_BR.js +14 -7
  90. umap/static/umap/locale/pt_BR.json +14 -7
  91. umap/static/umap/locale/pt_PT.js +14 -7
  92. umap/static/umap/locale/pt_PT.json +14 -7
  93. umap/static/umap/locale/ro.js +14 -7
  94. umap/static/umap/locale/ro.json +14 -7
  95. umap/static/umap/locale/ru.js +14 -7
  96. umap/static/umap/locale/ru.json +14 -7
  97. umap/static/umap/locale/sk_SK.js +14 -7
  98. umap/static/umap/locale/sk_SK.json +14 -7
  99. umap/static/umap/locale/sl.js +14 -7
  100. umap/static/umap/locale/sl.json +14 -7
  101. umap/static/umap/locale/sr.js +14 -7
  102. umap/static/umap/locale/sr.json +14 -7
  103. umap/static/umap/locale/sv.js +38 -31
  104. umap/static/umap/locale/sv.json +38 -31
  105. umap/static/umap/locale/th_TH.js +14 -7
  106. umap/static/umap/locale/th_TH.json +14 -7
  107. umap/static/umap/locale/tr.js +14 -7
  108. umap/static/umap/locale/tr.json +14 -7
  109. umap/static/umap/locale/uk_UA.js +14 -7
  110. umap/static/umap/locale/uk_UA.json +14 -7
  111. umap/static/umap/locale/vi.js +14 -7
  112. umap/static/umap/locale/vi.json +14 -7
  113. umap/static/umap/locale/vi_VN.json +14 -7
  114. umap/static/umap/locale/zh.js +14 -7
  115. umap/static/umap/locale/zh.json +14 -7
  116. umap/static/umap/locale/zh_CN.json +14 -7
  117. umap/static/umap/locale/zh_TW.Big5.json +14 -7
  118. umap/static/umap/locale/zh_TW.js +14 -7
  119. umap/static/umap/locale/zh_TW.json +14 -7
  120. umap/static/umap/map.css +119 -47
  121. umap/static/umap/test/DataLayer.js +32 -6
  122. umap/static/umap/test/Util.js +7 -7
  123. umap/static/umap/vendors/leaflet/leaflet-src.js +7156 -7156
  124. umap/static/umap/vendors/togeojson/togeojson.js +2 -406
  125. umap/tests/test_map.py +16 -0
  126. umap/tests/test_views.py +18 -0
  127. umap/views.py +3 -1
  128. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/METADATA +3 -3
  129. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/RECORD +132 -130
  130. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/WHEEL +0 -0
  131. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/entry_points.txt +0 -0
  132. {umap_project-1.4.4.dist-info → umap_project-1.5.0.dist-info}/licenses/LICENSE +0 -0
umap/static/umap/map.css CHANGED
@@ -116,9 +116,26 @@ a.umap-control-less {
116
116
  height: 23px;
117
117
  line-height: 23px;
118
118
  }
119
+ .leaflet-control-edit-enable a:before {
120
+ content: ' ';
121
+ width: 24px;
122
+ height: 24px;
123
+ display: inline-block;
124
+ vertical-align: middle;
125
+ background-image: url('./img/16-white.svg');
126
+ background-position: -52px -49px;
127
+ }
128
+
119
129
  .leaflet-control-edit-enable a {
120
- background-position: 0 0;
130
+ width: initial;
131
+ padding: 0 20px;
121
132
  background-color: #353c3e;
133
+ color: #fff;
134
+ background-image: none;
135
+ border-radius: 20px;
136
+ height: 36px;
137
+ line-height: 36px;
138
+ display: block;
122
139
  }
123
140
  .leaflet-control-toolbar .leaflet-toolbar-icon.dark:hover,
124
141
  .leaflet-control-edit-enable a:hover {
@@ -203,7 +220,6 @@ ul.photon-autocomplete {
203
220
  background-image: url('./img/24.svg');
204
221
  background-size: auto auto;
205
222
  }
206
- .leaflet-control-edit-enable a,
207
223
  .leaflet-control-toolbar li .leaflet-toolbar-icon.dark {
208
224
  background-image: url('./img/24-white.svg');
209
225
  }
@@ -221,6 +237,31 @@ ul.photon-autocomplete {
221
237
  .manage-datalayers {
222
238
  background-position: -36px -72px;
223
239
  }
240
+ .umap-edit-container h3:before,
241
+ .umap-feature-properties:before,
242
+ .umap-layer-properties-container h3:before {
243
+ height: 24px;
244
+ width: 24px;
245
+ background-repeat: no-repeat;
246
+ background-image: url('./img/16-white.svg');
247
+ background-size: auto auto;
248
+ background-position: -98px -117px;
249
+ content: " ";
250
+ vertical-align: bottom;
251
+ display: inline-block;
252
+ }
253
+ .umap-edit-container h3:before {
254
+ background-position: -27px -93px;
255
+ }
256
+ .umap-feature-properties.marker:before {
257
+ background-position: -72px -117px;
258
+ }
259
+ .umap-feature-properties.polyline:before {
260
+ background-position: 0 -117px;
261
+ }
262
+ .umap-feature-properties.polygon:before {
263
+ background-position: -24px -117px;
264
+ }
224
265
  .umap-toolbar .update-map-permissions,
225
266
  .update-map-permissions {
226
267
  background-position: -36px -36px;
@@ -382,8 +423,20 @@ ul.photon-autocomplete {
382
423
  padding: 0 10px;
383
424
  min-width: 100px;
384
425
  }
385
- .leaflet-container a.leaflet-control-edit-cancel {
386
- background-color: #C60F13;
426
+ .leaflet-container a.leaflet-control-edit-save:before,
427
+ .leaflet-container a.leaflet-control-edit-cancel:before {
428
+ display: inline-block;
429
+ width: 24px;
430
+ height: 24px;
431
+ margin-left: 5px;
432
+ background-position: -50px -122px;
433
+ background-repeat: no-repeat;
434
+ background-image: url('./img/16-white.svg');
435
+ vertical-align: middle;
436
+ content: ' ';
437
+ }
438
+ .leaflet-container a.leaflet-control-edit-save:before {
439
+ background-position: -4px -25px;
387
440
  }
388
441
  .leaflet-container a.leaflet-control-edit-save {
389
442
  opacity: 0.5;
@@ -408,26 +461,6 @@ ul.photon-autocomplete {
408
461
  .umap-is-dirty a.leaflet-control-edit-disable {
409
462
  display: none;
410
463
  }
411
- .umap-click-to-edit {
412
- color: #4a90d9;
413
- font-weight: bold;
414
- }
415
- .umap-click-to-edit:after {
416
- content: "\00a0";
417
- background-repeat: no-repeat;
418
- background-position: center center;
419
- cursor: pointer;
420
- width: 26px;
421
- height: 100%;
422
- display: inline-block;
423
- background-position: -46px -41px;
424
- }
425
- .umap-click-to-edit:hover:after {
426
- background-image: url('./img/16.svg');
427
- }
428
- .dark .umap-click-to-edit:hover:after {
429
- background-image: url('./img/16-white.svg');
430
- }
431
464
  .umap-caption-bar {
432
465
  display: none;
433
466
  }
@@ -439,14 +472,43 @@ ul.photon-autocomplete {
439
472
  right: 0;
440
473
  height: 46px;
441
474
  background-color: #323737;
442
- padding: 5px;
475
+ padding: 5px 10px;
443
476
  text-align: left;
444
477
  line-height: 36px;
445
478
  cursor: auto;
446
479
  border-bottom: 1px solid #222;
447
480
  z-index: 1000;
448
481
  opacity: 0.98;
449
- color: #efefef;
482
+ color: #fff;
483
+ }
484
+ .umap-main-edit-toolbox .logo {
485
+ background-image: url('./img/logo_small.svg');
486
+ background-position: 0 center;
487
+ background-repeat: no-repeat;
488
+ width: 60px;
489
+ display: inline-block;
490
+ height: 100%;
491
+ vertical-align: middle;
492
+ }
493
+ .umap-main-edit-toolbox a {
494
+ color: #fff;
495
+ font-size: 1.2em;
496
+ vertical-align: middle;
497
+ }
498
+ .umap-main-edit-toolbox a:hover {
499
+ text-decoration: underline;
500
+ }
501
+ .umap-main-edit-toolbox .map-name {
502
+ display: inline-block;
503
+ max-width: 200px;
504
+ overflow: hidden;
505
+ white-space: nowrap;
506
+ text-overflow: ellipsis;
507
+ margin-right: 5px;
508
+ font-weight: bold;
509
+ }
510
+ .umap-main-edit-toolbox .share-status {
511
+ margin: 0 20px;
450
512
  }
451
513
  .umap-edit-enabled .umap-main-edit-toolbox {
452
514
  top: 0;
@@ -458,15 +520,8 @@ ul.photon-autocomplete {
458
520
  .umap-main-edit-toolbox h3 {
459
521
  display: inline;
460
522
  }
461
- .umap-main-edit-toolbox .umap-user:before {
462
- content: '|';
463
- color: #fff;
464
- padding-right: 10px;
465
- background-image: url('./img/16-white.svg');
466
- background-repeat: no-repeat;
467
- display: inline-block;
468
- background-position: -40px -115px;
469
- width: 20px;
523
+ .umap-main-edit-toolbox .umap-user {
524
+ margin-right: 20px;
470
525
  }
471
526
  .umap-edit-enabled .leaflet-top {
472
527
  top: 48px;
@@ -775,17 +830,16 @@ a.add-datalayer:hover,
775
830
  /* Features browser panel */
776
831
  /* ********************************* */
777
832
 
833
+ .umap-facet-search .formbox,
778
834
  .umap-browse-features > div {
779
835
  border: 1px solid #d3d3d3;
780
836
  margin-bottom: 14px;
781
837
  border-radius: 2px;
782
838
  }
783
- .umap-browse-features h5, .umap-filter-data h5 {
839
+ .umap-browse-features h5, .umap-facet-search h5 {
784
840
  margin-bottom: 0;
785
841
  overflow: hidden;
786
842
  padding-left: 5px;
787
- }
788
- .umap-browse-features h5 {
789
843
  height: 30px;
790
844
  line-height: 30px;
791
845
  background-color: #eeeee0;
@@ -794,14 +848,13 @@ a.add-datalayer:hover,
794
848
  .umap-browse-features h5 span {
795
849
  margin-left: 10px;
796
850
  }
797
- .umap-browse-features li {
851
+ .umap-browse-features li, .umap-facet-search li {
798
852
  padding: 2px 0;
799
- }
800
- .umap-browse-features li, .umap-filter-data li {
801
853
  white-space: nowrap;
802
854
  overflow: hidden;
803
855
  text-overflow: ellipsis;
804
856
  }
857
+ .umap-facet-search li:nth-child(even),
805
858
  .umap-browse-features li:nth-child(even) {
806
859
  background-color: #f8f8f3;
807
860
  }
@@ -830,9 +883,6 @@ a.add-datalayer:hover,
830
883
  .umap-browse-features .polygon .feature-color {
831
884
  background-position: -32px -16px;
832
885
  }
833
- .umap-filter-data .property-container:not(:first-child) {
834
- margin-top: 14px;
835
- }
836
886
  .show-on-edit {
837
887
  display: none!important;
838
888
  }
@@ -1390,10 +1440,10 @@ a.add-datalayer:hover,
1390
1440
  .leaflet-contextmenu-icon {
1391
1441
  display: none;
1392
1442
  }
1393
- .umap-popup-large iframe,
1394
- .umap-popup-large img {
1443
+ .umap-popup-large iframe {
1395
1444
  /* See https://github.com/Leaflet/Leaflet/commit/61d746818b99d362108545c151a27f09d60960ee#commitcomment-6061847 */
1396
- max-width: 500px !important;
1445
+ max-width: 100% !important;
1446
+ min-width: 500px;
1397
1447
  }
1398
1448
  .umap-popup-content img {
1399
1449
  max-width: 100%;
@@ -1417,8 +1467,27 @@ a.add-datalayer:hover,
1417
1467
  /* Mobile */
1418
1468
  /* ****** */
1419
1469
 
1470
+ @media all and (max-width: 980px) {
1471
+
1472
+ .leaflet-container a.leaflet-control-edit-save,
1473
+ .leaflet-container a.leaflet-control-edit-cancel {
1474
+ text-indent: calc(100% - 20px);
1475
+ width: 35px;
1476
+ min-width: initial;
1477
+ }
1478
+
1479
+ .umap-main-edit-toolbox .umap-help-button,
1480
+ .umap-main-edit-toolbox .share-status {
1481
+ display: none;
1482
+ }
1483
+
1484
+ }
1420
1485
  @media all and (max-width: 480px) {
1421
1486
 
1487
+ .umap-main-edit-toolbox .map-name {
1488
+ max-width: 100px;
1489
+ }
1490
+
1422
1491
  .leaflet-control-layers-expanded label {
1423
1492
  display: inline-block;
1424
1493
  margin-right: 10px;
@@ -1431,6 +1500,9 @@ a.add-datalayer:hover,
1431
1500
  .umap-permanent-credits-container {
1432
1501
  max-width: 100%;
1433
1502
  }
1503
+ .umap-popup-large iframe {
1504
+ min-width: 300px;
1505
+ }
1434
1506
  }
1435
1507
 
1436
1508
  /* ****** */
@@ -403,22 +403,22 @@ describe('L.U.DataLayer', function () {
403
403
  assert.ok(qs('path[fill="DarkGoldenRod"]'))
404
404
  })
405
405
  })
406
- describe('#advanced-filters()', function () {
406
+ describe('#facet-search()', function () {
407
407
  before(function () {
408
408
  this.server.respondWith(
409
409
  /\/datalayer\/63\/\?.*/,
410
410
  JSON.stringify(RESPONSES.datalayer63_GET)
411
411
  )
412
- this.map.options.advancedFilterKey = 'name'
412
+ this.map.options.facetKey = 'name'
413
413
  this.map.createDataLayer(RESPONSES.datalayer63_GET._umap_options)
414
414
  this.server.respond()
415
415
  })
416
- it('should show non browsable layer', function () {
416
+ it('should not impact non browsable layer', function () {
417
417
  assert.ok(qs('path[fill="SteelBlue"]'))
418
418
  })
419
419
  it('should allow advanced filter', function () {
420
- this.map.openFilter()
421
- assert.ok(qs('div.umap-filter-properties'))
420
+ this.map.openFacet()
421
+ assert.ok(qs('div.umap-facet-search'))
422
422
  // This one if from the normal datalayer
423
423
  // it's name is "test", so it should be hidden
424
424
  // by the filter
@@ -428,8 +428,34 @@ describe('L.U.DataLayer', function () {
428
428
  // This one comes from a non browsable layer
429
429
  // so it should not be affected by the filter
430
430
  assert.ok(qs('path[fill="SteelBlue"]'))
431
- happen.click(qs('input[data-value="name poly"]')) // Undo
431
+ happen.click(qs('input[data-value="name poly"]')) // Undo
432
+ })
433
+ it('should allow to control facet label', function () {
434
+ this.map.options.facetKey = 'name|Nom'
435
+ this.map.openFacet()
436
+ assert.ok(qs('div.umap-facet-search h5'))
437
+ assert.equal(qs('div.umap-facet-search h5').textContent, 'Nom')
432
438
  })
433
439
  })
440
+ describe('#zoomEnd', function () {
441
+ it('should honour the fromZoom option', function () {
442
+ this.map.setZoom(6, {animate: false})
443
+ assert.ok(qs('path[fill="none"]'))
444
+ this.datalayer.options.fromZoom = 6
445
+ this.map.setZoom(5, {animate: false})
446
+ assert.notOk(qs('path[fill="none"]'))
447
+ this.map.setZoom(6, {animate: false})
448
+ assert.ok(qs('path[fill="none"]'))
449
+ })
434
450
 
451
+ it('should honour the toZoom option', function () {
452
+ this.map.setZoom(6, {animate: false})
453
+ assert.ok(qs('path[fill="none"]'))
454
+ this.datalayer.options.toZoom = 6
455
+ this.map.setZoom(7, {animate: false})
456
+ assert.notOk(qs('path[fill="none"]'))
457
+ this.map.setZoom(6, {animate: false})
458
+ assert.ok(qs('path[fill="none"]'))
459
+ })
460
+ })
435
461
  })
@@ -108,35 +108,35 @@ describe('L.Util', function () {
108
108
  it('should handle image with width', function () {
109
109
  assert.equal(
110
110
  L.Util.toHTML('A simple image: {{http://osm.org/pouet.png|100}}'),
111
- 'A simple image: <img src="http://osm.org/pouet.png" width="100">'
111
+ 'A simple image: <img width="100" src="http://osm.org/pouet.png">'
112
112
  )
113
113
  })
114
114
 
115
115
  it('should handle iframe', function () {
116
116
  assert.equal(
117
117
  L.Util.toHTML('A simple iframe: {{{http://osm.org/pouet.html}}}'),
118
- 'A simple iframe: <div><iframe src="http://osm.org/pouet.html" width="100%" height="300px" frameborder="0"></iframe></div>'
118
+ 'A simple iframe: <div><iframe height="300px" width="100%" src="http://osm.org/pouet.html" frameborder="0"></iframe></div>'
119
119
  )
120
120
  })
121
121
 
122
122
  it('should handle iframe with height', function () {
123
123
  assert.equal(
124
124
  L.Util.toHTML('A simple iframe: {{{http://osm.org/pouet.html|200}}}'),
125
- 'A simple iframe: <div><iframe src="http://osm.org/pouet.html" width="100%" height="200px" frameborder="0"></iframe></div>'
125
+ 'A simple iframe: <div><iframe height="200px" width="100%" src="http://osm.org/pouet.html" frameborder="0"></iframe></div>'
126
126
  )
127
127
  })
128
128
 
129
129
  it('should handle iframe with height and width', function () {
130
130
  assert.equal(
131
131
  L.Util.toHTML('A simple iframe: {{{http://osm.org/pouet.html|200*400}}}'),
132
- 'A simple iframe: <div><iframe src="http://osm.org/pouet.html" width="400px" height="200px" frameborder="0"></iframe></div>'
132
+ 'A simple iframe: <div><iframe height="200px" width="400px" src="http://osm.org/pouet.html" frameborder="0"></iframe></div>'
133
133
  )
134
134
  })
135
135
 
136
136
  it('should handle iframe with height with px', function () {
137
137
  assert.equal(
138
138
  L.Util.toHTML('A simple iframe: {{{http://osm.org/pouet.html|200px}}}'),
139
- 'A simple iframe: <div><iframe src="http://osm.org/pouet.html" width="100%" height="200px" frameborder="0"></iframe></div>'
139
+ 'A simple iframe: <div><iframe height="200px" width="100%" src="http://osm.org/pouet.html" frameborder="0"></iframe></div>'
140
140
  )
141
141
  })
142
142
 
@@ -145,7 +145,7 @@ describe('L.Util', function () {
145
145
  L.Util.toHTML(
146
146
  'A simple iframe: {{{https://osm.org/?url=https%3A//anotherurl.com}}}'
147
147
  ),
148
- 'A simple iframe: <div><iframe src="https://osm.org/?url=https%3A//anotherurl.com" width="100%" height="300px" frameborder="0"></iframe></div>'
148
+ 'A simple iframe: <div><iframe height="300px" width="100%" src="https://osm.org/?url=https%3A//anotherurl.com" frameborder="0"></iframe></div>'
149
149
  )
150
150
  })
151
151
 
@@ -154,7 +154,7 @@ describe('L.Util', function () {
154
154
  L.Util.toHTML(
155
155
  'A double iframe: {{{https://osm.org/pouet}}}{{{https://osm.org/boudin}}}'
156
156
  ),
157
- 'A double iframe: <div><iframe src="https://osm.org/pouet" width="100%" height="300px" frameborder="0"></iframe></div><div><iframe src="https://osm.org/boudin" width="100%" height="300px" frameborder="0"></iframe></div>'
157
+ 'A double iframe: <div><iframe height="300px" width="100%" src="https://osm.org/pouet" frameborder="0"></iframe></div><div><iframe height="300px" width="100%" src="https://osm.org/boudin" frameborder="0"></iframe></div>'
158
158
  )
159
159
  })
160
160