ixmaps-gl 0.2.15 → 0.2.17
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 +13 -3
- package/ixmaps-gl.js +807 -227
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,6 +114,16 @@ ixmaps.map().theme("mytheme").show(); // also hide(), toggle(), remove(),
|
|
|
114
114
|
// replace(theme), markClass(n), unmarkClass(n)
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
Projection changes never need the project machinery: `map().setProjection("globe")` (or `"mercator"`)
|
|
118
|
+
swaps the MapLibre projection and rebuilds the projection-dependent layers — themes, data and the
|
|
119
|
+
current view are never touched (unlike `setProjectJSON`, which re-defines every theme to change
|
|
120
|
+
the projection and, without `"keepview"`, resets the view).
|
|
121
|
+
|
|
122
|
+
`CHART|USER` themes (a page's own `userdraw` chart function) render as live SVG in a pane over
|
|
123
|
+
the map, as flat renders them — vector-crisp at every zoom, labels as real text, following every
|
|
124
|
+
pan via transform-only updates (≈3ms for 8,000 charts). Picking/tooltips run on a transparent
|
|
125
|
+
deck layer at the same positions.
|
|
126
|
+
|
|
117
127
|
The historic global forms remain as compatibility wrappers and dispatch on arity: the canonical
|
|
118
128
|
theme-first `ixmaps.changeThemeStyle(themeId, "style:value", "set")` and `ixmaps.removeTheme(id)`
|
|
119
129
|
(htmlgui.js), the handle method `map().changeThemeStyle(theme, style, flag)`, and the older
|
|
@@ -233,7 +243,7 @@ of your own project files gl can render.
|
|
|
233
243
|
Load the engine from jsDelivr, pinned to a release tag (or `@main` for the latest commit):
|
|
234
244
|
|
|
235
245
|
```html
|
|
236
|
-
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.
|
|
246
|
+
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.17/ixmaps-gl.js"></script>
|
|
237
247
|
```
|
|
238
248
|
|
|
239
249
|
or from unpkg, the npm package [`ixmaps-gl`](https://www.npmjs.com/package/ixmaps-gl)
|
|
@@ -241,13 +251,13 @@ or from unpkg, the npm package [`ixmaps-gl`](https://www.npmjs.com/package/ixmap
|
|
|
241
251
|
browser script, which defines the global `ixmaps`):
|
|
242
252
|
|
|
243
253
|
```html
|
|
244
|
-
<script src="https://unpkg.com/ixmaps-gl@0.2.
|
|
254
|
+
<script src="https://unpkg.com/ixmaps-gl@0.2.17/ixmaps-gl.js"></script>
|
|
245
255
|
```
|
|
246
256
|
|
|
247
257
|
or use a local copy (`<script src="ixmaps-gl.js"></script>`). A minimal page:
|
|
248
258
|
|
|
249
259
|
```html
|
|
250
|
-
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.
|
|
260
|
+
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.17/ixmaps-gl.js"></script>
|
|
251
261
|
<div id="map_div" style="position:absolute;inset:0;"></div>
|
|
252
262
|
|
|
253
263
|
<script>
|