@minmaps-dev/mm-web-sdk 1.0.0-rc.1

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.
@@ -0,0 +1,383 @@
1
+ {
2
+ "version": 8,
3
+ "name": "Hospital Indoor Mapping Style - Enhanced",
4
+ "metadata": {
5
+ "description": "Healthcare-optimized indoor navigation style with accessibility focus",
6
+ "author": "Hospital Mapping Team",
7
+ "version": "4.1.0"
8
+ },
9
+ "glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
10
+ "sources": {
11
+ "osm-tiles": {
12
+ "type": "raster",
13
+ "tiles": ["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],
14
+ "tileSize": 256,
15
+ "attribution": "© OpenStreetMap contributors"
16
+ },
17
+ "indoor-data": {
18
+ "type": "geojson",
19
+ "data": { "type": "FeatureCollection", "features": [] }
20
+ },
21
+ "poi-data": {
22
+ "type": "geojson",
23
+ "data": { "type": "FeatureCollection", "features": [] }
24
+ }
25
+ },
26
+ "layers": [
27
+ {
28
+ "id": "background",
29
+ "type": "background",
30
+ "paint": {
31
+ "background-color": "#999999"
32
+ }
33
+ },
34
+ {
35
+ "id": "osm",
36
+ "type": "raster",
37
+ "source": "osm-tiles",
38
+ "minzoom": 0,
39
+ "paint": { "raster-opacity": 0.8 }
40
+ },
41
+ {
42
+ "id": "pattern-water",
43
+ "type": "fill",
44
+ "source": "indoor-data",
45
+ "filter": ["==", ["get", "featureType"], "Pattern-Water"],
46
+ "paint": {
47
+ "fill-color": "#02F5F5",
48
+ "fill-opacity": 0.7
49
+ }
50
+ },
51
+ {
52
+ "id": "pattern-grass",
53
+ "type": "fill",
54
+ "source": "indoor-data",
55
+ "filter": ["==", ["get", "featureType"], "Pattern-Grass"],
56
+ "paint": {
57
+ "fill-color": "#008001",
58
+ "fill-opacity": 1
59
+ }
60
+ },
61
+ {
62
+ "id": "pattern-trees",
63
+ "type": "fill",
64
+ "source": "indoor-data",
65
+ "filter": ["==", ["get", "featureType"], "Pattern-Trees"],
66
+ "paint": {
67
+ "fill-color": "#4CAF50",
68
+ "fill-opacity": 0.35
69
+ }
70
+ },
71
+ {
72
+ "id": "pattern-pavement",
73
+ "type": "fill",
74
+ "source": "indoor-data",
75
+ "filter": ["==", ["get", "featureType"], "Pattern-Pavement"],
76
+ "paint": {
77
+ "fill-color": "#E0E0E0",
78
+ "fill-opacity": 0.6
79
+ }
80
+ },
81
+
82
+ {
83
+ "id": "boundary-fill",
84
+ "type": "fill",
85
+ "source": "indoor-data",
86
+ "filter": ["==", ["get", "featureType"], "Boundary"],
87
+ "paint": {
88
+ "fill-color": "#777777",
89
+ "fill-opacity": 0.95
90
+ }
91
+ },
92
+ {
93
+ "id": "boundary-outline",
94
+ "type": "line",
95
+ "source": "indoor-data",
96
+ "filter": ["==", ["get", "featureType"], "Boundary"],
97
+ "paint": {
98
+ "line-color": "#000000",
99
+ "line-width": [
100
+ "interpolate", ["linear"], ["zoom"],
101
+ 15, 2,
102
+ 18, 2.5,
103
+ 20, 3
104
+ ]
105
+ }
106
+ },
107
+ {
108
+ "id": "corridors-fill",
109
+ "type": "fill",
110
+ "source": "indoor-data",
111
+ "minzoom": 16.5,
112
+ "filter": ["any",
113
+ ["==", ["get", "featureType"], "Corridors"],
114
+ ["==", ["get", "featureType"], "Corridor"]
115
+ ],
116
+ "paint": {
117
+ "fill-color": "#777777"
118
+ }
119
+ },
120
+ {
121
+ "id": "obstacles-fill",
122
+ "type": "fill",
123
+ "source": "indoor-data",
124
+ "filter": ["==", ["get", "featureType"], "Obstacles"],
125
+ "paint": {
126
+ "fill-color": "#000000",
127
+ "fill-opacity": 0.85
128
+ }
129
+ },
130
+ {
131
+ "id": "stairs-fill",
132
+ "type": "fill",
133
+ "source": "indoor-data",
134
+ "filter": ["==", ["get", "featureType"], "Stairs"],
135
+ "paint": {
136
+ "fill-color": "#80007F",
137
+ "fill-opacity": 0.95
138
+ }
139
+ },
140
+ {
141
+ "id": "elevators-fill",
142
+ "type": "fill",
143
+ "source": "indoor-data",
144
+ "filter": ["==", ["get", "featureType"], "Elevators"],
145
+ "paint": {
146
+ "fill-color": "#2090FF",
147
+ "fill-opacity": 0.95
148
+ }
149
+ },
150
+ {
151
+ "id": "backofhouse-fill",
152
+ "type": "fill",
153
+ "source": "indoor-data",
154
+ "filter": [
155
+ "any",
156
+ ["==", ["get", "featureType"], "Back-of-House"],
157
+ ["==", ["get", "featureType"], "Back-of-house"]
158
+ ],
159
+ "paint": {
160
+ "fill-color": "#000000",
161
+ "fill-opacity": 0.8
162
+ }
163
+ },
164
+ {
165
+ "id": "restrooms-fill",
166
+ "type": "fill",
167
+ "source": "indoor-data",
168
+ "filter": ["==", ["get", "featureType"], "Restrooms"],
169
+ "paint": {
170
+ "fill-color": "#3EF240",
171
+ "fill-opacity": 0.9
172
+ }
173
+ },
174
+ {
175
+ "id": "units-fill",
176
+ "type": "fill",
177
+ "source": "indoor-data",
178
+ "filter": ["==", ["get", "featureType"], "Units"],
179
+ "paint": {
180
+ "fill-color": "#000000",
181
+ "fill-opacity": 0.95
182
+ }
183
+ },
184
+ {
185
+ "id": "units-outline",
186
+ "type": "line",
187
+ "source": "indoor-data",
188
+ "filter": ["==", ["get", "featureType"], "Units"],
189
+ "paint": {
190
+ "line-color": "#FFFFFF",
191
+ "line-width": [
192
+ "interpolate", ["linear"], ["zoom"],
193
+ 15, 1,
194
+ 18, 1.5,
195
+ 20, 1.7
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "id": "building-extrusion",
201
+ "type": "fill-extrusion",
202
+ "source": "indoor-data",
203
+ "filter": ["==", ["get", "featureType"], "Boundary"],
204
+ "layout": { "visibility": "none" },
205
+ "paint": {
206
+ "fill-extrusion-color": "#FAFAFA",
207
+ "fill-extrusion-height": 15,
208
+ "fill-extrusion-base": 0,
209
+ "fill-extrusion-opacity": 1
210
+ }
211
+ },
212
+ {
213
+ "id": "units-extrusion",
214
+ "type": "fill-extrusion",
215
+ "source": "indoor-data",
216
+ "filter": ["==", ["get", "featureType"], "Units"],
217
+ "layout": { "visibility": "none" },
218
+ "paint": {
219
+ "fill-extrusion-color": "#B3D9FF",
220
+ "fill-extrusion-height": ["+", ["*", ["get", "floorSequence"], 4], 3.5],
221
+ "fill-extrusion-base": ["*", ["get", "floorSequence"], 4],
222
+ "fill-extrusion-opacity": 1
223
+ }
224
+ },
225
+ {
226
+ "id": "corridors-extrusion",
227
+ "type": "fill-extrusion",
228
+ "source": "indoor-data",
229
+ "filter": ["any",
230
+ ["==", ["get", "featureType"], "Corridors"],
231
+ ["==", ["get", "featureType"], "Corridor"]
232
+ ],
233
+ "layout": { "visibility": "none" },
234
+ "paint": {
235
+ "fill-extrusion-color": "#FFE4B5",
236
+ "fill-extrusion-height": ["+", ["*", ["get", "floorSequence"], 4], 3.5],
237
+ "fill-extrusion-base": ["*", ["get", "floorSequence"], 4],
238
+ "fill-extrusion-opacity": 1
239
+ }
240
+ },
241
+ {
242
+ "id": "obstacles-extrusion",
243
+ "type": "fill-extrusion",
244
+ "source": "indoor-data",
245
+ "filter": ["==", ["get", "featureType"], "Obstacles"],
246
+ "layout": { "visibility": "none" },
247
+ "paint": {
248
+ "fill-extrusion-color": "#424242",
249
+ "fill-extrusion-height": 2,
250
+ "fill-extrusion-base": 0,
251
+ "fill-extrusion-opacity": 1
252
+ }
253
+ },
254
+ {
255
+ "id": "parking-fill",
256
+ "type": "fill",
257
+ "source": "indoor-data",
258
+ "filter": ["any",
259
+ ["==", ["get", "featureType"], "Parking-Lots"],
260
+ ["==", ["get", "featureType"], "Interior-ParkingLots"]
261
+ ],
262
+ "paint": {
263
+ "fill-color": "#424242",
264
+ "fill-opacity": 0.7
265
+ }
266
+ },
267
+ {
268
+ "id": "parking-outline",
269
+ "type": "line",
270
+ "source": "indoor-data",
271
+ "filter": ["any",
272
+ ["==", ["get", "featureType"], "Parking-Lots"],
273
+ ["==", ["get", "featureType"], "Interior-ParkingLots"]
274
+ ],
275
+ "paint": {
276
+ "line-color": "#F0F0F0",
277
+ "line-width": [
278
+ "interpolate", ["linear"], ["zoom"],
279
+ 15, 0.5,
280
+ 18, 1,
281
+ 20, 1.5
282
+ ],
283
+ "line-dasharray": [3, 2]
284
+ }
285
+ },
286
+ {
287
+ "id": "restrooms-extrusion",
288
+ "type": "fill-extrusion",
289
+ "source": "indoor-data",
290
+ "filter": ["==", ["get", "featureType"], "Restrooms"],
291
+ "layout": { "visibility": "none" },
292
+ "paint": {
293
+ "fill-extrusion-color": "#81D4FA",
294
+ "fill-extrusion-height": 3.2,
295
+ "fill-extrusion-base": 0,
296
+ "fill-extrusion-opacity": 1
297
+ }
298
+ },
299
+ {
300
+ "id": "backofhouse-extrusion",
301
+ "type": "fill-extrusion",
302
+ "source": "indoor-data",
303
+ "filter": [
304
+ "any",
305
+ ["==", ["get", "featureType"], "Back-of-House"],
306
+ ["==", ["get", "featureType"], "Back-of-house"]
307
+ ],
308
+ "layout": { "visibility": "none" },
309
+ "paint": {
310
+ "fill-extrusion-color": "#CFD8DC",
311
+ "fill-extrusion-height": 2.5,
312
+ "fill-extrusion-base": 0,
313
+ "fill-extrusion-opacity": 1
314
+ }
315
+ },
316
+ {
317
+ "id": "poi-circles",
318
+ "type": "circle",
319
+ "source": "poi-data",
320
+ "filter": ["==", ["get", "poiType"], "destination"],
321
+ "paint": {
322
+ "circle-radius": [
323
+ "interpolate", ["linear"], ["zoom"],
324
+ 15, 3,
325
+ 17, 4,
326
+ 19, 5,
327
+ 20, 6
328
+ ],
329
+ "circle-color": "#e2e455",
330
+ "circle-stroke-width": 2,
331
+ "circle-stroke-color": "#FFFFFF",
332
+ "circle-opacity": 0.8
333
+ }
334
+ },
335
+ {
336
+ "id": "poi-icons",
337
+ "type": "symbol",
338
+ "source": "poi-data",
339
+ "filter": ["==", ["get", "poiType"], "amenity"],
340
+ "layout": {
341
+ "icon-image": ["get", "iconId"],
342
+ "icon-size": [
343
+ "interpolate", ["linear"], ["zoom"],
344
+ 15, 0.3,
345
+ 18, 0.4,
346
+ 20, 0.5
347
+ ],
348
+ "icon-allow-overlap": false,
349
+ "icon-padding": 6
350
+ }
351
+ },
352
+ {
353
+ "id": "poi-labels",
354
+ "type": "symbol",
355
+ "source": "poi-data",
356
+ "filter": ["==", ["get", "showLabel"], true],
357
+ "minzoom": 15,
358
+ "layout": {
359
+ "text-field": ["get", "name"],
360
+ "text-size": [
361
+ "interpolate", ["linear"], ["zoom"],
362
+ 15, 11,
363
+ 17, 13,
364
+ 19, 15,
365
+ 20, 16
366
+ ],
367
+ "text-offset": [0, 1.5],
368
+ "text-anchor": "top",
369
+ "text-font": ["Noto Sans Bold"],
370
+ "text-max-width": 12,
371
+ "text-allow-overlap": false,
372
+ "text-ignore-placement": false
373
+
374
+ },
375
+ "paint": {
376
+ "text-color": "#FFFFFF",
377
+ "text-halo-color": "#000000",
378
+ "text-halo-width": 3,
379
+ "text-halo-blur": 0
380
+ }
381
+ }
382
+ ]
383
+ }