@macrostrat/cesium-martini 1.2.3 → 1.4.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/.babelrc CHANGED
@@ -1,8 +1,3 @@
1
1
  {
2
- "presets": ["@babel/preset-env", "@babel/preset-typescript"],
3
- "plugins": [
4
- "@babel/plugin-proposal-nullish-coalescing-operator",
5
- "@babel/plugin-proposal-optional-chaining",
6
- "@babel/plugin-proposal-class-properties"
7
- ]
2
+ "presets": ["@babel/preset-env", "@babel/preset-typescript"]
8
3
  }
package/.env.example ADDED
@@ -0,0 +1 @@
1
+ MAPBOX_API_TOKEN='<your_mapbox_api_token>'
package/.npmrc ADDED
@@ -0,0 +1 @@
1
+ package-lock=false
package/README.md CHANGED
@@ -33,12 +33,32 @@ npm install --save @macrostrat/cesium-martini
33
33
 
34
34
  ## Development
35
35
 
36
+ As of version `1.3.x`, `cesium-martini` development is tested with the Yarn package manager.
37
+ Your mileage with `npm` may vary.
38
+
39
+ ### Quick start
40
+
41
+ 1. Clone the repository
42
+ 2. Install dependencies with `yarn install`
43
+ 3. Build the package with `yarn run build`
44
+
36
45
  After cloning this repository, you can build the module (using Rollup) with
37
- `npm run build`, or build and watch for changes with `npm run watch`.
46
+ `yarn run build`, or build and watch for changes with `yarn run watch`.
47
+
48
+ ### Example applications
49
+
50
+ Several example applications are available in the [`examples/`](examples/) directory and runnable from the root project.
51
+ The main example is built with Vite and others are built with Webpack v5. As well as showing how to use this module,
52
+ these examples contain configuration for bundling Cesium in each packaging system.
38
53
 
39
54
  To run an example application, add `MAPBOX_API_TOKEN=<your-mapbox-token>` to a `.env` file.
40
- in the root of this repository. `npm run dev` bundles and runs the test
41
- application, which runs in the Webpack development server on `http://localhost:8080`.
55
+ in the root of this repository, and then start the appropriate example:
56
+
57
+ - `yarn run example` (Vite)
58
+ - `yarn run example:mapzen` (Vite + Mapzen)
59
+ - `yarn run example:webpack` (Webpack)
60
+ - `yarn run example:webpack-mapzen` (Webpack + Mapzen)
61
+ - `yarn run example:webpack-react` (Webpack + React)
42
62
 
43
63
  Contributions in the form of bug reports and pull requests are welcome.
44
64
  These can be to add functionality (e.g. optional normal-map generation) or for
@@ -97,7 +117,7 @@ of Cesium would provide some guidance here.
97
117
 
98
118
  ### Outstanding bugs and issues
99
119
 
100
- - [ ] High-resolution `@2x` tiles are notionally supported but not well-tested.
120
+ - [x] High-resolution `@2x` tiles are notionally supported but not well-tested.
101
121
  - [ ] There is no formal testing framework to catch regressions.
102
122
  - [ ] TypeScript types are discarded on compilation rather than checked properly.
103
123
 
@@ -123,6 +143,42 @@ Pull requests for any and all of these priorities are appreciated!
123
143
 
124
144
  ## Changelog
125
145
 
146
+ ### `[1.4.0]`: February 2025
147
+
148
+ - Merge [**PR #10**](https://github.com/davenquinn/cesium-martini/pull/10) from [*Stuart Attenborrow*](https://github.com/stuarta0) to allow loading of non-Mapbox terrain tiles
149
+ - Created Vite and Webpack examples of using the module with Mapzen Terrarium tiles
150
+ - Migrated Vite examples to Vite 5
151
+ - Upgraded `axios` dependency
152
+ - Remove submodule dependency for `@mapbox/martini` in favor of directly importing from [my fork](https://github.com/davenquinn/martini)
153
+ - Upgrade `yarn` to `4.6.0`
154
+
155
+ ### `[1.3.0]`: September 2023
156
+
157
+ - Add compilation to ESModules, which allows the package to be used with modern bundlers like [**Vite**](https://vitejs.dev). *Contributed by [@fc](https://github.com/fc).*
158
+ - Change latitude-based scaling factor for tile error to improve fidelity at high latitudes.
159
+ - Remove `regenerator-runtime` from web-worker code, targeting modern platforms.
160
+
161
+ #### Development environment
162
+
163
+ We reorganized the development environment and examples for a more modern overall design.
164
+
165
+ - Switched to `yarn` from `npm` as the default package manager
166
+ - Enabled Yarn Plug'n'Play for faster development
167
+ - Created a Vite example application
168
+ - Migrated Webpack examples to Webpack 5
169
+ - Moved all examples to the `examples/` directory as Yarn workspaces, enabling
170
+ separation of dependencies
171
+
172
+
173
+ ### `[1.2.0]`: November 2021
174
+
175
+ - Globe caps! (disable using the `fillPoles` option).
176
+ - Some fixes for efficiency
177
+ - Fixed small errors in tile occlusion code
178
+ - Added a `minZoom` configuration option to prevent excessive loading of low-resolution tiles
179
+ - Four (!) pull requests from [@stuarta0](https://github.com/stuarta0) to improve loading of non-Mapbox tilesets
180
+
181
+
126
182
  ### `[1.1.3]`: June 2021
127
183
 
128
184
  - Fix memory leak where `ArrayBuffer`s were retained due to console logging.
@@ -141,11 +197,3 @@ Pull requests for any and all of these priorities are appreciated!
141
197
  - More configurability with options like `detailScalar` and `minimumErrorLevel`.
142
198
  - Updated README and examples
143
199
  - Uses web workers for rapid tile generation off the main thread
144
-
145
- ### `[1.2.0]`: November 2020
146
-
147
- - Globe caps! (disable using the `fillPoles` option).
148
- - Some fixes for efficiency
149
- - Fixed small errors in tile occlusion code
150
- - Added a `minZoom` configuration option to prevent excessive loading of low-resolution tiles
151
- - Four (!) pull requests from [@stuarta0](https://github.com/stuarta0) to improve loading of non-Mapbox tilesets