土地资源地块格式修改
This commit is contained in:
parent
70e8c8fc83
commit
e914ee45de
@ -13,32 +13,35 @@ const mapMixinLand = {
|
||||
staticArea: [
|
||||
{
|
||||
id: '01',
|
||||
landPath: "99.88785,24.426105|99.892485,24.424855|99.894545,24.426418|99.89094,24.428137",
|
||||
landPath: ["99.88785,24.426105|99.892485,24.424855|99.894545,24.426418|99.89094,24.428137"],
|
||||
fillColor: '#d96298', fillOpacity: 0.8, strokeColor: "#d96298", strokeWeight: 1, strokeOpacity: 0.8,
|
||||
},
|
||||
{
|
||||
id: '02',
|
||||
landPath: "99.877778,24.414434|99.880525,24.411073|99.883272,24.412245|99.881727,24.414981",
|
||||
landPath: ["99.877778,24.414434|99.880525,24.411073|99.883272,24.412245|99.881727,24.414981"],
|
||||
fillColor: '#d9e961', fillOpacity: 0.8, strokeColor: "#d9e961", strokeWeight: 1, strokeOpacity: 0.8,
|
||||
},
|
||||
{
|
||||
id: '03',
|
||||
landPath: "99.853174,24.424073|99.850256,24.426105|99.855749,24.426731|99.880812,24.421885",
|
||||
landPath:
|
||||
["99.853174,24.424073|99.850256,24.426105|99.855749,24.426731|99.880812,24.421885",
|
||||
|
||||
],
|
||||
fillColor: '#ba8ae3', fillOpacity: 0.8, strokeColor: "#ba8ae3", strokeWeight: 1, strokeOpacity: 0.8,
|
||||
},
|
||||
{
|
||||
id: '04',
|
||||
landPath: "99.866907,24.415946|99.861243,24.413601|99.859183,24.417196|99.880812,24.421885",
|
||||
landPath: ["99.866907,24.415946|99.861243,24.413601|99.859183,24.417196|99.880812,24.421885"],
|
||||
fillColor: '#88b0d3', fillOpacity: 0.8, strokeColor: "#88b0d3", strokeWeight: 1, strokeOpacity: 0.8,
|
||||
},
|
||||
{
|
||||
id: '05',
|
||||
landPath: "99.865247,24.416309|99.867736,24.411151|99.869796,24.412323|99.86971,24.415684",
|
||||
landPath: ["99.865247,24.416309|99.867736,24.411151|99.869796,24.412323|99.86971,24.415684"],
|
||||
fillColor: '#efc0ac', fillOpacity: 0.8, strokeColor: "#efc0ac", strokeWeight: 1, strokeOpacity: 0.8,
|
||||
},
|
||||
{
|
||||
id: '06',
|
||||
landPath: "99.858209,24.408963|99.86087,24.40396|99.863445,24.406305|99.862243,24.408806",
|
||||
landPath: ["99.858209,24.408963|99.86087,24.40396|99.863445,24.406305|99.862243,24.408806"],
|
||||
fillColor: '#80f1b0', fillOpacity: 0.8, strokeColor: "#80f1b0", strokeWeight: 1, strokeOpacity: 0.8,
|
||||
}
|
||||
|
||||
@ -111,10 +114,16 @@ const mapMixinLand = {
|
||||
if (item.landPath) {
|
||||
const path = [];
|
||||
const pointList = [];
|
||||
item.landPath.split('|').forEach((point) => {
|
||||
path.push(new this.AMap.LngLat(point.split(',')[0], point.split(',')[1]));
|
||||
pointList.push([Number(point.split(',')[0]), Number(point.split(',')[1])]);
|
||||
});
|
||||
if( item.landPath && item.landPath.length && item.landPath.length>0){
|
||||
item.landPath.forEach((k)=>{
|
||||
k.split('|').forEach((point) => {
|
||||
path.push(new this.AMap.LngLat(point.split(',')[0], point.split(',')[1]));
|
||||
pointList.push([Number(point.split(',')[0]), Number(point.split(',')[1])]);
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
let colorVal='';
|
||||
if(options && options.length>0){
|
||||
let indexF=options.findIndex((m)=>{
|
||||
|
Loading…
x
Reference in New Issue
Block a user