@htmlbricks/hb-map 0.65.17 → 0.65.19
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/main.iife.js +9 -9
- package/main.iife.js.map +1 -1
- package/manifest.json +121 -9
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +23 -0
- package/types/webcomponent.type.d.ts +7 -2
package/manifest.json
CHANGED
|
@@ -286,6 +286,21 @@
|
|
|
286
286
|
"properties": {
|
|
287
287
|
"centerFromGeometries": {
|
|
288
288
|
"type": "boolean"
|
|
289
|
+
},
|
|
290
|
+
"text_offset": {
|
|
291
|
+
"type": "number"
|
|
292
|
+
},
|
|
293
|
+
"text_position": {
|
|
294
|
+
"enum": [
|
|
295
|
+
"top",
|
|
296
|
+
"right",
|
|
297
|
+
"bottom",
|
|
298
|
+
"left"
|
|
299
|
+
],
|
|
300
|
+
"type": "string"
|
|
301
|
+
},
|
|
302
|
+
"text_scale": {
|
|
303
|
+
"type": "number"
|
|
289
304
|
}
|
|
290
305
|
},
|
|
291
306
|
"type": "object"
|
|
@@ -296,6 +311,14 @@
|
|
|
296
311
|
"source": {
|
|
297
312
|
"additionalProperties": false,
|
|
298
313
|
"properties": {
|
|
314
|
+
"style": {
|
|
315
|
+
"enum": [
|
|
316
|
+
"positron",
|
|
317
|
+
"dark_matter",
|
|
318
|
+
"voyager"
|
|
319
|
+
],
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
299
322
|
"type": {
|
|
300
323
|
"type": "string"
|
|
301
324
|
},
|
|
@@ -483,7 +506,7 @@
|
|
|
483
506
|
},
|
|
484
507
|
{
|
|
485
508
|
"name": "markerWithText",
|
|
486
|
-
"description": "Markers with text
|
|
509
|
+
"description": "Markers with text using global options for position and offset",
|
|
487
510
|
"data": {
|
|
488
511
|
"center": [
|
|
489
512
|
10,
|
|
@@ -494,7 +517,9 @@
|
|
|
494
517
|
"type": "osm"
|
|
495
518
|
},
|
|
496
519
|
"options": {
|
|
497
|
-
"centerFromGeometries": true
|
|
520
|
+
"centerFromGeometries": true,
|
|
521
|
+
"text_position": "right",
|
|
522
|
+
"text_offset": 8
|
|
498
523
|
},
|
|
499
524
|
"data": [
|
|
500
525
|
{
|
|
@@ -511,7 +536,7 @@
|
|
|
511
536
|
0.5
|
|
512
537
|
]
|
|
513
538
|
},
|
|
514
|
-
"text": "
|
|
539
|
+
"text": "Uses global (right)"
|
|
515
540
|
}
|
|
516
541
|
},
|
|
517
542
|
{
|
|
@@ -528,7 +553,7 @@
|
|
|
528
553
|
0.5
|
|
529
554
|
]
|
|
530
555
|
},
|
|
531
|
-
"text": "
|
|
556
|
+
"text": "Override: left",
|
|
532
557
|
"text_position": "left"
|
|
533
558
|
}
|
|
534
559
|
},
|
|
@@ -546,7 +571,7 @@
|
|
|
546
571
|
0.5
|
|
547
572
|
]
|
|
548
573
|
},
|
|
549
|
-
"text": "
|
|
574
|
+
"text": "Override: top",
|
|
550
575
|
"text_position": "top"
|
|
551
576
|
}
|
|
552
577
|
},
|
|
@@ -564,7 +589,7 @@
|
|
|
564
589
|
0.5
|
|
565
590
|
]
|
|
566
591
|
},
|
|
567
|
-
"text": "
|
|
592
|
+
"text": "Override: bottom",
|
|
568
593
|
"text_position": "bottom"
|
|
569
594
|
}
|
|
570
595
|
},
|
|
@@ -582,14 +607,50 @@
|
|
|
582
607
|
0.5
|
|
583
608
|
]
|
|
584
609
|
},
|
|
585
|
-
"text": "
|
|
586
|
-
"text_position": "right",
|
|
610
|
+
"text": "Override: gap 20px",
|
|
587
611
|
"text_offset": 20
|
|
588
612
|
}
|
|
589
613
|
}
|
|
590
614
|
]
|
|
591
615
|
}
|
|
592
616
|
},
|
|
617
|
+
{
|
|
618
|
+
"name": "markerWithLargeText",
|
|
619
|
+
"description": "Markers with scaled up text (text_scale: 1.5)",
|
|
620
|
+
"data": {
|
|
621
|
+
"center": [
|
|
622
|
+
10,
|
|
623
|
+
10
|
|
624
|
+
],
|
|
625
|
+
"zoom": 11,
|
|
626
|
+
"source": {
|
|
627
|
+
"type": "osm"
|
|
628
|
+
},
|
|
629
|
+
"options": {
|
|
630
|
+
"centerFromGeometries": true,
|
|
631
|
+
"text_scale": 1.5
|
|
632
|
+
},
|
|
633
|
+
"data": [
|
|
634
|
+
{
|
|
635
|
+
"marker": {
|
|
636
|
+
"lngLat": [
|
|
637
|
+
10,
|
|
638
|
+
10
|
|
639
|
+
],
|
|
640
|
+
"icon": {
|
|
641
|
+
"uri": "https://upload.wikimedia.org/wikipedia/commons/4/4b/Visual_Studio_Code_Insiders_1.36_icon.svg",
|
|
642
|
+
"scale": 0.15,
|
|
643
|
+
"anchor": [
|
|
644
|
+
0.5,
|
|
645
|
+
0.5
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
"text": "Large text"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
},
|
|
593
654
|
{
|
|
594
655
|
"name": "textOnly",
|
|
595
656
|
"description": "Markers with text only (no icon)",
|
|
@@ -618,6 +679,57 @@
|
|
|
618
679
|
]
|
|
619
680
|
}
|
|
620
681
|
},
|
|
682
|
+
{
|
|
683
|
+
"name": "cartoVoyager",
|
|
684
|
+
"description": "CARTO vector tiles with Voyager style (default, colorful)",
|
|
685
|
+
"data": {
|
|
686
|
+
"center": [
|
|
687
|
+
12.4964,
|
|
688
|
+
41.9028
|
|
689
|
+
],
|
|
690
|
+
"zoom": 12,
|
|
691
|
+
"source": {
|
|
692
|
+
"type": "carto_vector",
|
|
693
|
+
"style": "voyager"
|
|
694
|
+
},
|
|
695
|
+
"options": {},
|
|
696
|
+
"data": []
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"name": "cartoPositron",
|
|
701
|
+
"description": "CARTO vector tiles with Positron style (light, minimal)",
|
|
702
|
+
"data": {
|
|
703
|
+
"center": [
|
|
704
|
+
12.4964,
|
|
705
|
+
41.9028
|
|
706
|
+
],
|
|
707
|
+
"zoom": 12,
|
|
708
|
+
"source": {
|
|
709
|
+
"type": "carto_vector",
|
|
710
|
+
"style": "positron"
|
|
711
|
+
},
|
|
712
|
+
"options": {},
|
|
713
|
+
"data": []
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "cartoDarkMatter",
|
|
718
|
+
"description": "CARTO vector tiles with Dark Matter style (dark theme)",
|
|
719
|
+
"data": {
|
|
720
|
+
"center": [
|
|
721
|
+
12.4964,
|
|
722
|
+
41.9028
|
|
723
|
+
],
|
|
724
|
+
"zoom": 12,
|
|
725
|
+
"source": {
|
|
726
|
+
"type": "carto_vector",
|
|
727
|
+
"style": "dark_matter"
|
|
728
|
+
},
|
|
729
|
+
"options": {},
|
|
730
|
+
"data": []
|
|
731
|
+
}
|
|
732
|
+
},
|
|
621
733
|
{
|
|
622
734
|
"name": "screenshot",
|
|
623
735
|
"description": "Set screenshot to 'yes' to capture the map as base64 via the screenshotTaken event",
|
|
@@ -654,5 +766,5 @@
|
|
|
654
766
|
"size": {},
|
|
655
767
|
"iifePath": "main.iife.js",
|
|
656
768
|
"repoName": "@htmlbricks/hb-map",
|
|
657
|
-
"version": "0.65.
|
|
769
|
+
"version": "0.65.19"
|
|
658
770
|
}
|
package/package.json
CHANGED
|
@@ -190,6 +190,21 @@
|
|
|
190
190
|
"properties": {
|
|
191
191
|
"centerFromGeometries": {
|
|
192
192
|
"type": "boolean"
|
|
193
|
+
},
|
|
194
|
+
"text_offset": {
|
|
195
|
+
"type": "number"
|
|
196
|
+
},
|
|
197
|
+
"text_position": {
|
|
198
|
+
"enum": [
|
|
199
|
+
"top",
|
|
200
|
+
"right",
|
|
201
|
+
"bottom",
|
|
202
|
+
"left"
|
|
203
|
+
],
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"text_scale": {
|
|
207
|
+
"type": "number"
|
|
193
208
|
}
|
|
194
209
|
},
|
|
195
210
|
"type": "object"
|
|
@@ -200,6 +215,14 @@
|
|
|
200
215
|
"source": {
|
|
201
216
|
"additionalProperties": false,
|
|
202
217
|
"properties": {
|
|
218
|
+
"style": {
|
|
219
|
+
"enum": [
|
|
220
|
+
"positron",
|
|
221
|
+
"dark_matter",
|
|
222
|
+
"voyager"
|
|
223
|
+
],
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
203
226
|
"type": {
|
|
204
227
|
"type": "string"
|
|
205
228
|
},
|
|
@@ -44,8 +44,13 @@ export type Component = {
|
|
|
44
44
|
popupHtml?: string;
|
|
45
45
|
}[];
|
|
46
46
|
}[];
|
|
47
|
-
source: { type: string; url?: string };
|
|
48
|
-
options: {
|
|
47
|
+
source: { type: string; url?: string; style?: "positron" | "dark_matter" | "voyager" };
|
|
48
|
+
options: {
|
|
49
|
+
centerFromGeometries?: boolean;
|
|
50
|
+
text_position?: "top" | "right" | "bottom" | "left";
|
|
51
|
+
text_offset?: number;
|
|
52
|
+
text_scale?: number;
|
|
53
|
+
};
|
|
49
54
|
screenshot?: string;
|
|
50
55
|
};
|
|
51
56
|
|