egovamap 0.17.8 → 0.17.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/egovamap/egovaBI.js +1 -1
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -57,7 +57,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function rgbToRgbArray(color) {
|
|
60
|
-
if (!color || (typeof color == 'string'&&color.indexOf('rgb') == -1)
|
|
60
|
+
if (!color || typeof color !== 'string' || (typeof color == 'string'&&color.indexOf('rgb') == -1) ) return color;
|
|
61
61
|
|
|
62
62
|
var r, g, b, a;
|
|
63
63
|
var rgbaAttr = color.match(/[\d.]+/g);
|