Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanweiler92 committed Aug 17, 2023
1 parent 7f390c4 commit c13d4db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions tasks/build-options/validateOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,17 @@ async function main () {
if (layerId !== layer.id) {
error(`[${layerId}] layer id does not match id of ${layer.id}`)
}
// console.warn('SHOW ME THIS LAYER', layer)
if (!wv.layerOrder.includes(layerId)) {
if (opt.layerOrderExceptions && opt.layerOrderExceptions.includes(layerId)) {
removeLayer(wv, layerId)
continue
} else if (tolerant || opt.ignoreLayerOrder) {
wv.layerOrder.push(layerId)
} else {
removeLayer(wv, layerId)
continue
}
}
// if (!layer.projections) {
// removeLayer(wv, layerId)
// layersWithoutProjections++
// console.warn(`The layer ${layer.id} does not have a projections property!!`)
// console.warn(`This is layer number ${layersWithoutProjections} that has no projection property!!`)
// continue
// }
if (layer.vectorStyle && !layer.vectorStyle.id) {
error(`[${layerId}] No vectorStyle definition`)
}
Expand Down
1 change: 0 additions & 1 deletion web/js/modules/layers/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ export function hasMeasurementSetting(current, source, config, projId) {
let hasSetting;
Object.values(source.settings).forEach((setting) => {
const layer = config.layers[setting];
// ADDED ADDITIONAL CHECK FOR PROJECTIONS PROPERTY
if (layer && layer.projections) {
const proj = layer.projections;
if (layer.id === setting && Object.keys(proj).indexOf(projId) > -1) {
Expand Down

0 comments on commit c13d4db

Please sign in to comment.