@minmaps-dev/mm-web-sdk 1.0.0-rc.24 → 1.0.0-rc.26
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/README.md +19 -16
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +16 -0
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +14 -12
- package/src/themes/alt3-hybrid-style.json +33 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minmaps-dev/mm-web-sdk",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.26",
|
|
4
4
|
"description": "MinuteMaps indoor mapping SDK for MapLibre GL - render venues, floors, POIs, and wayfinding routes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "MTS LLC",
|
|
@@ -50,15 +50,6 @@
|
|
|
50
50
|
"src/themes/*.json"
|
|
51
51
|
],
|
|
52
52
|
"sideEffects": false,
|
|
53
|
-
"scripts": {
|
|
54
|
-
"build": "rimraf dist && rollup -c",
|
|
55
|
-
"dev:sdk": "NODE_ENV=development rollup -cw",
|
|
56
|
-
"typecheck": "tsc --noEmit",
|
|
57
|
-
"test": "vitest run",
|
|
58
|
-
"test:watch": "vitest",
|
|
59
|
-
"test:coverage": "vitest run --coverage",
|
|
60
|
-
"prepublishOnly": "npm run typecheck && npm run test && npm run build"
|
|
61
|
-
},
|
|
62
53
|
"peerDependencies": {
|
|
63
54
|
"@turf/turf": "^7",
|
|
64
55
|
"maplibre-gl": "^4",
|
|
@@ -81,6 +72,7 @@
|
|
|
81
72
|
"@rollup/plugin-node-resolve": "^15",
|
|
82
73
|
"@rollup/plugin-terser": "^0.4.4",
|
|
83
74
|
"@rollup/plugin-typescript": "^11",
|
|
75
|
+
"@types/geojson": "^7946.0.16",
|
|
84
76
|
"@types/node": "^24.10.0",
|
|
85
77
|
"@types/react": "^19.2.2",
|
|
86
78
|
"@types/react-dom": "^19.2.2",
|
|
@@ -90,6 +82,16 @@
|
|
|
90
82
|
"rollup-plugin-dts": "^6",
|
|
91
83
|
"typescript": "^5",
|
|
92
84
|
"vitest": "^2",
|
|
93
|
-
"@vitest/coverage-v8": "^2"
|
|
85
|
+
"@vitest/coverage-v8": "^2",
|
|
86
|
+
"@minmaps-dev/material-icon-set": "0.2.0-rc.1"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"build": "rimraf dist && rollup -c",
|
|
90
|
+
"dev": "NODE_ENV=development rollup -cw",
|
|
91
|
+
"dev:sdk": "NODE_ENV=development rollup -cw",
|
|
92
|
+
"typecheck": "tsc --noEmit",
|
|
93
|
+
"test": "vitest run",
|
|
94
|
+
"test:watch": "vitest",
|
|
95
|
+
"test:coverage": "vitest run --coverage"
|
|
94
96
|
}
|
|
95
|
-
}
|
|
97
|
+
}
|
|
@@ -717,7 +717,13 @@
|
|
|
717
717
|
"filter": ["==", ["get", "featureType"], "Boundary"],
|
|
718
718
|
"paint": {
|
|
719
719
|
"fill-extrusion-color": "#162e51",
|
|
720
|
-
"fill-extrusion-height":
|
|
720
|
+
"fill-extrusion-height": [
|
|
721
|
+
"interpolate",
|
|
722
|
+
["linear"],
|
|
723
|
+
["zoom"],
|
|
724
|
+
15.8, 15,
|
|
725
|
+
16.5, 0
|
|
726
|
+
],
|
|
721
727
|
"fill-extrusion-base": 0,
|
|
722
728
|
"fill-extrusion-opacity": [
|
|
723
729
|
"interpolate",
|
|
@@ -1069,7 +1075,7 @@
|
|
|
1069
1075
|
"id": "poi-destination-circles",
|
|
1070
1076
|
"type": "circle",
|
|
1071
1077
|
"source": "poi-data",
|
|
1072
|
-
"filter": ["==", ["get", "poiType"], "destination"],
|
|
1078
|
+
"filter": ["all", ["==", ["get", "poiType"], "destination"], ["!", ["has", "iconId"]]],
|
|
1073
1079
|
"minzoom": 16.5,
|
|
1074
1080
|
"paint": {
|
|
1075
1081
|
"circle-radius": [
|
|
@@ -1085,6 +1091,29 @@
|
|
|
1085
1091
|
}
|
|
1086
1092
|
},
|
|
1087
1093
|
|
|
1094
|
+
{
|
|
1095
|
+
"id": "poi-destination-icons",
|
|
1096
|
+
"type": "symbol",
|
|
1097
|
+
"source": "poi-data",
|
|
1098
|
+
"filter": ["all", ["==", ["get", "poiType"], "destination"], ["has", "iconId"]],
|
|
1099
|
+
"minzoom": 16.5,
|
|
1100
|
+
"layout": {
|
|
1101
|
+
"symbol-sort-key": 2,
|
|
1102
|
+
"icon-image": ["get", "iconId"],
|
|
1103
|
+
"icon-size": [
|
|
1104
|
+
"interpolate", ["linear"], ["zoom"],
|
|
1105
|
+
16.5, 0.5,
|
|
1106
|
+
18, 0.62,
|
|
1107
|
+
20, 0.82
|
|
1108
|
+
],
|
|
1109
|
+
"icon-allow-overlap": false,
|
|
1110
|
+
"icon-padding": 4,
|
|
1111
|
+
"icon-optional": false,
|
|
1112
|
+
"icon-rotation-alignment": "viewport",
|
|
1113
|
+
"icon-pitch-alignment": "viewport"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
|
|
1088
1117
|
{
|
|
1089
1118
|
"id": "poi-destination-labels",
|
|
1090
1119
|
"type": "symbol",
|
|
@@ -1092,7 +1121,8 @@
|
|
|
1092
1121
|
"filter": [
|
|
1093
1122
|
"all",
|
|
1094
1123
|
["==", ["get", "poiType"], "destination"],
|
|
1095
|
-
["==", ["get", "showLabel"], true]
|
|
1124
|
+
["==", ["get", "showLabel"], true],
|
|
1125
|
+
["!", ["has", "iconId"]]
|
|
1096
1126
|
],
|
|
1097
1127
|
"minzoom": 16.5,
|
|
1098
1128
|
"layout": {
|