diff --git a/common/helper.js b/common/helper.js
index 1c73f76..e071769 100644
--- a/common/helper.js
+++ b/common/helper.js
@@ -25,14 +25,15 @@ const globalMap = {
map: null
}
const formatArea = function(polygon) {
- const area = getArea(polygon, {
+ let area = getArea(polygon, {
projection: 'EPSG:4326'
});
+ area = area * 0.0015
let output;
if (area > 10000) {
- output = Math.round((area / 1000000) * 100) / 100 + ' ' + 'k㎡';
+ output = Math.round((area / 10000) * 100) / 100 + ' ' + '万亩';
} else {
- output = Math.round(area * 100) / 100 + ' ' + '㎡';
+ output = Math.round(area * 100) / 100 + ' ' + '亩';
}
return output;
};
@@ -125,6 +126,7 @@ const startMeasure = (map, callback) => {
const vector = new VectorLayer({
id: 'draw-layer',
source: source,
+ zIndex: 9999,
style: feature => {
return generateStyle(feature, {
fillOpt: {
diff --git a/manifest.json b/manifest.json
index 41155a5..7d8d604 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "草原管理",
"appid" : "__UNI__BBBC950",
"description" : "",
- "versionName" : "1.0.6",
- "versionCode" : 106,
+ "versionName" : "1.0.8",
+ "versionCode" : 108,
"transformPx" : false,
"app-plus" : {
/* 5+App特有相关 */
@@ -44,7 +44,8 @@
"",
"",
"",
- ""
+ "",
+ ""
]
},
"ios" : {