@wemap/core 14.6.0-beta.5 → 14.6.0
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 +23 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -16
- package/dist/src/CoreConfig.d.ts +29 -0
- package/dist/src/CoreConfig.d.ts.map +1 -1
- package/dist/src/helpers/SnippetParser.d.ts +2 -0
- package/dist/src/helpers/SnippetParser.d.ts.map +1 -1
- package/dist/src/services/BuildingService.d.ts +4 -2
- package/dist/src/services/BuildingService.d.ts.map +1 -1
- package/dist/src/services/GeocodingService.d.ts +5 -2
- package/dist/src/services/GeocodingService.d.ts.map +1 -1
- package/dist/src/services/PinpointManager.d.ts +3 -0
- package/dist/src/services/PinpointManager.d.ts.map +1 -1
- package/dist/src/services/PinpointService.d.ts.map +1 -1
- package/dist/src/types/pinpoint.d.ts +1 -0
- package/dist/src/types/pinpoint.d.ts.map +1 -1
- package/dist/src/types/tags.d.ts +41 -0
- package/dist/src/types/tags.d.ts.map +1 -0
- package/dist/src/utils/map.d.ts +1 -1
- package/dist/src/utils/map.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,8 +18,7 @@ import { core } from '@wemap/core';
|
|
|
18
18
|
// Initialize the SDK
|
|
19
19
|
await core.init({
|
|
20
20
|
emmid: 'your-emmid',
|
|
21
|
-
token: 'your-token'
|
|
22
|
-
env: 'production' // or 'development'
|
|
21
|
+
token: 'your-token'
|
|
23
22
|
});
|
|
24
23
|
|
|
25
24
|
// Access configuration
|
|
@@ -90,3 +89,25 @@ const address = await geocoding.reverseGeocode(48.85, 2.35);
|
|
|
90
89
|
`language?`, `latitude`, `longitude`, and optional `bbox` as
|
|
91
90
|
`[west, south, east, north]`. Per-call `language` / `region` / `bbox` override
|
|
92
91
|
constructor defaults.
|
|
92
|
+
|
|
93
|
+
## Tags & categories
|
|
94
|
+
|
|
95
|
+
Livemaps ship with a tag configuration:
|
|
96
|
+
the tags used to classify pinpoints, and the categories they can be grouped by.
|
|
97
|
+
Read them after `core.init()` to build tag filters, legends or category menus:
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
import { CoreConfig, core } from '@wemap/core';
|
|
101
|
+
|
|
102
|
+
await core.init({ emmid: '31668', token: 'YOUR_TOKEN' });
|
|
103
|
+
|
|
104
|
+
const { tags, categories } = CoreConfig.getTagsConfig();
|
|
105
|
+
|
|
106
|
+
// e.g. group tags by category slug
|
|
107
|
+
const transport = tags.filter((tag) => tag.category === 'transport');
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Each `LivemapTag` exposes `name`, `slug`, and optional `category` (a category
|
|
111
|
+
slug), `color` and `icon`. A pinpoint references its tags by `slug`
|
|
112
|
+
(`Pinpoint.tags`), so you can join the two. Each `LivemapTagCategory` exposes
|
|
113
|
+
`name` and `slug`. Both arrays are empty when the livemap has no tags.
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export type { LatLngLike } from './src/types/common';
|
|
|
11
11
|
export type { Building, IndoorLevel } from './src/types/indoor';
|
|
12
12
|
export type { Pinpoint, PinpointBoundsParams, PinpointSearchQuery, PinpointSearchResponse, PinpointResolver, } from './src/types/pinpoint';
|
|
13
13
|
export type { GeocodingResult, GeocodingSearchOptions, GeocodingServiceOptions, } from './src/types/geocoding';
|
|
14
|
+
export type { LivemapTag, LivemapTagCategory, LivemapTagsConfig, } from './src/types/tags';
|
|
14
15
|
export { latLngLikeToCoordinates, boundsToDelta } from './src/utils/map';
|
|
15
16
|
export { DEFAULT_THEME, resolveTheme, themeToCssVariables, } from './src/theme';
|
|
16
17
|
export type { WemapTheme } from './src/theme';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;A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AAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -254,6 +254,7 @@ function v(e) {
|
|
|
254
254
|
...e.tags ? { tags: e.tags } : {},
|
|
255
255
|
...e.category === void 0 ? {} : { category: e.category },
|
|
256
256
|
...e.image_url ? { image_url: e.image_url } : {},
|
|
257
|
+
...e.media_url ? { media_url: e.media_url } : {},
|
|
257
258
|
...e.address ? { address: e.address } : {},
|
|
258
259
|
external_data: e.external_data ?? null
|
|
259
260
|
};
|
|
@@ -422,8 +423,8 @@ var w = {
|
|
|
422
423
|
let n = Number(e);
|
|
423
424
|
return isNaN(n) ? t : n;
|
|
424
425
|
}, k = function(e) {
|
|
425
|
-
let t = w.properties[e], n =
|
|
426
|
-
return l(n) ? (s(n) && (n = j(n)), u(n) || (n = {}), n =
|
|
426
|
+
let t = w.properties[e], n = P.snippet[e];
|
|
427
|
+
return l(n) ? (s(n) && (n = j(n)), u(n) || (n = {}), n = P.fillEmptyByDefault(n, "properties" in t ? t.properties : {}), n) : t.default;
|
|
427
428
|
};
|
|
428
429
|
function A(t, n) {
|
|
429
430
|
let r = j(t);
|
|
@@ -440,14 +441,34 @@ var j = function(e) {
|
|
|
440
441
|
} catch {
|
|
441
442
|
return null;
|
|
442
443
|
}
|
|
443
|
-
}, M = function(e
|
|
444
|
+
}, M = function(e) {
|
|
445
|
+
let t = e;
|
|
446
|
+
if (s(t) && (t = j(t)), !u(t)) return {
|
|
447
|
+
tags: [],
|
|
448
|
+
categories: []
|
|
449
|
+
};
|
|
450
|
+
let n = Array.isArray(t.tags) ? t.tags : [], r = Array.isArray(t.categories) ? t.categories : [];
|
|
451
|
+
return {
|
|
452
|
+
tags: n.filter((e) => u(e) && s(e.name) && s(e.slug)).map((e) => {
|
|
453
|
+
let t = {
|
|
454
|
+
name: e.name,
|
|
455
|
+
slug: e.slug
|
|
456
|
+
};
|
|
457
|
+
return s(e.category) && (t.category = e.category), s(e.color) && (t.color = e.color), (e.icon === null || s(e.icon)) && (t.icon = e.icon), t;
|
|
458
|
+
}),
|
|
459
|
+
categories: r.filter((e) => u(e) && s(e.name) && s(e.slug)).map((e) => ({
|
|
460
|
+
name: e.name,
|
|
461
|
+
slug: e.slug
|
|
462
|
+
}))
|
|
463
|
+
};
|
|
464
|
+
}, N = function(e, t) {
|
|
444
465
|
return e == null || typeof e != "string" ? t : e;
|
|
445
|
-
},
|
|
466
|
+
}, P = class e {
|
|
446
467
|
static snippet = {};
|
|
447
468
|
static mapObject;
|
|
448
469
|
static getProperty(t) {
|
|
449
470
|
let n = w.properties[t];
|
|
450
|
-
return n.type === "array" ? T(e.snippet[t], n.default) : n.type === "boolean" ? E(e.snippet[t], n.default) : n.type === "integer" ? D(e.snippet[t], n.default) : n.type === "number" ? O(e.snippet[t], n.default) : n.type === "string" ?
|
|
471
|
+
return n.type === "array" ? T(e.snippet[t], n.default) : n.type === "boolean" ? E(e.snippet[t], n.default) : n.type === "integer" ? D(e.snippet[t], n.default) : n.type === "number" ? O(e.snippet[t], n.default) : n.type === "string" ? N(e.snippet[t], n.default) : n.type === "object" ? k(t) : null;
|
|
451
472
|
}
|
|
452
473
|
static fillEmptyByDefault(t, n) {
|
|
453
474
|
let r = { ...t };
|
|
@@ -480,22 +501,23 @@ var j = function(e) {
|
|
|
480
501
|
routingType: e.getProperty("routingtype"),
|
|
481
502
|
routingUrl: e.getProperty("routingurl"),
|
|
482
503
|
scrollWheelZoom: e.getProperty("scrollwheelzoom"),
|
|
504
|
+
tags: M(e.snippet.usetags),
|
|
483
505
|
tilesStyle: e.getProperty("tilesstyle")
|
|
484
506
|
};
|
|
485
507
|
}
|
|
486
|
-
},
|
|
508
|
+
}, F = {
|
|
487
509
|
colorPrimary: "#2f7de1",
|
|
488
510
|
colorOnPrimary: "#ffffff",
|
|
489
511
|
colorSurface: "#ffffff",
|
|
490
512
|
colorOnSurface: "#1a1a1a"
|
|
491
513
|
};
|
|
492
|
-
function
|
|
514
|
+
function I(e) {
|
|
493
515
|
return {
|
|
494
|
-
...
|
|
516
|
+
...F,
|
|
495
517
|
...e ?? {}
|
|
496
518
|
};
|
|
497
519
|
}
|
|
498
|
-
function
|
|
520
|
+
function L(e) {
|
|
499
521
|
return {
|
|
500
522
|
"--wemap-color-primary": e.colorPrimary,
|
|
501
523
|
"--wemap-color-on-primary": e.colorOnPrimary,
|
|
@@ -505,9 +527,9 @@ function I(e) {
|
|
|
505
527
|
}
|
|
506
528
|
//#endregion
|
|
507
529
|
//#region src/CoreConfig.ts
|
|
508
|
-
var
|
|
530
|
+
var R = class e {
|
|
509
531
|
static snippet;
|
|
510
|
-
static theme =
|
|
532
|
+
static theme = I();
|
|
511
533
|
livemapService = null;
|
|
512
534
|
env = "production";
|
|
513
535
|
constructor() {}
|
|
@@ -516,12 +538,12 @@ var L = class e {
|
|
|
516
538
|
}
|
|
517
539
|
async init(t) {
|
|
518
540
|
if (!t.emmid || !t.token) throw Error("emmid and token are required");
|
|
519
|
-
this.env = t.env || "production", e.theme =
|
|
541
|
+
this.env = t.env || "production", e.theme = I(t.theme);
|
|
520
542
|
let n = this.getBaseUrl();
|
|
521
543
|
this.livemapService = new i(n);
|
|
522
544
|
try {
|
|
523
545
|
let n = await this.livemapService.fetchLivemap(t.emmid);
|
|
524
|
-
e.snippet =
|
|
546
|
+
e.snippet = P.parse(n);
|
|
525
547
|
} catch (e) {
|
|
526
548
|
throw console.error("Failed to initialize Core SDK:", e), e;
|
|
527
549
|
}
|
|
@@ -553,22 +575,31 @@ var L = class e {
|
|
|
553
575
|
interactive: !t.locked
|
|
554
576
|
};
|
|
555
577
|
}
|
|
578
|
+
static getTagsConfig() {
|
|
579
|
+
return e.getConfig().tags ?? {
|
|
580
|
+
tags: [],
|
|
581
|
+
categories: []
|
|
582
|
+
};
|
|
583
|
+
}
|
|
556
584
|
static getTheme() {
|
|
557
585
|
return e.theme;
|
|
558
586
|
}
|
|
559
587
|
static getThemeCssVariables() {
|
|
560
|
-
return
|
|
588
|
+
return L(e.theme);
|
|
561
589
|
}
|
|
562
590
|
createBuildingProvider() {
|
|
563
591
|
let t = new a(this.getBaseUrl(), e.getConfig().emmid);
|
|
564
592
|
return (e) => t.getBuildingsFromBbox(e);
|
|
565
593
|
}
|
|
594
|
+
createBuildingService() {
|
|
595
|
+
return new a(this.getBaseUrl(), e.getConfig().emmid);
|
|
596
|
+
}
|
|
566
597
|
createPinpointManager() {
|
|
567
598
|
return new b(this.getBaseUrl(), e.getConfig().emmid);
|
|
568
599
|
}
|
|
569
600
|
createGeocodingService(e) {
|
|
570
601
|
return new S(e);
|
|
571
602
|
}
|
|
572
|
-
},
|
|
603
|
+
}, z = new R();
|
|
573
604
|
//#endregion
|
|
574
|
-
export { a as BuildingService,
|
|
605
|
+
export { a as BuildingService, R as CoreConfig, F as DEFAULT_THEME, x as GEOCODING_BASE_URL, S as GeocodingService, r as HttpClient, n as HttpError, i as LivemapService, b as PinpointManager, h as boundsToDelta, z as core, g as latLngLikeToCoordinates, I as resolveTheme, L as themeToCssVariables };
|
package/dist/src/CoreConfig.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BoundingBox } from '@wemap/geo';
|
|
2
|
+
import { BuildingService } from './services/BuildingService';
|
|
2
3
|
import { PinpointManager } from './services/PinpointManager';
|
|
3
4
|
import { GeocodingService } from './services/GeocodingService';
|
|
4
5
|
import { SnippetParser } from './helpers/SnippetParser';
|
|
5
6
|
import { Building } from './types/indoor';
|
|
6
7
|
import { GeocodingServiceOptions } from './types/geocoding';
|
|
8
|
+
import { LivemapTagsConfig } from './types/tags';
|
|
7
9
|
import { WemapTheme } from './theme';
|
|
8
10
|
/**
|
|
9
11
|
* Initialization options for the Core SDK
|
|
@@ -136,6 +138,21 @@ export declare class CoreConfig {
|
|
|
136
138
|
scrollZoom: any;
|
|
137
139
|
interactive: boolean;
|
|
138
140
|
};
|
|
141
|
+
/**
|
|
142
|
+
* The livemap's tag configuration — the tags authored on the map and the
|
|
143
|
+
* categories they can be grouped by (from the snippet's `usetags`). Use it to
|
|
144
|
+
* build tag filters, legends or category menus.
|
|
145
|
+
*
|
|
146
|
+
* Returns empty `tags` / `categories` arrays when the livemap has no tags or
|
|
147
|
+
* the SDK has not been initialized.
|
|
148
|
+
*
|
|
149
|
+
* ```typescript
|
|
150
|
+
* await core.init({ emmid, token });
|
|
151
|
+
* const { tags, categories } = CoreConfig.getTagsConfig();
|
|
152
|
+
* const transportTags = tags.filter((t) => t.category === 'transport');
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
static getTagsConfig(): LivemapTagsConfig;
|
|
139
156
|
/**
|
|
140
157
|
* The resolved SDK theme (built-in defaults merged with any `core.init`
|
|
141
158
|
* override). Returns the defaults when the SDK has not been initialized.
|
|
@@ -164,6 +181,18 @@ export declare class CoreConfig {
|
|
|
164
181
|
* @returns A `(bbox) => Promise<Building[]>` bound to this livemap.
|
|
165
182
|
*/
|
|
166
183
|
createBuildingProvider(): (bbox: BoundingBox) => Promise<Building[]>;
|
|
184
|
+
/**
|
|
185
|
+
* Build a building service for the initialized livemap.
|
|
186
|
+
*
|
|
187
|
+
* ```typescript
|
|
188
|
+
* await core.init({ emmid, token });
|
|
189
|
+
* const service = core.createBuildingService();
|
|
190
|
+
* const buildings = await service.getBuildingsFromBbox(map.getBounds());
|
|
191
|
+
* ```
|
|
192
|
+
*
|
|
193
|
+
* @returns A `BuildingService` bound to this livemap.
|
|
194
|
+
*/
|
|
195
|
+
createBuildingService(): BuildingService;
|
|
167
196
|
/**
|
|
168
197
|
* Build a pinpoint manager bound to the initialized livemap.
|
|
169
198
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreConfig.d.ts","sourceRoot":"","sources":["../../src/CoreConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"CoreConfig.d.ts","sourceRoot":"","sources":["../../src/CoreConfig.ts"],"names":[],"mappings":"AAAA,OAAO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IACG,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBnD;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,SAAS,IAAI,OAAO;IAI3B;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,gBAAgB,IAAI,aAAa;IAUxC,MAAM,CAAC,aAAa;;;;;;;;;;;;;;IAmBpB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,aAAa,IAAI,iBAAiB;IAIzC;;;OAGG;IACH,MAAM,CAAC,QAAQ,IAAI,UAAU;IAI7B;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAIrD;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,IAAI,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC;IAMpE;;;;;;;;;;OAUG;IACH,qBAAqB,IAAI,eAAe;IAIxC;;;;;;;;;;;;OAYG;IACH,qBAAqB,IAAI,eAAe;IAIxC;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,gBAAgB;CAG5E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,YAAmB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaKey, SchemaProperty, MapObjectType } from '../schemas/types';
|
|
2
|
+
import { LivemapTagsConfig } from '../types/tags';
|
|
2
3
|
import { BoundingBox } from '@wemap/geo';
|
|
3
4
|
export declare class SnippetParser {
|
|
4
5
|
static snippet: Record<string, any>;
|
|
@@ -185,6 +186,7 @@ export declare class SnippetParser {
|
|
|
185
186
|
readonly routingType: any;
|
|
186
187
|
readonly routingUrl: any;
|
|
187
188
|
readonly scrollWheelZoom: any;
|
|
189
|
+
readonly tags: LivemapTagsConfig;
|
|
188
190
|
readonly tilesStyle: any;
|
|
189
191
|
};
|
|
190
192
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnippetParser.d.ts","sourceRoot":"","sources":["../../../src/helpers/SnippetParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"SnippetParser.d.ts","sourceRoot":"","sources":["../../../src/helpers/SnippetParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,KAAK,EAAkC,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAkJzC,qBAAa,aAAa;IACxB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IACzC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC;IAEhC,MAAM,CAAC,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC;IAqBnE,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;IAuBvF,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CtC"}
|
|
@@ -3,11 +3,13 @@ import { Building } from '../types/indoor';
|
|
|
3
3
|
/**
|
|
4
4
|
* Fetches buildings of a livemap from the Wemap API, with bbox-based caching.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* building of the livemap (paginated) and caches them against an expanded bbox;
|
|
6
|
+
* First lookup downloads every building of the livemap (paginated) and caches them against an expanded bbox;
|
|
8
7
|
* subsequent lookups whose viewport is still inside the cached bbox are served
|
|
9
8
|
* from memory. Each lookup returns only the buildings whose bbox intersects the
|
|
10
9
|
* requested viewport.
|
|
10
|
+
*
|
|
11
|
+
* Do not instantiate this directly — retrieve a configured instance with
|
|
12
|
+
* `core.createBuildingService()`.
|
|
11
13
|
*/
|
|
12
14
|
export declare class BuildingService {
|
|
13
15
|
/** Minimum bbox size (meters) the cache is expanded to, to limit API calls. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildingService.d.ts","sourceRoot":"","sources":["../../../src/services/BuildingService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAShD
|
|
1
|
+
{"version":3,"file":"BuildingService.d.ts","sourceRoot":"","sources":["../../../src/services/BuildingService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAShD;;;;;;;;;;GAUG;AACH,qBAAa,eAAe;IAC1B,+EAA+E;IAC/E,MAAM,CAAC,aAAa,SAAQ;IAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAM;IAE9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+B;IACzD,OAAO,CAAC,UAAU,CAA4B;IAE9C;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAKnD;;;OAGG;IACG,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IA0BlE,OAAO,CAAC,YAAY;YAaN,QAAQ;CAiBvB"}
|
|
@@ -8,11 +8,14 @@ export declare const GEOCODING_BASE_URL = "https://geocoding.getwemap.workers.de
|
|
|
8
8
|
* (`centerZoom` / `LocationObject`). Use returned `bbox` / coordinates with
|
|
9
9
|
* `@wemap/geo` and the map package as needed.
|
|
10
10
|
*
|
|
11
|
+
* Do not instantiate this directly — retrieve a configured instance with
|
|
12
|
+
* `core.createGeocodingService()`.
|
|
13
|
+
*
|
|
11
14
|
* @example
|
|
12
15
|
* ```typescript
|
|
13
|
-
* import {
|
|
16
|
+
* import { core } from '@wemap/core';
|
|
14
17
|
*
|
|
15
|
-
* const geocoding =
|
|
18
|
+
* const geocoding = core.createGeocodingService({ language: 'fr', region: 'fr' });
|
|
16
19
|
* const place = await geocoding.search('Paris');
|
|
17
20
|
* const nearby = await geocoding.reverseGeocode(48.85, 2.35);
|
|
18
21
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeocodingService.d.ts","sourceRoot":"","sources":["../../../src/services/GeocodingService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AA2B3E
|
|
1
|
+
{"version":3,"file":"GeocodingService.d.ts","sourceRoot":"","sources":["../../../src/services/GeocodingService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AA2B3E;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAElD;;OAEG;gBACS,OAAO,GAAE,uBAA4B;IAWjD;;OAEG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAMlC;;OAEG;IACG,cAAc,CAClB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,eAAe,EAAE,CAAC;IAM7B;;;;;OAKG;IACG,cAAc,CAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,GACjD,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAgBlC,yCAAyC;IACzC,iBAAiB,CACf,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,sBAAsB,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;YAwBpB,aAAa;CAO5B"}
|
|
@@ -5,6 +5,9 @@ import { Pinpoint, PinpointResolver, PinpointSearchQuery, PinpointSearchResponse
|
|
|
5
5
|
*
|
|
6
6
|
* Internally uses the shared pinpoint store so map preload, click resolution,
|
|
7
7
|
* and integrator searches all benefit from the same data.
|
|
8
|
+
*
|
|
9
|
+
* Do not instantiate this directly — retrieve a configured instance with
|
|
10
|
+
* `core.createPinpointManager()`.
|
|
8
11
|
*/
|
|
9
12
|
export declare class PinpointManager implements PinpointResolver {
|
|
10
13
|
private readonly cache;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinpointManager.d.ts","sourceRoot":"","sources":["../../../src/services/PinpointManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAG3B
|
|
1
|
+
{"version":3,"file":"PinpointManager.d.ts","sourceRoot":"","sources":["../../../src/services/PinpointManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAG3B;;;;;;;;GAQG;AACH,qBAAa,eAAgB,YAAW,gBAAgB;IACtD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;gBAE5B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAM7C,MAAM,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAOzE;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAI7B,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAI7C,eAAe,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxE,oEAAoE;IACpE,kBAAkB,IAAI,QAAQ,EAAE;IAIhC,iEAAiE;IACjE,aAAa,IAAI,WAAW,GAAG,IAAI;IAInC,sEAAsE;IACtE,OAAO,IAAI,IAAI;CAGhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinpointService.d.ts","sourceRoot":"","sources":["../../../src/services/PinpointService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PinpointService.d.ts","sourceRoot":"","sources":["../../../src/services/PinpointService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAyB3B;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAO;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;gBAEnB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAK7C,MAAM,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAenE,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAM5C;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAsBnC,yCAAyC;IACzC,iBAAiB,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAkC/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinpoint.d.ts","sourceRoot":"","sources":["../../../src/types/pinpoint.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,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,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAC9C,kBAAkB,IAAI,QAAQ,EAAE,CAAC;IACjC,eAAe,CACb,MAAM,EAAE,OAAO,YAAY,EAAE,WAAW,EACxC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tag configuration shipped with a livemap, parsed from the snippet's
|
|
3
|
+
* `usetags` property. Wemap authors define tags (and optionally group them into
|
|
4
|
+
* categories) to classify pinpoints; integrators can read these definitions to
|
|
5
|
+
* build tag filters, legends or category menus.
|
|
6
|
+
*
|
|
7
|
+
* A pinpoint references its tags by slug (`Pinpoint.tags`); these types describe
|
|
8
|
+
* the tag/category *definitions* they point at.
|
|
9
|
+
*/
|
|
10
|
+
/** A category grouping several {@link LivemapTag}s (`usetags.categories`). */
|
|
11
|
+
export interface LivemapTagCategory {
|
|
12
|
+
/** Human-readable category name, e.g. `"Transport"`. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** URL-friendly identifier, e.g. `"transport"`. */
|
|
15
|
+
slug: string;
|
|
16
|
+
}
|
|
17
|
+
/** A single tag definition from the livemap (`usetags.tags`). */
|
|
18
|
+
export interface LivemapTag {
|
|
19
|
+
/** Human-readable tag name, e.g. `"Bus"`. */
|
|
20
|
+
name: string;
|
|
21
|
+
/** URL-friendly identifier (matches `Pinpoint.tags` entries), e.g. `"bus"`. */
|
|
22
|
+
slug: string;
|
|
23
|
+
/** Slug of the {@link LivemapTagCategory} this tag belongs to, when grouped. */
|
|
24
|
+
category?: string;
|
|
25
|
+
/** Display colour as a hex string, when set, e.g. `"#27303a"`. */
|
|
26
|
+
color?: string;
|
|
27
|
+
/** Icon URL, or `null` when the tag has no icon. */
|
|
28
|
+
icon?: string | null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The livemap's resolved tag configuration: the tag definitions and the
|
|
32
|
+
* categories they can be grouped by. Both arrays are empty when the livemap has
|
|
33
|
+
* no tags configured.
|
|
34
|
+
*/
|
|
35
|
+
export interface LivemapTagsConfig {
|
|
36
|
+
/** All tag definitions declared on the livemap. */
|
|
37
|
+
tags: LivemapTag[];
|
|
38
|
+
/** Categories used to group tags, in author-defined order. */
|
|
39
|
+
categories: LivemapTagCategory[];
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/types/tags.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IACjC,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,8DAA8D;IAC9D,UAAU,EAAE,kBAAkB,EAAE,CAAC;CAClC"}
|
package/dist/src/utils/map.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const deltaToBounds: (coords?: {
|
|
|
13
13
|
latitude_delta: number;
|
|
14
14
|
longitude_delta: number;
|
|
15
15
|
} | null) => BoundingBox;
|
|
16
|
-
export declare const boundsToDelta: (bounds:
|
|
16
|
+
export declare const boundsToDelta: (bounds: BoundingBox) => {
|
|
17
17
|
center_latitude: number;
|
|
18
18
|
center_longitude: number;
|
|
19
19
|
latitude_delta: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/utils/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,aAAa,aAGzB,CAAC;AAIF,eAAO,MAAM,aAAa,GAAI,QAAQ,WAAW,gBA6BhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,GAAG,IAAI,gBAiBP,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/utils/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,aAAa,aAGzB,CAAC;AAIF,eAAO,MAAM,aAAa,GAAI,QAAQ,WAAW,gBA6BhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,GAAG,IAAI,gBAiBP,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,QAAQ,WAAW;;;;;CAwBhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,QAAQ,UAAU,gBA8BzD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wemap/core",
|
|
3
|
-
"version": "14.6.0
|
|
3
|
+
"version": "14.6.0",
|
|
4
4
|
"description": "Core configuration, livemap services and shared types for the Wemap SDK.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Wemap SAS",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@wemap/geo": "14.6.0
|
|
39
|
+
"@wemap/geo": "14.6.0",
|
|
40
40
|
"@types/geojson": "^7946.0.16"
|
|
41
41
|
}
|
|
42
42
|
}
|