node-red-contrib-web-worldmap 2.40.1 → 2.41.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
+
- v2.41.0 - Bump leaflet libs to latest stable (1.9.4)
|
|
3
4
|
- v2.40.1 - Fix missing countries overlay when starting disconnected.
|
|
4
5
|
- v2.40.0 - Add handling for TAK event points from TAK ingest node.
|
|
5
6
|
- v2.39.0 - Add client timezone to connect message. PR #245
|
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ Feel free to [
|
|
16
17
|
- v2.40.1 - Fix missing countries overlay when starting disconnected.
|
|
17
18
|
- v2.40.0 - Add handling for TAK event points from TAK ingest node.
|
|
18
19
|
- v2.39.0 - Add client timezone to connect message. PR #245
|
|
@@ -511,7 +512,7 @@ To remove set the legend to an empty string `""`.
|
|
|
511
512
|
|
|
512
513
|
The layer will be called `name`. By default it expects a leaflet Tilelayer style url. You can also use a WMS
|
|
513
514
|
style server by adding a property `wms: true`. You can also set `wms: "grey"` to set the layer to greyscale which
|
|
514
|
-
may let
|
|
515
|
+
may let your markers be more visible. (see overlay example below).
|
|
515
516
|
|
|
516
517
|
msg.payload.command.map = {
|
|
517
518
|
"name":"OSMhot", // use "overlay":"MyOverlayName" for an overlay rather than a base layer.
|
package/package.json
CHANGED
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
}
|
|
46
46
|
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
|
47
47
|
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
|
48
|
-
.leaflet-container .leaflet-overlay-pane svg
|
|
48
|
+
.leaflet-container .leaflet-overlay-pane svg {
|
|
49
|
+
max-width: none !important;
|
|
50
|
+
max-height: none !important;
|
|
51
|
+
}
|
|
49
52
|
.leaflet-container .leaflet-marker-pane img,
|
|
50
53
|
.leaflet-container .leaflet-shadow-pane img,
|
|
51
54
|
.leaflet-container .leaflet-tile-pane img,
|
|
@@ -53,8 +56,15 @@
|
|
|
53
56
|
.leaflet-container .leaflet-tile {
|
|
54
57
|
max-width: none !important;
|
|
55
58
|
max-height: none !important;
|
|
59
|
+
width: auto;
|
|
60
|
+
padding: 0;
|
|
56
61
|
}
|
|
57
62
|
|
|
63
|
+
.leaflet-container img.leaflet-tile {
|
|
64
|
+
/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
|
|
65
|
+
mix-blend-mode: plus-lighter;
|
|
66
|
+
}
|
|
67
|
+
|
|
58
68
|
.leaflet-container.leaflet-touch-zoom {
|
|
59
69
|
-ms-touch-action: pan-x pan-y;
|
|
60
70
|
touch-action: pan-x pan-y;
|
|
@@ -166,9 +176,6 @@
|
|
|
166
176
|
|
|
167
177
|
/* zoom and fade animations */
|
|
168
178
|
|
|
169
|
-
.leaflet-fade-anim .leaflet-tile {
|
|
170
|
-
/* will-change: opacity; */
|
|
171
|
-
}
|
|
172
179
|
.leaflet-fade-anim .leaflet-popup {
|
|
173
180
|
opacity: 0;
|
|
174
181
|
-webkit-transition: opacity 0.2s linear;
|
|
@@ -183,9 +190,10 @@
|
|
|
183
190
|
-ms-transform-origin: 0 0;
|
|
184
191
|
transform-origin: 0 0;
|
|
185
192
|
}
|
|
186
|
-
.leaflet-zoom-
|
|
187
|
-
|
|
188
|
-
|
|
193
|
+
svg.leaflet-zoom-animated {
|
|
194
|
+
will-change: transform;
|
|
195
|
+
}
|
|
196
|
+
|
|
189
197
|
.leaflet-zoom-anim .leaflet-zoom-animated {
|
|
190
198
|
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
|
191
199
|
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
|
@@ -251,14 +259,11 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
251
259
|
|
|
252
260
|
.leaflet-container {
|
|
253
261
|
background: #ddd;
|
|
254
|
-
outline:
|
|
262
|
+
outline-offset: 1px;
|
|
255
263
|
}
|
|
256
264
|
.leaflet-container a {
|
|
257
265
|
color: #0078A8;
|
|
258
266
|
}
|
|
259
|
-
.leaflet-container a.leaflet-active {
|
|
260
|
-
outline: 2px solid orange;
|
|
261
|
-
}
|
|
262
267
|
.leaflet-zoom-box {
|
|
263
268
|
border: 2px dotted #38f;
|
|
264
269
|
background: rgba(255,255,255,0.5);
|
|
@@ -267,7 +272,10 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
267
272
|
|
|
268
273
|
/* general typography */
|
|
269
274
|
.leaflet-container {
|
|
270
|
-
font:
|
|
275
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
276
|
+
font-size: 12px;
|
|
277
|
+
font-size: 0.75rem;
|
|
278
|
+
line-height: 1.5;
|
|
271
279
|
}
|
|
272
280
|
|
|
273
281
|
|
|
@@ -277,8 +285,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
277
285
|
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
|
278
286
|
border-radius: 4px;
|
|
279
287
|
}
|
|
280
|
-
.leaflet-bar a
|
|
281
|
-
.leaflet-bar a:hover {
|
|
288
|
+
.leaflet-bar a {
|
|
282
289
|
background-color: #fff;
|
|
283
290
|
border-bottom: 1px solid #ccc;
|
|
284
291
|
width: 26px;
|
|
@@ -295,7 +302,8 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
295
302
|
background-repeat: no-repeat;
|
|
296
303
|
display: block;
|
|
297
304
|
}
|
|
298
|
-
.leaflet-bar a:hover
|
|
305
|
+
.leaflet-bar a:hover,
|
|
306
|
+
.leaflet-bar a:focus {
|
|
299
307
|
background-color: #f4f4f4;
|
|
300
308
|
}
|
|
301
309
|
.leaflet-bar a:first-child {
|
|
@@ -385,6 +393,8 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
385
393
|
}
|
|
386
394
|
.leaflet-control-layers label {
|
|
387
395
|
display: block;
|
|
396
|
+
font-size: 13px;
|
|
397
|
+
font-size: 1.08333em;
|
|
388
398
|
}
|
|
389
399
|
.leaflet-control-layers-separator {
|
|
390
400
|
height: 0;
|
|
@@ -393,7 +403,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
393
403
|
}
|
|
394
404
|
|
|
395
405
|
/* Default icon URLs */
|
|
396
|
-
.leaflet-default-icon-path {
|
|
406
|
+
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
|
|
397
407
|
background-image: url(images/marker-icon.png);
|
|
398
408
|
}
|
|
399
409
|
|
|
@@ -402,23 +412,27 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
402
412
|
|
|
403
413
|
.leaflet-container .leaflet-control-attribution {
|
|
404
414
|
background: #fff;
|
|
405
|
-
background: rgba(255, 255, 255, 0.
|
|
415
|
+
background: rgba(255, 255, 255, 0.8);
|
|
406
416
|
margin: 0;
|
|
407
417
|
}
|
|
408
418
|
.leaflet-control-attribution,
|
|
409
419
|
.leaflet-control-scale-line {
|
|
410
420
|
padding: 0 5px;
|
|
411
421
|
color: #333;
|
|
422
|
+
line-height: 1.4;
|
|
412
423
|
}
|
|
413
424
|
.leaflet-control-attribution a {
|
|
414
425
|
text-decoration: none;
|
|
415
426
|
}
|
|
416
|
-
.leaflet-control-attribution a:hover
|
|
427
|
+
.leaflet-control-attribution a:hover,
|
|
428
|
+
.leaflet-control-attribution a:focus {
|
|
417
429
|
text-decoration: underline;
|
|
418
430
|
}
|
|
419
|
-
.leaflet-
|
|
420
|
-
|
|
421
|
-
|
|
431
|
+
.leaflet-attribution-flag {
|
|
432
|
+
display: inline !important;
|
|
433
|
+
vertical-align: baseline !important;
|
|
434
|
+
width: 1em;
|
|
435
|
+
height: 0.6669em;
|
|
422
436
|
}
|
|
423
437
|
.leaflet-left .leaflet-control-scale {
|
|
424
438
|
margin-left: 5px;
|
|
@@ -431,14 +445,11 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
431
445
|
border-top: none;
|
|
432
446
|
line-height: 1.1;
|
|
433
447
|
padding: 2px 5px 1px;
|
|
434
|
-
font-size: 11px;
|
|
435
448
|
white-space: nowrap;
|
|
436
|
-
overflow: hidden;
|
|
437
449
|
-moz-box-sizing: border-box;
|
|
438
450
|
box-sizing: border-box;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
background: rgba(255, 255, 255, 0.5);
|
|
451
|
+
background: rgba(255, 255, 255, 0.8);
|
|
452
|
+
text-shadow: 1px 1px #fff;
|
|
442
453
|
}
|
|
443
454
|
.leaflet-control-scale-line:not(:first-child) {
|
|
444
455
|
border-top: 2px solid #777;
|
|
@@ -474,17 +485,22 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
474
485
|
border-radius: 12px;
|
|
475
486
|
}
|
|
476
487
|
.leaflet-popup-content {
|
|
477
|
-
margin: 13px
|
|
478
|
-
line-height: 1.
|
|
488
|
+
margin: 13px 24px 13px 20px;
|
|
489
|
+
line-height: 1.3;
|
|
490
|
+
font-size: 13px;
|
|
491
|
+
font-size: 1.08333em;
|
|
492
|
+
min-height: 1px;
|
|
479
493
|
}
|
|
480
494
|
.leaflet-popup-content p {
|
|
481
|
-
margin:
|
|
495
|
+
margin: 17px 0;
|
|
496
|
+
margin: 1.3em 0;
|
|
482
497
|
}
|
|
483
498
|
.leaflet-popup-tip-container {
|
|
484
499
|
width: 40px;
|
|
485
500
|
height: 20px;
|
|
486
501
|
position: absolute;
|
|
487
502
|
left: 50%;
|
|
503
|
+
margin-top: -1px;
|
|
488
504
|
margin-left: -20px;
|
|
489
505
|
overflow: hidden;
|
|
490
506
|
pointer-events: none;
|
|
@@ -495,6 +511,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
495
511
|
padding: 1px;
|
|
496
512
|
|
|
497
513
|
margin: -10px auto 0;
|
|
514
|
+
pointer-events: auto;
|
|
498
515
|
|
|
499
516
|
-webkit-transform: rotate(45deg);
|
|
500
517
|
-moz-transform: rotate(45deg);
|
|
@@ -511,24 +528,21 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
511
528
|
position: absolute;
|
|
512
529
|
top: 0;
|
|
513
530
|
right: 0;
|
|
514
|
-
padding: 4px 4px 0 0;
|
|
515
531
|
border: none;
|
|
516
532
|
text-align: center;
|
|
517
|
-
width:
|
|
518
|
-
height:
|
|
519
|
-
font: 16px/
|
|
520
|
-
color: #
|
|
533
|
+
width: 24px;
|
|
534
|
+
height: 24px;
|
|
535
|
+
font: 16px/24px Tahoma, Verdana, sans-serif;
|
|
536
|
+
color: #757575;
|
|
521
537
|
text-decoration: none;
|
|
522
|
-
font-weight: bold;
|
|
523
538
|
background: transparent;
|
|
524
539
|
}
|
|
525
|
-
.leaflet-container a.leaflet-popup-close-button:hover
|
|
526
|
-
|
|
540
|
+
.leaflet-container a.leaflet-popup-close-button:hover,
|
|
541
|
+
.leaflet-container a.leaflet-popup-close-button:focus {
|
|
542
|
+
color: #585858;
|
|
527
543
|
}
|
|
528
544
|
.leaflet-popup-scrolled {
|
|
529
545
|
overflow: auto;
|
|
530
|
-
border-bottom: 1px solid #ddd;
|
|
531
|
-
border-top: 1px solid #ddd;
|
|
532
546
|
}
|
|
533
547
|
|
|
534
548
|
.leaflet-oldie .leaflet-popup-content-wrapper {
|
|
@@ -541,9 +555,6 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
541
555
|
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
|
|
542
556
|
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
|
543
557
|
}
|
|
544
|
-
.leaflet-oldie .leaflet-popup-tip-container {
|
|
545
|
-
margin-top: -1px;
|
|
546
|
-
}
|
|
547
558
|
|
|
548
559
|
.leaflet-oldie .leaflet-control-zoom,
|
|
549
560
|
.leaflet-oldie .leaflet-control-layers,
|
|
@@ -560,13 +571,6 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
560
571
|
border: 1px solid #666;
|
|
561
572
|
}
|
|
562
573
|
|
|
563
|
-
.leaflet-popup-content-wrapper {
|
|
564
|
-
border-radius: 6px !important;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
.leaflet-popup-content {
|
|
568
|
-
margin: 6px 8px !important;
|
|
569
|
-
}
|
|
570
574
|
|
|
571
575
|
/* Tooltip */
|
|
572
576
|
/* Base styles for the element that has a tooltip */
|
|
@@ -585,7 +589,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
585
589
|
pointer-events: none;
|
|
586
590
|
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
|
587
591
|
}
|
|
588
|
-
.leaflet-tooltip.leaflet-
|
|
592
|
+
.leaflet-tooltip.leaflet-interactive {
|
|
589
593
|
cursor: pointer;
|
|
590
594
|
pointer-events: auto;
|
|
591
595
|
}
|
|
@@ -645,3 +649,13 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
|
|
645
649
|
margin-left: -12px;
|
|
646
650
|
border-right-color: #fff;
|
|
647
651
|
}
|
|
652
|
+
|
|
653
|
+
/* Printing */
|
|
654
|
+
|
|
655
|
+
@media print {
|
|
656
|
+
/* Prevent printers from removing background-images of controls. */
|
|
657
|
+
.leaflet-control {
|
|
658
|
+
-webkit-print-color-adjust: exact;
|
|
659
|
+
print-color-adjust: exact;
|
|
660
|
+
}
|
|
661
|
+
}
|