@tomtom-org/maps-sdk-plugin-flyover 0.0.4 → 0.0.6

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.txt CHANGED
@@ -14,7 +14,7 @@ You may not use the SDK or accept this Agreement if you are barred from receivin
14
14
 
15
15
  3.1. You agree to use the SDK only for purposes permitted by (a) this Agreement and (b) any applicable law, regulation or generally accepted practice or guideline in the relevant jurisdictions (including any laws regarding the export of data or software to and from the United States or other relevant countries).
16
16
 
17
- 3.2. Other than as permitted by applicable legislation, you are prohibited from copying (except for backup purposes), modifying, adapting, (re)distributing, renting, lending, publicly presenting, decompiling, reverse engineering, disassembling or creating derivative works of the SDK or any part of it. Notwithstanding the foregoing, you may inspect the SDK as distributed to you, including any source code embedded in its source maps, solely for the purpose of debugging your Permitted Application, provided that it is not shared or redistributed. The readability of the SDK’s source code in its distribution does not constitute “Open-Source” licensing and grants you no rights under any Open Source Initiative (OSI) approved license, nor shall it be construed as a grant of rights to modify, fork or redistribute the SDK beyond those expressly granted in Clause 1 and this Clause 3.2.
17
+ 3.2. Except as permitted by applicable law or this Clause 3.2, you may not copy (except for backup purposes), modify, adapt, distribute, rent, lend, publicly present, decompile, reverse engineer, disassemble or create derivative works of the SDK. Solely for your Permitted Applications and subject to Clauses 3.3 to 3.5, you may: (a) inspect the SDK, including source code in its source maps, for debugging; (b) copy the SDK as reasonably necessary to develop, build, test and deploy them, including in internal repositories, mirrors and offline build environments used only by you, your Affiliates and your contractors; (c) modify the SDK to fix errors or security vulnerabilities, to maintain compatibility, or to prepare a Contribution under Clause 11.5, but you may not alter, circumvent or disable any functionality for authentication, metering, billing, the notices in Clause 5.2 or the data collection in Clause 4; and (d) distribute the SDK only as a bundled part of a Permitted Application, and not on a standalone basis or as a library. Modified versions remain part of the SDK, and TomTom need not support them. On termination, you must delete all copies held under (b), except copies already distributed under (d). The readability of the SDK's source code does not make it open source and grants no rights beyond those in Clause 1 and this Clause 3.2.
18
18
 
19
19
  3.3. You may not use the SDK in connection with any illegal, fraudulent, dishonest or unethical activity or behaviour, and in particular not to create or develop, or help others create or develop, a product, service or library that competes, directly or indirectly, with the SDK or the TomTom APIs.
20
20
 
@@ -22,7 +22,7 @@ You may not use the SDK or accept this Agreement if you are barred from receivin
22
22
 
23
23
  3.5. The SDK may include data or software that TomTom licenses from third parties, including open-source software. Such components are made available to you under the terms and conditions of their applicable licenses, and you shall comply with all requirements and restrictions that those third parties may require TomTom to impose on you (as may be updated and amended by TomTom from time to time). It is your responsibility to check, review and comply with those terms as they apply to the SDK licensed to you under this Agreement. The applicable third party and open-source notices are set out in the accompanying THIRD_PARTY.txt file. In the event of a conflict between this Agreement and an open-source license governing a specific dependency, that open-source license shall prevail solely with respect to that dependency.
24
24
 
25
- 4. PRIVACY: In order to improve the TomTom Developer Portal and the SDK, TomTom may collect certain usage related information from the software, including but not limited to general SDK and product identifiers, version numbers, and information on which tools and/or services in the SDK are used and how you use them. In addition, TomTom may collect your unique identifier and associated IP address for legitimate business reasons (such as, without limitation, the processing of invoices). This data is retained for a maximum period of 120 days and is maintained in accordance with our Privacy Policy.
25
+ 4. PRIVACY: In order to improve the TomTom Developer Portal and the SDK, TomTom may collect certain usage related information from the software, including but not limited to general SDK and product identifiers, version numbers, and information on which tools and/or services in the SDK are used and how you use them. In addition, TomTom may collect your unique identifier and associated IP address for legitimate business reasons (such as, without limitation, the processing of invoices). This data is retained for a maximum period of 120 days and is maintained in accordance with our Privacy Policy (https://www.tomtom.com/privacy/).
26
26
 
27
27
  5. INTELLECTUAL PROPERTY RIGHTS AND COPYRIGHT NOTICES:
28
28
 
package/README.md CHANGED
@@ -1,11 +1,20 @@
1
- # @tomtom-org/maps-sdk-plugin-flyover
1
+ # Flyover Plugin
2
2
 
3
- A camera that flies a route on a [TomTom Maps SDK for JavaScript](https://docs.tomtom.com/maps-sdk-js/)
4
- map: it follows the line, aims at the junctions ahead, frames them, keeps clear of the terrain it
5
- crosses, and parks the followed position — marked with an arrow — where you want it on screen.
3
+ This plugin adds a camera that flies a route on a [TomTom Maps SDK for JavaScript](https://docs.tomtom.com/maps-sdk-js/introduction/overview)
4
+ map. It follows the line, aims at the junctions ahead and frames them. It keeps clear of the terrain
5
+ it crosses, and it parks the followed position, marked with an arrow, where you want it on screen.
6
+
7
+ ## Docs & examples
8
+
9
+ - Developer guide: https://docs.tomtom.com/maps-sdk-js/guides/plugins/flyover
10
+ - Example: https://docs.tomtom.com/maps-sdk-js/examples/route-flyover-playground
11
+
12
+ ## Quickstart
13
+
14
+ This plugin declares `@tomtom-org/maps-sdk` and `maplibre-gl` as peer dependencies and bundles neither, so install both in your project too.
6
15
 
7
16
  ```bash
8
- npm install @tomtom-org/maps-sdk @tomtom-org/maps-sdk-plugin-flyover
17
+ npm install @tomtom-org/maps-sdk maplibre-gl @tomtom-org/maps-sdk-plugin-flyover
9
18
  ```
10
19
 
11
20
  ```javascript
@@ -23,24 +32,22 @@ const flyover = new RouteFlyover(map, {
23
32
  flyover.start();
24
33
  ```
25
34
 
26
- The route is the only geometry it needs — no camera keyframes to author, and no animation to
27
- re-time when the route changes. The flight loops: it wraps at the destination and never lands.
35
+ ## Features
28
36
 
29
- - **Aim** — at the next guidance instruction, a fixed distance down the road, or a number of the
37
+ The route is the only geometry it needs. There are no camera keyframes to author and no animation
38
+ to re-time when the route changes. The flight loops. It wraps at the destination and never lands.
39
+
40
+ - **Aim** — at the next guidance instruction, a fixed distance down the road or a number of the
30
41
  route's own vertices.
31
- - **Framing** — the zoom that fits the next junctions, one tied to the speed, or a fixed one.
32
- - **Anchor** — where the followed position sits in the view; absent one, it slides down with the pitch.
33
- - **Marker** — an arrow on the followed position, facing the road; restyle it, swap in your own
34
- image, or hide it.
42
+ - **Framing** — the zoom that fits the next junctions, one tied to the speed or a fixed one.
43
+ - **Anchor** — where the followed position sits in the view. If you don't set one, it slides down with the pitch.
44
+ - **Marker** — an arrow on the followed position, facing the road. You can restyle it, swap in your
45
+ own image or hide it.
35
46
  - **Terrain clearance** — the camera pulls back where a ridge would come between it and the road,
36
47
  so a mountain route stays a flight.
37
48
  - **Smooth by default** — every value the camera changes moves on a critically damped spring, the
38
49
  same at any frame rate.
39
50
 
40
- Full documentation: **[Fly-over plugin guide](https://docs.tomtom.com/maps-sdk-js/guides/plugins/flyover)**.
41
-
42
- `@tomtom-org/maps-sdk` and `maplibre-gl` are peer dependencies; this package bundles neither.
43
-
44
51
  ## License
45
52
 
46
53
  See [LICENSE.txt](./LICENSE.txt).
package/THIRD_PARTY.txt CHANGED
@@ -168,7 +168,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
168
168
  ---
169
169
 
170
170
  Name: maplibre-gl
171
- Version: 6.12.0
171
+ Version: 6.13.0
172
172
  License: BSD-3-Clause
173
173
  Bundled: false (peer dependency)
174
174
  Description: BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
@@ -161,7 +161,7 @@ your application bundles them. The licenses below apply to those copies, and eac
161
161
  these components may in turn install its own dependencies under their own licenses.
162
162
 
163
163
  Name: maplibre-gl
164
- Version: 6.12.0
164
+ Version: 6.13.0
165
165
  License: BSD-3-Clause
166
166
  Bundled: false (peer dependency)
167
167
  Description: BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
@@ -59,7 +59,7 @@
59
59
  },
60
60
  {
61
61
  "name": "maplibre-gl",
62
- "version": "6.12.0",
62
+ "version": "6.13.0",
63
63
  "license": "BSD-3-Clause",
64
64
  "bundled": false,
65
65
  "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tomtom-org/maps-sdk-plugin-flyover",
3
3
  "author": "TomTom International B.V.",
4
4
  "license": "See in LICENSE.txt",
5
- "version": "0.0.4",
5
+ "version": "0.0.6",
6
6
  "type": "module",
7
7
  "description": "A camera that flies a route on a TomTomMap: it follows the line, aims at the junctions ahead, frames them, clears the terrain it crosses, and parks the followed position where you want it on screen",
8
8
  "types": "dist/index.d.ts",
@@ -11,19 +11,19 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@tomtom-org/maps-sdk": ">=0.64.0 <1.0.0 || >=1.0.0-rc.0 <1.0.0",
14
- "maplibre-gl": "^6.12.0"
14
+ "maplibre-gl": "^6.13.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@tsconfig/recommended": "^1.0.13",
18
18
  "@types/geojson": "^7946.0.16",
19
19
  "@types/node": "^26.6.4",
20
- "@vitest/coverage-v8": "^4.1.11",
21
- "jsdom": "^29.1.1",
22
- "rolldown": "^1.2.12",
20
+ "@vitest/coverage-v8": "^5.0.3",
21
+ "jsdom": "^30.1.2",
22
+ "rolldown": "^1.2.13",
23
23
  "typescript": "^6.0.3",
24
- "vite": "^8.3.2",
25
- "vitest": "^4.1.11",
26
- "@tomtom-org/maps-sdk": "1.0.0-rc.0"
24
+ "vite": "8.3.3",
25
+ "vitest": "^5.0.3",
26
+ "@tomtom-org/maps-sdk": "1.0.0-rc.2"
27
27
  },
28
28
  "files": [
29
29
  "dist",