maplibre-gl-basemap-control 0.14.3 → 0.14.4
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/dist/{BasemapControl-nc1awj6S.cjs → BasemapControl-CD6PSvCv.cjs} +5 -3
- package/dist/{BasemapControl-nc1awj6S.cjs.map → BasemapControl-CD6PSvCv.cjs.map} +1 -1
- package/dist/{BasemapControl-CSw9YZ4S.js → BasemapControl-CtxRT9iH.js} +5 -3
- package/dist/{BasemapControl-CSw9YZ4S.js.map → BasemapControl-CtxRT9iH.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/types/lib/core/BasemapControl.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3155,6 +3155,7 @@ class BasemapControl {
|
|
|
3155
3155
|
row.appendChild(
|
|
3156
3156
|
this._createSelect(
|
|
3157
3157
|
"Provider",
|
|
3158
|
+
"All providers",
|
|
3158
3159
|
this._state.providerFilter,
|
|
3159
3160
|
providers.map((provider) => ({ value: provider.id, label: provider.name })),
|
|
3160
3161
|
(value) => {
|
|
@@ -3168,6 +3169,7 @@ class BasemapControl {
|
|
|
3168
3169
|
row.appendChild(
|
|
3169
3170
|
this._createSelect(
|
|
3170
3171
|
"Category",
|
|
3172
|
+
"All categories",
|
|
3171
3173
|
this._state.categoryFilter,
|
|
3172
3174
|
categories.map((category) => ({ value: category, label: category })),
|
|
3173
3175
|
(value) => {
|
|
@@ -3180,13 +3182,13 @@ class BasemapControl {
|
|
|
3180
3182
|
);
|
|
3181
3183
|
return row;
|
|
3182
3184
|
}
|
|
3183
|
-
_createSelect(label, value, options, onChange) {
|
|
3185
|
+
_createSelect(label, allLabel, value, options, onChange) {
|
|
3184
3186
|
const select = document.createElement("select");
|
|
3185
3187
|
select.className = "basemap-control-select";
|
|
3186
3188
|
select.setAttribute("aria-label", label);
|
|
3187
3189
|
const all = document.createElement("option");
|
|
3188
3190
|
all.value = "";
|
|
3189
|
-
all.textContent =
|
|
3191
|
+
all.textContent = allLabel;
|
|
3190
3192
|
select.appendChild(all);
|
|
3191
3193
|
options.forEach((option) => {
|
|
3192
3194
|
const element = document.createElement("option");
|
|
@@ -3863,4 +3865,4 @@ exports.createBasemapCatalog = createBasemapCatalog;
|
|
|
3863
3865
|
exports.filterBasemaps = filterBasemaps;
|
|
3864
3866
|
exports.getBasemapCategories = getBasemapCategories;
|
|
3865
3867
|
exports.resolveBasemapProviders = resolveBasemapProviders;
|
|
3866
|
-
//# sourceMappingURL=BasemapControl-
|
|
3868
|
+
//# sourceMappingURL=BasemapControl-CD6PSvCv.cjs.map
|