Skip to content

Commit

Permalink
3.0.6
Browse files Browse the repository at this point in the history
fix for line, point, polygon styles with uppercase geometry types
  • Loading branch information
danielbarela committed Nov 23, 2020
1 parent 88c95d1 commit f4453cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ The GeoPackage JavaScript library currently provides the ability to read GeoPack

### Changelog

##### 3.0.6

- Fix for styles for feature types ignoring case

##### 2.1.0

- Implementation of the Feature Style Extension and Contents ID Extension
Expand Down
3 changes: 2 additions & 1 deletion lib/extension/style/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class Styles {
}
setStyle(styleRow: StyleRow, geometryType: string): void {
if (geometryType != null) {
geometryType = geometryType.toUpperCase();
if (styleRow != null) {
this.styles[geometryType] = styleRow;
} else {
Expand All @@ -27,7 +28,7 @@ export class Styles {
getStyle(geometryType: string): StyleRow {
let styleRow = null;
if (geometryType != null) {
styleRow = this.styles[geometryType];
styleRow = this.styles[geometryType] || this.styles[geometryType.toUpperCase()];
}
if (styleRow === null || geometryType === null) {
styleRow = this.getDefault();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngageoint/geopackage",
"version": "3.0.5",
"version": "3.0.6",
"description": "GeoPackage JavaScript Library",
"keywords": [
"NGA",
Expand Down

0 comments on commit f4453cd

Please sign in to comment.