Skip to content

Commit

Permalink
Merge pull request #203 from wdantuma/Issue-202
Browse files Browse the repository at this point in the history
S57: Fix key casing
  • Loading branch information
panaaj authored Nov 17, 2024
2 parents 48db318 + 59fb222 commit d6b21ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/modules/map/ol/lib/s57.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,15 @@ export class S57Service {
}

public selectLookup(feature: Feature): number {
const properties = feature.getProperties();
const props = feature.getProperties();
const properties={};
Object.keys(props).forEach((k) => {
properties[k.toUpperCase()]=props[k]
})


const geometry = feature.getGeometry();
const name = properties['layer'];
const name = properties['LAYER'];
const geomType = geometry.getType();

let lookupTable = LookupTable.PAPER_CHART;
Expand Down

0 comments on commit d6b21ef

Please sign in to comment.