File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ The GeoPackage JavaScript library currently provides the ability to read GeoPack
3838
3939### Changelog
4040
41+ ##### 3.0.6
42+
43+ - Fix for styles for feature types ignoring case
44+
4145##### 2.1.0
4246
4347- Implementation of the Feature Style Extension and Contents ID Extension
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export class Styles {
1515 }
1616 setStyle ( styleRow : StyleRow , geometryType : string ) : void {
1717 if ( geometryType != null ) {
18+ geometryType = geometryType . toUpperCase ( ) ;
1819 if ( styleRow != null ) {
1920 this . styles [ geometryType ] = styleRow ;
2021 } else {
@@ -27,7 +28,7 @@ export class Styles {
2728 getStyle ( geometryType : string ) : StyleRow {
2829 let styleRow = null ;
2930 if ( geometryType != null ) {
30- styleRow = this . styles [ geometryType ] ;
31+ styleRow = this . styles [ geometryType ] || this . styles [ geometryType . toUpperCase ( ) ] ;
3132 }
3233 if ( styleRow === null || geometryType === null ) {
3334 styleRow = this . getDefault ( ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @ngageoint/geopackage" ,
3- "version" : " 3.0.5 " ,
3+ "version" : " 3.0.6 " ,
44 "description" : " GeoPackage JavaScript Library" ,
55 "keywords" : [
66 " NGA" ,
You can’t perform that action at this time.
0 commit comments