1.定义对象数组
cars:[
{
indexName: 0,
name:'登高车',
state:false,
icon:'static/img/mapMarker/car1.png',
points:[
[116.316967,39.990748],
[116.323938,39.989919],
[116.31311,39.9890],
[116.315,39.9890],
],
},
{
indexName:1,
name:'高压灭火剂',
state: false,
icon:'static/img/mapMarker/car2.png',
points:[
[116.328896,39.988039],
[116.321135,39.987072],
]
},
{
indexName: 2,
name:'高压强磁堵漏装置',
state: false,
icon:'static/img/mapMarker/car3.png',
points:[
[116.332453,39.989007],
[116.324045,39.987984],
]
},
{
indexName: 3,
name:'排烟车',
state: false,
icon: