@htmlbricks/hb-map 0.65.17 → 0.65.18
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 +7 -7
- package/main.iife.js.map +1 -1
- package/manifest.json +62 -9
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +15 -0
- package/types/webcomponent.type.d.ts +6 -1
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"
|
|
@@ -483,7 +498,7 @@
|
|
|
483
498
|
},
|
|
484
499
|
{
|
|
485
500
|
"name": "markerWithText",
|
|
486
|
-
"description": "Markers with text
|
|
501
|
+
"description": "Markers with text using global options for position and offset",
|
|
487
502
|
"data": {
|
|
488
503
|
"center": [
|
|
489
504
|
10,
|
|
@@ -494,7 +509,9 @@
|
|
|
494
509
|
"type": "osm"
|
|
495
510
|
},
|
|
496
511
|
"options": {
|
|
497
|
-
"centerFromGeometries": true
|
|
512
|
+
"centerFromGeometries": true,
|
|
513
|
+
"text_position": "right",
|
|
514
|
+
"text_offset": 8
|
|
498
515
|
},
|
|
499
516
|
"data": [
|
|
500
517
|
{
|
|
@@ -511,7 +528,7 @@
|
|
|
511
528
|
0.5
|
|
512
529
|
]
|
|
513
530
|
},
|
|
514
|
-
"text": "
|
|
531
|
+
"text": "Uses global (right)"
|
|
515
532
|
}
|
|
516
533
|
},
|
|
517
534
|
{
|
|
@@ -528,7 +545,7 @@
|
|
|
528
545
|
0.5
|
|
529
546
|
]
|
|
530
547
|
},
|
|
531
|
-
"text": "
|
|
548
|
+
"text": "Override: left",
|
|
532
549
|
"text_position": "left"
|
|
533
550
|
}
|
|
534
551
|
},
|
|
@@ -546,7 +563,7 @@
|
|
|
546
563
|
0.5
|
|
547
564
|
]
|
|
548
565
|
},
|
|
549
|
-
"text": "
|
|
566
|
+
"text": "Override: top",
|
|
550
567
|
"text_position": "top"
|
|
551
568
|
}
|
|
552
569
|
},
|
|
@@ -564,7 +581,7 @@
|
|
|
564
581
|
0.5
|
|
565
582
|
]
|
|
566
583
|
},
|
|
567
|
-
"text": "
|
|
584
|
+
"text": "Override: bottom",
|
|
568
585
|
"text_position": "bottom"
|
|
569
586
|
}
|
|
570
587
|
},
|
|
@@ -582,14 +599,50 @@
|
|
|
582
599
|
0.5
|
|
583
600
|
]
|
|
584
601
|
},
|
|
585
|
-
"text": "
|
|
586
|
-
"text_position": "right",
|
|
602
|
+
"text": "Override: gap 20px",
|
|
587
603
|
"text_offset": 20
|
|
588
604
|
}
|
|
589
605
|
}
|
|
590
606
|
]
|
|
591
607
|
}
|
|
592
608
|
},
|
|
609
|
+
{
|
|
610
|
+
"name": "markerWithLargeText",
|
|
611
|
+
"description": "Markers with scaled up text (text_scale: 1.5)",
|
|
612
|
+
"data": {
|
|
613
|
+
"center": [
|
|
614
|
+
10,
|
|
615
|
+
10
|
|
616
|
+
],
|
|
617
|
+
"zoom": 11,
|
|
618
|
+
"source": {
|
|
619
|
+
"type": "osm"
|
|
620
|
+
},
|
|
621
|
+
"options": {
|
|
622
|
+
"centerFromGeometries": true,
|
|
623
|
+
"text_scale": 1.5
|
|
624
|
+
},
|
|
625
|
+
"data": [
|
|
626
|
+
{
|
|
627
|
+
"marker": {
|
|
628
|
+
"lngLat": [
|
|
629
|
+
10,
|
|
630
|
+
10
|
|
631
|
+
],
|
|
632
|
+
"icon": {
|
|
633
|
+
"uri": "https://upload.wikimedia.org/wikipedia/commons/4/4b/Visual_Studio_Code_Insiders_1.36_icon.svg",
|
|
634
|
+
"scale": 0.15,
|
|
635
|
+
"anchor": [
|
|
636
|
+
0.5,
|
|
637
|
+
0.5
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
"text": "Large text"
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
},
|
|
593
646
|
{
|
|
594
647
|
"name": "textOnly",
|
|
595
648
|
"description": "Markers with text only (no icon)",
|
|
@@ -654,5 +707,5 @@
|
|
|
654
707
|
"size": {},
|
|
655
708
|
"iifePath": "main.iife.js",
|
|
656
709
|
"repoName": "@htmlbricks/hb-map",
|
|
657
|
-
"version": "0.65.
|
|
710
|
+
"version": "0.65.18"
|
|
658
711
|
}
|
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"
|
|
@@ -45,7 +45,12 @@ export type Component = {
|
|
|
45
45
|
}[];
|
|
46
46
|
}[];
|
|
47
47
|
source: { type: string; url?: string };
|
|
48
|
-
options: {
|
|
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
|
|