Skip to content

Commit

Permalink
If null is passed in to set the color reset it to the default
Browse files Browse the repository at this point in the history
v3.0.8
  • Loading branch information
danielbarela committed Jan 13, 2021
1 parent 78a63a2 commit aa2b8a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
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.8

- If a null color is set on the FeatureTiles class, the color will be reset to the initial default of #000000FF

##### 3.0.7

- Styles that are set on the FeatureTiles class will override any styles in the GeoPackage
Expand Down
3 changes: 3 additions & 0 deletions lib/tiles/features/paint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export class Paint {
* @param {String} color String color in the format #RRGGBB or #RRGGBBAA
*/
set color(color: string) {
if (!color) {
color = '#000000FF';
}
this._color = color;
}
/**
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.7",
"version": "3.0.8",
"description": "GeoPackage JavaScript Library",
"keywords": [
"NGA",
Expand Down

0 comments on commit aa2b8a0

Please sign in to comment.