maplibre-gl-basemap-control 0.7.0 → 0.9.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/README.md +4 -2
- package/dist/{BasemapControl-qDrnfFqz.cjs → BasemapControl-Cu8agB-D.cjs} +393 -136
- package/dist/BasemapControl-Cu8agB-D.cjs.map +1 -0
- package/dist/{BasemapControl-CfFepxWc.js → BasemapControl-DjBg1WYY.js} +393 -136
- package/dist/BasemapControl-DjBg1WYY.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/maplibre-gl-basemap-control.css +107 -8
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/types/lib/core/BasemapControl.d.ts +12 -2
- package/dist/types/lib/core/BasemapControl.d.ts.map +1 -1
- package/dist/types/lib/core/catalog.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/BasemapControl-CfFepxWc.js.map +0 -1
- package/dist/BasemapControl-qDrnfFqz.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -141,8 +141,10 @@ Mapbox styles include Streets, Outdoors, Light, Dark, Satellite, Satellite Stree
|
|
|
141
141
|
and Navigation Night.
|
|
142
142
|
|
|
143
143
|
MapTiler and Amazon Location styles require API keys. Mapbox styles require an access token. Users
|
|
144
|
-
can enter keys and tokens in the
|
|
145
|
-
can provide them when creating the control.
|
|
144
|
+
can enter keys and tokens in the dedicated API keys view, opened from the key button in the panel
|
|
145
|
+
header, or you can provide them when creating the control. When a basemap is selected before its key
|
|
146
|
+
is set, the control surfaces the error and the matching credential field inline, before any
|
|
147
|
+
destructive style change, so the missing key can be entered and the basemap retried with Enter.
|
|
146
148
|
|
|
147
149
|
```typescript
|
|
148
150
|
const control = new BasemapControl({
|