@htmlbricks/hb-map 0.65.18 → 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 +60 -1
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +8 -0
- package/types/webcomponent.type.d.ts +1 -1
package/manifest.json
CHANGED
|
@@ -311,6 +311,14 @@
|
|
|
311
311
|
"source": {
|
|
312
312
|
"additionalProperties": false,
|
|
313
313
|
"properties": {
|
|
314
|
+
"style": {
|
|
315
|
+
"enum": [
|
|
316
|
+
"positron",
|
|
317
|
+
"dark_matter",
|
|
318
|
+
"voyager"
|
|
319
|
+
],
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
314
322
|
"type": {
|
|
315
323
|
"type": "string"
|
|
316
324
|
},
|
|
@@ -671,6 +679,57 @@
|
|
|
671
679
|
]
|
|
672
680
|
}
|
|
673
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
|
+
},
|
|
674
733
|
{
|
|
675
734
|
"name": "screenshot",
|
|
676
735
|
"description": "Set screenshot to 'yes' to capture the map as base64 via the screenshotTaken event",
|
|
@@ -707,5 +766,5 @@
|
|
|
707
766
|
"size": {},
|
|
708
767
|
"iifePath": "main.iife.js",
|
|
709
768
|
"repoName": "@htmlbricks/hb-map",
|
|
710
|
-
"version": "0.65.
|
|
769
|
+
"version": "0.65.19"
|
|
711
770
|
}
|
package/package.json
CHANGED
|
@@ -44,7 +44,7 @@ export type Component = {
|
|
|
44
44
|
popupHtml?: string;
|
|
45
45
|
}[];
|
|
46
46
|
}[];
|
|
47
|
-
source: { type: string; url?: string };
|
|
47
|
+
source: { type: string; url?: string; style?: "positron" | "dark_matter" | "voyager" };
|
|
48
48
|
options: {
|
|
49
49
|
centerFromGeometries?: boolean;
|
|
50
50
|
text_position?: "top" | "right" | "bottom" | "left";
|