Fix array/string confusion
"'ar' in Menards" means that all of the Arkansas survey markers show up when I'm looking for Menards.
This commit is contained in:
parent
74c070215c
commit
041ebaabe0
2
main.js
2
main.js
|
@ -130,7 +130,7 @@ for (let category of layerCategories) {
|
|||
}
|
||||
|
||||
const urlParams = qs.parse(window.location.search, { ignoreQueryPrefix: true });
|
||||
const urlLayers = urlParams.layer ?? [];
|
||||
const urlLayers = ('layer' in urlParams) ? (typeof urlParams.layer === 'string' ? [urlParams.layer] : urlParams.layer) : [];
|
||||
|
||||
for (let category of layerCategories) {
|
||||
for (let layer of category.layers) {
|
||||
|
|
Loading…
Reference in a new issue