@htmlbricks/hb-map 0.65.18 → 0.65.20

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/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.18"
769
+ "version": "0.65.20"
711
770
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-map",
3
- "version": "0.65.18",
3
+ "version": "0.65.20",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [
@@ -215,6 +215,14 @@
215
215
  "source": {
216
216
  "additionalProperties": false,
217
217
  "properties": {
218
+ "style": {
219
+ "enum": [
220
+ "positron",
221
+ "dark_matter",
222
+ "voyager"
223
+ ],
224
+ "type": "string"
225
+ },
218
226
  "type": {
219
227
  "type": "string"
220
228
  },
@@ -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";