mirage2d 1.1.16 → 1.1.18
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,21 @@ 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.sort(function up(x2, y2) {
|
|
80312
|
+
return y2.maxnum - x2.maxnum;
|
|
80313
|
+
});
|
|
80314
|
+
mLevelColor.forEach((element) => {
|
|
80315
|
+
if (parseFloat(data2) > element.maxnum) {
|
|
80316
|
+
let mStyle = MirageDefaultStyle.getStyle(feature2.getGeometry().getType(), { fillcolor: element.fillcolor, strokecolor: element.strokecolor, strokewidth: element.strokewidth });
|
|
80317
|
+
feature2.setStyle(mStyle);
|
|
80318
|
+
return;
|
|
80319
|
+
}
|
|
80320
|
+
});
|
|
80321
|
+
}
|
|
80314
80322
|
}
|
|
80315
80323
|
}
|
|
80316
80324
|
});
|