ixmaps-gl 0.2.10 → 0.2.14
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 +5 -4
- package/ixmaps-gl.js +824 -164
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,7 +86,8 @@ circle/square/diamond/triangle. See the top-of-file comment in
|
|
|
86
86
|
A page's `.require(url)` scripts (page code, e.g. a user chart function) load in order before the
|
|
87
87
|
layers are built. `ixmaps.map()` is the map handle as in flat — its calls wait until the map is ready —
|
|
88
88
|
with `add(theme, flags)` / `replace` / `replaceTheme` / `remove`, `changeThemeStyle` for any style key,
|
|
89
|
-
`getZoom()` (flat's zoom), `resize()`, `
|
|
89
|
+
`getZoom()` (flat's zoom), `resize()`, `attribution(text)` (the page's attribution, bottom left on the map as in flat, in the style of the basemap credit and on its line — also
|
|
90
|
+
`.attribution()` on the builder, the `attribution` map option and `ixmaps.setAttribution(text)`; the basemap's credit stays bottom right), `setBasemapOpacity` and `setMapType(id)` (also `setMapTypeId`, `mapType`: a basemap name reading dark/black/night/matter loads CARTO Dark Matter, any other name CARTO Positron, a color a plain background — the same rule the `mapType` option follows at start); the page's `htmlgui_onNewTheme(id)` and
|
|
90
91
|
`htmlgui_onZoomAndPan()` (also once on load) are called (as in flat, a theme swapped in with `replace` comes last
|
|
91
92
|
in the legend, while FEATURE and CHOROPLETH shapes always draw under the charts), and `map`, `getZoom` and flat's
|
|
92
93
|
`formatValue` exist as globals. `.data({name})` without a URL waits for data of that name: from
|
|
@@ -207,7 +208,7 @@ of your own project files gl can render.
|
|
|
207
208
|
Load the engine from jsDelivr, pinned to a release tag (or `@main` for the latest commit):
|
|
208
209
|
|
|
209
210
|
```html
|
|
210
|
-
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.
|
|
211
|
+
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.14/ixmaps-gl.js"></script>
|
|
211
212
|
```
|
|
212
213
|
|
|
213
214
|
or from unpkg, the npm package [`ixmaps-gl`](https://www.npmjs.com/package/ixmaps-gl)
|
|
@@ -215,13 +216,13 @@ or from unpkg, the npm package [`ixmaps-gl`](https://www.npmjs.com/package/ixmap
|
|
|
215
216
|
browser script, which defines the global `ixmaps`):
|
|
216
217
|
|
|
217
218
|
```html
|
|
218
|
-
<script src="https://unpkg.com/ixmaps-gl@0.2.
|
|
219
|
+
<script src="https://unpkg.com/ixmaps-gl@0.2.14/ixmaps-gl.js"></script>
|
|
219
220
|
```
|
|
220
221
|
|
|
221
222
|
or use a local copy (`<script src="ixmaps-gl.js"></script>`). A minimal page:
|
|
222
223
|
|
|
223
224
|
```html
|
|
224
|
-
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.
|
|
225
|
+
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.14/ixmaps-gl.js"></script>
|
|
225
226
|
<div id="map_div" style="position:absolute;inset:0;"></div>
|
|
226
227
|
|
|
227
228
|
<script>
|