mirage2d 1.1.16 → 1.1.17
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/dist/mirage2d.es.js
CHANGED
|
@@ -80304,13 +80304,18 @@ class baseGraphicLayer extends baseLayer {
|
|
|
80304
80304
|
if (feature2.get("classname") == levelOption.classname) {
|
|
80305
80305
|
let data2 = feature2.get(levelOption.attributeName);
|
|
80306
80306
|
if (data2) {
|
|
80307
|
-
|
|
80308
|
-
|
|
80309
|
-
|
|
80310
|
-
|
|
80311
|
-
|
|
80312
|
-
|
|
80313
|
-
|
|
80307
|
+
if (parseFloat(data2) == 0) {
|
|
80308
|
+
let mStyle = MirageDefaultStyle.getStyle(feature2.getGeometry().getType(), { fillcolor: "rgba(255,255,255,0)", strokecolor: "rgba(255,255,255,0.1)", strokewidth: 1 });
|
|
80309
|
+
feature2.setStyle(mStyle);
|
|
80310
|
+
} else {
|
|
80311
|
+
mLevelColor.forEach((element) => {
|
|
80312
|
+
if (parseFloat(data2) > element.maxnum) {
|
|
80313
|
+
let mStyle = MirageDefaultStyle.getStyle(feature2.getGeometry().getType(), { fillcolor: element.fillcolor, strokecolor: element.strokecolor, strokewidth: element.strokewidth });
|
|
80314
|
+
feature2.setStyle(mStyle);
|
|
80315
|
+
return;
|
|
80316
|
+
}
|
|
80317
|
+
});
|
|
80318
|
+
}
|
|
80314
80319
|
}
|
|
80315
80320
|
}
|
|
80316
80321
|
});
|