Skip to content

Commit dfe3542

Browse files
committed
DM-9430: fixed: projection.isImplement was not working correctly
1 parent c18c4b4 commit dfe3542

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/firefly/js/visualize/projection/Projection.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ const projTypes= {
123123

124124

125125
const translateProjectionName= (maptype) => get(projTypes, [maptype,'name'],'UNRECOGNIZED');
126-
const isImplemented= (header) => get(header, ['maptype.implemented'],false);
127-
const isWrappingProjection= (header) => get(header, ['maptype.wrapping'],false);
126+
const isImplemented= (header) => get(projTypes, [header.maptype, 'implemented'],false);
127+
const isWrappingProjection= (header) => get(projTypes, [header.maptype, 'wrapping'],false);
128128

129129

130130

@@ -247,7 +247,7 @@ export class Projection {
247247
* @return {boolean} true, if this projection is implemented
248248
* @public
249249
*/
250-
isImplemented() { isImplemented(this.header); }
250+
isImplemented() { return isImplemented(this.header); }
251251

252252
/**
253253
* @return {boolean} true, if this projection is specified

0 commit comments

Comments
 (0)