Skip to content

Commit 9fe7836

Browse files
prushforprushfor
authored andcommitted
Change uppercase / lowercase comparison to compare projection strings
without folding
1 parent afcd78b commit 9fe7836

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/mapml/layers/MapMLLayer.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,7 @@ export var MapMLLayer = L.Layer.extend({
257257
}
258258
}
259259
}
260-
return !(
261-
noLayer || this.getProjection() !== map.options.projection.toUpperCase()
262-
);
260+
return !(noLayer || this.getProjection() !== map.options.projection);
263261
},
264262

265263
//sets the <layer-> elements .bounds property
@@ -906,7 +904,7 @@ export var MapMLLayer = L.Layer.extend({
906904
mapml
907905
.querySelector('map-meta[name=projection]')
908906
.getAttribute('content')
909-
).content.toUpperCase() || projection;
907+
).content || projection;
910908
} else if (mapml.querySelector('map-extent[units]')) {
911909
const getProjectionFrom = (extents) => {
912910
let extentProj = extents[0].attributes.units.value;

0 commit comments

Comments
 (0)