@remaply/maps 0.0.0-stage → 0.3.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/LICENSE +202 -0
- package/NOTICE +8 -0
- package/README.md +280 -2
- package/dist/client.d.ts +31 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +208 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +62 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +65 -0
- package/dist/config.js.map +1 -0
- package/dist/directions.d.ts +68 -0
- package/dist/directions.d.ts.map +1 -0
- package/dist/directions.js +114 -0
- package/dist/directions.js.map +1 -0
- package/dist/errors.d.ts +26 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +85 -0
- package/dist/errors.js.map +1 -0
- package/dist/geo.d.ts +17 -0
- package/dist/geo.d.ts.map +1 -0
- package/dist/geo.js +43 -0
- package/dist/geo.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/map.d.ts +133 -0
- package/dist/map.d.ts.map +1 -0
- package/dist/map.js +369 -0
- package/dist/map.js.map +1 -0
- package/dist/routePreview.d.ts +84 -0
- package/dist/routePreview.d.ts.map +1 -0
- package/dist/routePreview.js +206 -0
- package/dist/routePreview.js.map +1 -0
- package/dist/search.d.ts +70 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +60 -0
- package/dist/search.js.map +1 -0
- package/dist/security.d.ts +20 -0
- package/dist/security.d.ts.map +1 -0
- package/dist/security.js +53 -0
- package/dist/security.js.map +1 -0
- package/dist/stepPreview.d.ts +127 -0
- package/dist/stepPreview.d.ts.map +1 -0
- package/dist/stepPreview.js +317 -0
- package/dist/stepPreview.js.map +1 -0
- package/dist/stepPreviewPanel.d.ts +41 -0
- package/dist/stepPreviewPanel.d.ts.map +1 -0
- package/dist/stepPreviewPanel.js +153 -0
- package/dist/stepPreviewPanel.js.map +1 -0
- package/dist/style.d.ts +45 -0
- package/dist/style.d.ts.map +1 -0
- package/dist/style.js +173 -0
- package/dist/style.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +5 -0
- package/dist/version.js.map +1 -0
- package/package.json +56 -4
package/dist/errors.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Copyright 2026 Remaply
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
/**
|
|
4
|
+
* An error from the Remaply API: `{"error": {"code": ..., "message": ...}}`.
|
|
5
|
+
*
|
|
6
|
+
* `code` is stable, for code to check (`scope_not_allowed`, `route_not_found`...). `message` is
|
|
7
|
+
* written for developers: show `userMessage`, or your own copy for the code, to users.
|
|
8
|
+
*/
|
|
9
|
+
export class RemaplyApiError extends Error {
|
|
10
|
+
constructor(
|
|
11
|
+
/** HTTP status; 0 when the SDK refused to send the request (`missing_api_key`, `secret_api_key`). */
|
|
12
|
+
status, code, message) {
|
|
13
|
+
super(message);
|
|
14
|
+
this.status = status;
|
|
15
|
+
this.code = code;
|
|
16
|
+
this.name = "RemaplyApiError";
|
|
17
|
+
}
|
|
18
|
+
/** Copy fit to show to a user. */
|
|
19
|
+
get userMessage() {
|
|
20
|
+
return apiKeyErrorMessage(this) ?? "Something went wrong. Please try again.";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/** Copy for the key errors every endpoint can return. Null for any other error. */
|
|
24
|
+
export function apiKeyErrorMessage(error) {
|
|
25
|
+
if (!(error instanceof RemaplyApiError))
|
|
26
|
+
return null;
|
|
27
|
+
switch (error.code) {
|
|
28
|
+
case "missing_api_key":
|
|
29
|
+
return "The Remaply API key is missing. Call configure({ apiKey }) first.";
|
|
30
|
+
case "secret_api_key":
|
|
31
|
+
return "A secret Remaply API key (rmp_sk_) cannot be used on a website. Use a publishable rmp_pk_ key.";
|
|
32
|
+
case "invalid_api_key":
|
|
33
|
+
return "The Remaply API key is not valid.";
|
|
34
|
+
case "api_key_restricted":
|
|
35
|
+
return "This website is not allowed to use the API key. Add its origin to the key in Remaply Console.";
|
|
36
|
+
default:
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function isAbortError(error) {
|
|
41
|
+
return error instanceof DOMException && (error.name === "AbortError" || error.name === "TimeoutError");
|
|
42
|
+
}
|
|
43
|
+
function genericMessage(error, fallback) {
|
|
44
|
+
if (error instanceof DOMException && error.name === "TimeoutError")
|
|
45
|
+
return "The request took too long. Check your connection and try again.";
|
|
46
|
+
if (error instanceof TypeError)
|
|
47
|
+
return "Could not reach Remaply. Check your connection and try again.";
|
|
48
|
+
return fallback;
|
|
49
|
+
}
|
|
50
|
+
/** Copy for a failed search. */
|
|
51
|
+
export function searchErrorMessage(error) {
|
|
52
|
+
if (error instanceof RemaplyApiError) {
|
|
53
|
+
if (error.code === "scope_not_allowed")
|
|
54
|
+
return "The API key has no search scope. Add it in Remaply Console.";
|
|
55
|
+
if (error.code === "search_unavailable")
|
|
56
|
+
return "Search is unavailable right now. Try again shortly.";
|
|
57
|
+
return apiKeyErrorMessage(error) ?? "Search failed. Please try again.";
|
|
58
|
+
}
|
|
59
|
+
return genericMessage(error, "Search failed. Please try again.");
|
|
60
|
+
}
|
|
61
|
+
/** Copy for a failed route request. */
|
|
62
|
+
export function directionsErrorMessage(error) {
|
|
63
|
+
if (error instanceof RemaplyApiError) {
|
|
64
|
+
switch (error.code) {
|
|
65
|
+
case "scope_not_allowed":
|
|
66
|
+
return "The API key has no routing scope. Add it in Remaply Console.";
|
|
67
|
+
case "route_not_found":
|
|
68
|
+
return "No route connects these places for this way of travelling.";
|
|
69
|
+
case "point_not_on_road":
|
|
70
|
+
return "A start or destination is too far from a road. Pick a point closer to one.";
|
|
71
|
+
case "route_too_long":
|
|
72
|
+
return "This route is too long for this way of travelling.";
|
|
73
|
+
case "routing_unavailable":
|
|
74
|
+
return "Directions are unavailable right now. Try again shortly.";
|
|
75
|
+
default:
|
|
76
|
+
return apiKeyErrorMessage(error) ?? "Could not get directions. Please try again.";
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return genericMessage(error, "Could not get directions. Please try again.");
|
|
80
|
+
}
|
|
81
|
+
/** True for a request cancelled through its AbortSignal: not an error to show. */
|
|
82
|
+
export function isCancelled(error) {
|
|
83
|
+
return isAbortError(error) && !(error instanceof DOMException && error.name === "TimeoutError");
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,sCAAsC;AAEtC;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAGxC;IACE,qGAAqG;IAC5F,MAAc,EACd,IAAY,EACrB,OAAe;QAEf,KAAK,CAAC,OAAO,CAAC,CAAC;QAJN,WAAM,GAAN,MAAM,CAAQ;QACd,SAAI,GAAJ,IAAI,CAAQ;QALL,SAAI,GAAG,iBAAiB,CAAC;IAS3C,CAAC;IAED,kCAAkC;IAClC,IAAI,WAAW;QACb,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,yCAAyC,CAAC;IAC/E,CAAC;CACF;AAED,mFAAmF;AACnF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,IAAI,CAAC,CAAC,KAAK,YAAY,eAAe,CAAC;QAAE,OAAO,IAAI,CAAC;IACrD,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,iBAAiB;YACpB,OAAO,mEAAmE,CAAC;QAC7E,KAAK,gBAAgB;YACnB,OAAO,gGAAgG,CAAC;QAC1G,KAAK,iBAAiB;YACpB,OAAO,mCAAmC,CAAC;QAC7C,KAAK,oBAAoB;YACvB,OAAO,+FAA+F,CAAC;QACzG;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,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H,CAAC;IACD,OAAO,cAAc,CAAC,KAAK,EAAE,6CAA6C,CAAC,CAAC;AAC9E,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,YAAY,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC;AAClG,CAAC"}
|
package/dist/geo.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** A point on Earth, as the Remaply API sends it (`{"lat": ..., "lon": ...}`). */
|
|
2
|
+
export interface LatLon {
|
|
3
|
+
lat: number;
|
|
4
|
+
lon: number;
|
|
5
|
+
}
|
|
6
|
+
/** West, south, east, north. East may be over 180 for a box across the antimeridian. */
|
|
7
|
+
export type Bounds = [west: number, south: number, east: number, north: number];
|
|
8
|
+
/** Great-circle distance in metres (haversine). */
|
|
9
|
+
export declare function distanceM(a: LatLon, b: LatLon): number;
|
|
10
|
+
/**
|
|
11
|
+
* Shift longitudes by 360° where a line crosses the antimeridian (Taveuni, in Fiji, straddles it),
|
|
12
|
+
* so -179.9 after 179.9 becomes 180.1. Otherwise the line goes the long way round the world.
|
|
13
|
+
*/
|
|
14
|
+
export declare function unwrapLongitudes(points: readonly LatLon[]): LatLon[];
|
|
15
|
+
/** Box around every line, narrow across the antimeridian. Null when there are no points. */
|
|
16
|
+
export declare function boundsOf(lines: ReadonlyArray<readonly LatLon[]>): Bounds | null;
|
|
17
|
+
//# sourceMappingURL=geo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo.d.ts","sourceRoot":"","sources":["../src/geo.ts"],"names":[],"mappings":"AAGA,kFAAkF;AAClF,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wFAAwF;AACxF,MAAM,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAKhF,mDAAmD;AACnD,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAKtD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAUpE;AAED,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAW/E"}
|
package/dist/geo.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2026 Remaply
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
const EARTH_RADIUS_M = 6371000;
|
|
4
|
+
const RAD = Math.PI / 180;
|
|
5
|
+
/** Great-circle distance in metres (haversine). */
|
|
6
|
+
export function distanceM(a, b) {
|
|
7
|
+
const dLat = (b.lat - a.lat) * RAD;
|
|
8
|
+
const dLon = (b.lon - a.lon) * RAD;
|
|
9
|
+
const h = Math.sin(dLat / 2) ** 2 + Math.cos(a.lat * RAD) * Math.cos(b.lat * RAD) * Math.sin(dLon / 2) ** 2;
|
|
10
|
+
return 2 * EARTH_RADIUS_M * Math.asin(Math.sqrt(Math.min(1, Math.max(0, h))));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Shift longitudes by 360° where a line crosses the antimeridian (Taveuni, in Fiji, straddles it),
|
|
14
|
+
* so -179.9 after 179.9 becomes 180.1. Otherwise the line goes the long way round the world.
|
|
15
|
+
*/
|
|
16
|
+
export function unwrapLongitudes(points) {
|
|
17
|
+
let offset = 0;
|
|
18
|
+
return points.map((point, index) => {
|
|
19
|
+
if (index > 0) {
|
|
20
|
+
const previous = points[index - 1].lon;
|
|
21
|
+
if (point.lon - previous > 180)
|
|
22
|
+
offset -= 360;
|
|
23
|
+
else if (previous - point.lon > 180)
|
|
24
|
+
offset += 360;
|
|
25
|
+
}
|
|
26
|
+
return offset === 0 ? point : { lat: point.lat, lon: point.lon + offset };
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/** Box around every line, narrow across the antimeridian. Null when there are no points. */
|
|
30
|
+
export function boundsOf(lines) {
|
|
31
|
+
const points = lines.flatMap((line) => unwrapLongitudes(line));
|
|
32
|
+
if (points.length === 0)
|
|
33
|
+
return null;
|
|
34
|
+
let west = Infinity, south = Infinity, east = -Infinity, north = -Infinity;
|
|
35
|
+
for (const p of points) {
|
|
36
|
+
west = Math.min(west, p.lon);
|
|
37
|
+
east = Math.max(east, p.lon);
|
|
38
|
+
south = Math.min(south, p.lat);
|
|
39
|
+
north = Math.max(north, p.lat);
|
|
40
|
+
}
|
|
41
|
+
return [west, south, east, north];
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=geo.js.map
|
package/dist/geo.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo.js","sourceRoot":"","sources":["../src/geo.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,sCAAsC;AAWtC,MAAM,cAAc,GAAG,OAAS,CAAC;AACjC,MAAM,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;AAE1B,mDAAmD;AACnD,MAAM,UAAU,SAAS,CAAC,CAAS,EAAE,CAAS;IAC5C,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IACnC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IACnC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG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M,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,IAAI,IAAI,GAAG,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,GAAG,CAAC,QAAQ,EAAE,KAAK,GAAG,CAAC,QAAQ,CAAC;IAC3E,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QAC7B,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/B,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AACpC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remaply Maps for the web.
|
|
3
|
+
*
|
|
4
|
+
* ```ts
|
|
5
|
+
* import "maplibre-gl/dist/maplibre-gl.css";
|
|
6
|
+
* import { configure, RemaplyMap, search, route, routePoints } from "@remaply/maps";
|
|
7
|
+
*
|
|
8
|
+
* configure({ apiKey: "rmp_pk_..." });
|
|
9
|
+
* const map = new RemaplyMap({ container: "map" });
|
|
10
|
+
* const [place] = await search("CWM Hospital", { near: map.getCenter() });
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export { configure, isConfigured, version, DEFAULT_API_BASE_URL, BUILDING_MIN_ZOOM, ADDRESS_NUMBER_MIN_ZOOM, type RemaplyOptions, } from "./config.js";
|
|
14
|
+
export { RemaplyApiError, apiKeyErrorMessage, searchErrorMessage, directionsErrorMessage, isCancelled, } from "./errors.js";
|
|
15
|
+
export { distanceM, unwrapLongitudes, boundsOf, type LatLon, type Bounds } from "./geo.js";
|
|
16
|
+
export { search, nearby, formatAddress, formatCategory, NEARBY_CATEGORIES, NEARBY_RADIUS_M, NEARBY_LIMIT, type Place, type Address, type SearchOptions, type NearbyOptions, type NearbyCategory, } from "./search.js";
|
|
17
|
+
export { route, routePoints, mainRoad, maneuverOf, formatDistance, formatDuration, TRAVEL_PROFILES, MAX_ROUTE_POINTS, MAX_ALTERNATIVES, type Route, type RouteLeg, type RouteStep, type RouteOptions, type TravelProfile, type Maneuver, } from "./directions.js";
|
|
18
|
+
export { loadStyle, MapStyleError, REMAPLY_SOURCE } from "./style.js";
|
|
19
|
+
export { RoutePreview, routePreviewGeoJson, ROUTE_COLORS, ROUTE_PREVIEW_LAYERS, type RoutePreviewData } from "./routePreview.js";
|
|
20
|
+
export { StepPreview, previewSteps, bearingAlong, bearingBetween, STEP_PREVIEW_ZOOM, STEP_PREVIEW_PITCH, STEP_PREVIEW_LAYER, type PreviewStep, type StepPreviewState, type StepPreviewOptions, } from "./stepPreview.js";
|
|
21
|
+
export { maneuverIconSvg, STEP_PREVIEW_COLORS, type StepPreviewTheme } from "./stepPreviewPanel.js";
|
|
22
|
+
export { RemaplyMap, transformRequest, mapErrorMessage, DEFAULT_CENTER, DEFAULT_ZOOM, type RemaplyMapOptions, type MapMarker, type MapRoute, type RouteEnd, } from "./map.js";
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,SAAS,EACT,YAAY,EACZ,OAAO,EACP,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB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package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright 2026 Remaply
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
/**
|
|
4
|
+
* Remaply Maps for the web.
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import "maplibre-gl/dist/maplibre-gl.css";
|
|
8
|
+
* import { configure, RemaplyMap, search, route, routePoints } from "@remaply/maps";
|
|
9
|
+
*
|
|
10
|
+
* configure({ apiKey: "rmp_pk_..." });
|
|
11
|
+
* const map = new RemaplyMap({ container: "map" });
|
|
12
|
+
* const [place] = await search("CWM Hospital", { near: map.getCenter() });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export { configure, isConfigured, version, DEFAULT_API_BASE_URL, BUILDING_MIN_ZOOM, ADDRESS_NUMBER_MIN_ZOOM, } from "./config.js";
|
|
16
|
+
export { RemaplyApiError, apiKeyErrorMessage, searchErrorMessage, directionsErrorMessage, isCancelled, } from "./errors.js";
|
|
17
|
+
export { distanceM, unwrapLongitudes, boundsOf } from "./geo.js";
|
|
18
|
+
export { search, nearby, formatAddress, formatCategory, NEARBY_CATEGORIES, NEARBY_RADIUS_M, NEARBY_LIMIT, } from "./search.js";
|
|
19
|
+
export { route, routePoints, mainRoad, maneuverOf, formatDistance, formatDuration, TRAVEL_PROFILES, MAX_ROUTE_POINTS, MAX_ALTERNATIVES, } from "./directions.js";
|
|
20
|
+
export { loadStyle, MapStyleError, REMAPLY_SOURCE } from "./style.js";
|
|
21
|
+
export { RoutePreview, routePreviewGeoJson, ROUTE_COLORS, ROUTE_PREVIEW_LAYERS } from "./routePreview.js";
|
|
22
|
+
export { StepPreview, previewSteps, bearingAlong, bearingBetween, STEP_PREVIEW_ZOOM, STEP_PREVIEW_PITCH, STEP_PREVIEW_LAYER, } from "./stepPreview.js";
|
|
23
|
+
export { maneuverIconSvg, STEP_PREVIEW_COLORS } from "./stepPreviewPanel.js";
|
|
24
|
+
export { RemaplyMap, transformRequest, mapErrorMessage, DEFAULT_CENTER, DEFAULT_ZOOM, } from "./map.js";
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,sCAAsC;AAEtC;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,SAAS,EACT,YAAY,EACZ,OAAO,EACP,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,GAExB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAC3F,OAAO,EACL,MAAM,EACN,MAAM,EACN,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,GAMb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,gBAAgB,GAOjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,oBAAoB,EAAyB,MAAM,mBAAmB,CAAC;AACjI,OAAO,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GAInB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAyB,MAAM,uBAAuB,CAAC;AACpG,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,YAAY,GAKb,MAAM,UAAU,CAAC"}
|
package/dist/map.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { Map as MaplibreMap, MapOptions, RequestParameters, ResourceType } from "maplibre-gl";
|
|
2
|
+
import { type Bounds, type LatLon } from "./geo.js";
|
|
3
|
+
import { type MapRoute, type RouteEnd } from "./routePreview.js";
|
|
4
|
+
import { StepPreview, type StepPreviewOptions } from "./stepPreview.js";
|
|
5
|
+
import type { Route } from "./directions.js";
|
|
6
|
+
/** Where the map opens before anything else is known: Suva, Fiji, at the zoom buildings show from. */
|
|
7
|
+
export declare const DEFAULT_CENTER: LatLon;
|
|
8
|
+
export declare const DEFAULT_ZOOM = 15;
|
|
9
|
+
/** A place on the map. */
|
|
10
|
+
export interface MapMarker {
|
|
11
|
+
id: string;
|
|
12
|
+
location: LatLon;
|
|
13
|
+
/** Shown under the pin. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Drawn in red, in front: the selected place, the destination. */
|
|
16
|
+
active?: boolean;
|
|
17
|
+
/** `pin` (default); `origin`, a ring for the start of a route; `stop`, a small ring for a stop. */
|
|
18
|
+
variant?: "pin" | "origin" | "stop";
|
|
19
|
+
}
|
|
20
|
+
export type { MapRoute, RouteEnd } from "./routePreview.js";
|
|
21
|
+
export interface RemaplyMapOptions {
|
|
22
|
+
/** The element (or its id) the map fills. Give it a size. */
|
|
23
|
+
container: HTMLElement | string;
|
|
24
|
+
/** Default Suva, Fiji. */
|
|
25
|
+
center?: LatLon;
|
|
26
|
+
/** Default 15. */
|
|
27
|
+
zoom?: number;
|
|
28
|
+
bearing?: number;
|
|
29
|
+
pitch?: number;
|
|
30
|
+
/** A button that shows the user's position (asks for location permission when pressed). Default false. */
|
|
31
|
+
showUserLocation?: boolean;
|
|
32
|
+
/** Zoom buttons. Default true. */
|
|
33
|
+
showZoomControls?: boolean;
|
|
34
|
+
markers?: readonly MapMarker[];
|
|
35
|
+
routes?: readonly MapRoute[];
|
|
36
|
+
/** A marker was clicked. */
|
|
37
|
+
onMarkerClick?: (marker: MapMarker) => void;
|
|
38
|
+
/** The map was clicked somewhere other than a marker. */
|
|
39
|
+
onMapClick?: (location: LatLon) => void;
|
|
40
|
+
/**
|
|
41
|
+
* The map style could not load. The map shows `message` itself; use this to report or retry.
|
|
42
|
+
* Not called for a cancelled load.
|
|
43
|
+
*/
|
|
44
|
+
onError?: (message: string, error: unknown) => void;
|
|
45
|
+
/**
|
|
46
|
+
* More MapLibre options (`maxZoom`, `hash`, `cooperativeGestures`...). The style, the container and
|
|
47
|
+
* the attribution are the SDK's: the data licences require the attribution to stay visible.
|
|
48
|
+
*/
|
|
49
|
+
mapOptions?: Omit<Partial<MapOptions>, "container" | "style" | "attributionControl" | "center" | "zoom">;
|
|
50
|
+
/** How `previewSteps()` steps through a route: its panel, camera and `onChange`. */
|
|
51
|
+
stepPreview?: StepPreviewOptions;
|
|
52
|
+
}
|
|
53
|
+
/** Shown when MapLibre cannot start its worker (see "Bundlers" in the README). */
|
|
54
|
+
export declare const WORKER_ERROR_MESSAGE: string;
|
|
55
|
+
/**
|
|
56
|
+
* A MapLibre `transformRequest` that adds the API key to the map's requests for the Remaply API's
|
|
57
|
+
* origin (tiles, sprite, fonts), and only those. Use it when you create your own MapLibre map with
|
|
58
|
+
* {@link loadStyle}; `RemaplyMap` already does.
|
|
59
|
+
*/
|
|
60
|
+
export declare function transformRequest(url: string, _resourceType?: ResourceType): RequestParameters;
|
|
61
|
+
/** Copy for a map style that cannot load. */
|
|
62
|
+
export declare function mapErrorMessage(error: unknown): string;
|
|
63
|
+
/**
|
|
64
|
+
* The Remaply map: the Remaply style and tiles on MapLibre GL JS, with markers and routes.
|
|
65
|
+
*
|
|
66
|
+
* ```ts
|
|
67
|
+
* configure({ apiKey: "rmp_pk_..." });
|
|
68
|
+
* const map = new RemaplyMap({ container: "map", showUserLocation: true });
|
|
69
|
+
* map.setMarkers([{ id: "cwm", location: { lat: -18.1351, lon: 178.4351 }, label: "CWM Hospital" }]);
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* `map.maplibre` is the MapLibre map underneath, for anything the SDK does not cover. Call
|
|
73
|
+
* `remove()` when the map goes away.
|
|
74
|
+
*/
|
|
75
|
+
export declare class RemaplyMap {
|
|
76
|
+
/** The MapLibre map. Layers you add to it are gone after `reloadStyle()`: add them again on `style.load`. */
|
|
77
|
+
readonly maplibre: MaplibreMap;
|
|
78
|
+
/** Resolves once the Remaply style has loaded; rejects if it cannot load. */
|
|
79
|
+
readonly ready: Promise<void>;
|
|
80
|
+
private markers;
|
|
81
|
+
private routes;
|
|
82
|
+
private readonly options;
|
|
83
|
+
private readonly container;
|
|
84
|
+
private errorBox;
|
|
85
|
+
private loadController;
|
|
86
|
+
private labelFont;
|
|
87
|
+
private resolveReady;
|
|
88
|
+
private rejectReady;
|
|
89
|
+
private removed;
|
|
90
|
+
private readonly preview;
|
|
91
|
+
private ends;
|
|
92
|
+
/**
|
|
93
|
+
* Stepping through a route's turns, as the apps' route planner Preview: `next()`, `back()`,
|
|
94
|
+
* `goTo()`, `exit()`, `state`. Start it with `previewSteps(route)`.
|
|
95
|
+
*/
|
|
96
|
+
readonly stepPreview: StepPreview;
|
|
97
|
+
constructor(options: RemaplyMapOptions);
|
|
98
|
+
/** Load the style again, e.g. after a failure or after `configure()` changed the key or style. */
|
|
99
|
+
reloadStyle(): Promise<void>;
|
|
100
|
+
/** Replace the markers. */
|
|
101
|
+
setMarkers(markers: readonly MapMarker[]): void;
|
|
102
|
+
/**
|
|
103
|
+
* Replace the routes: the active one blue, the others grey behind it. Draw a route from
|
|
104
|
+
* `route()` with `{ id, points: routePoints(r), active }`.
|
|
105
|
+
*/
|
|
106
|
+
setRoutes(routes: readonly MapRoute[]): void;
|
|
107
|
+
/** The route's start and destination, labelled "From: …" and "To: …" (null removes one). */
|
|
108
|
+
setRouteEnds(from: RouteEnd | null, to: RouteEnd | null): void;
|
|
109
|
+
/**
|
|
110
|
+
* Step through [route]'s turns (from `route()`), starting at step [at]: the camera goes to each
|
|
111
|
+
* turn, tilted and facing the way you will travel, with a panel to go Back, Next or exit. A
|
|
112
|
+
* preview only, not navigation. False for a route without steps. Draw the route itself with
|
|
113
|
+
* `setRoutes()`.
|
|
114
|
+
*/
|
|
115
|
+
previewSteps(route: Pick<Route, "geometry" | "legs">, at?: number): boolean;
|
|
116
|
+
/** Fly to a point, at `zoom` or the current zoom. */
|
|
117
|
+
flyTo(location: LatLon, zoom?: number): void;
|
|
118
|
+
/** Fit a box, or every route and marker when none is given, on screen. */
|
|
119
|
+
fitBounds(bounds?: Bounds, padding?: number): void;
|
|
120
|
+
/** The map's centre. */
|
|
121
|
+
getCenter(): LatLon;
|
|
122
|
+
/** Remove the map and free its WebGL context. */
|
|
123
|
+
remove(): void;
|
|
124
|
+
private addOverlays;
|
|
125
|
+
private markerAt;
|
|
126
|
+
private handleClick;
|
|
127
|
+
private showError;
|
|
128
|
+
}
|
|
129
|
+
/** Exported for tests. */
|
|
130
|
+
export declare function markersGeoJson(markers: readonly MapMarker[]): GeoJSON.FeatureCollection<GeoJSON.Point>;
|
|
131
|
+
/** Exported for tests. Longitudes unwrapped, so a route across the antimeridian is not drawn round the world. */
|
|
132
|
+
export declare function routesGeoJson(routes: readonly MapRoute[]): GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
133
|
+
//# sourceMappingURL=map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../src/map.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAIV,GAAG,IAAI,WAAW,EAGlB,UAAU,EACV,iBAAiB,EACjB,YAAY,EAEb,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAY,KAAK,MAAM,EAAE,KAAK,MAAM,EAAoB,MAAM,UAAU,CAAC;AAGhF,OAAO,EAAgB,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,WA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