Skip to content

Commit aa2b8a0

Browse files
committed
If null is passed in to set the color reset it to the default
v3.0.8
1 parent 78a63a2 commit aa2b8a0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ The GeoPackage JavaScript library currently provides the ability to read GeoPack
3838

3939
### Changelog
4040

41+
##### 3.0.8
42+
43+
- If a null color is set on the FeatureTiles class, the color will be reset to the initial default of #000000FF
44+
4145
##### 3.0.7
4246

4347
- Styles that are set on the FeatureTiles class will override any styles in the GeoPackage

lib/tiles/features/paint.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export class Paint {
1818
* @param {String} color String color in the format #RRGGBB or #RRGGBBAA
1919
*/
2020
set color(color: string) {
21+
if (!color) {
22+
color = '#000000FF';
23+
}
2124
this._color = color;
2225
}
2326
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngageoint/geopackage",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"description": "GeoPackage JavaScript Library",
55
"keywords": [
66
"NGA",

0 commit comments

Comments
 (0)