|
@@ -758,10 +758,9 @@ export default defineComponent({
|
|
|
'fill-color': '#143981',
|
|
|
'fill-opacity': 0.5,
|
|
|
'fill-outline-color': 'red',
|
|
|
+ 'fill-translate':[45,45]
|
|
|
// 'fill-outline-width':20
|
|
|
- },
|
|
|
- minzoom: 7, //2d不支持
|
|
|
- maxzoom: 17.5, //2d不支持
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
|
|
@@ -777,6 +776,7 @@ export default defineComponent({
|
|
|
// 'fill-translate': [-10, -10],
|
|
|
'line-color': '#143981',
|
|
|
'line-width': 5,
|
|
|
+ 'line-translate': [45, 45],
|
|
|
},
|
|
|
});
|
|
|
|
|
@@ -791,6 +791,7 @@ export default defineComponent({
|
|
|
'fill-antialias': true,
|
|
|
'fill-color': '#143981',
|
|
|
'fill-opacity': 0.3,
|
|
|
+ 'fill-translate': [45, 45],
|
|
|
},
|
|
|
minzoom: 7, //2d不支持
|
|
|
maxzoom: 17.5, //2d不支持
|
|
@@ -806,34 +807,11 @@ export default defineComponent({
|
|
|
// 'fill-translate': [-10, -10],
|
|
|
'line-color': '#143981',
|
|
|
'line-width': 5,
|
|
|
+ 'line-translate':[45,45]
|
|
|
},
|
|
|
});
|
|
|
|
|
|
- // state.map.addLayer({
|
|
|
- // id: 'polygonLayer4',
|
|
|
- // type: 'symbol',
|
|
|
- // source: 'pointSource1',
|
|
|
- // layout: {
|
|
|
- // 'text-field': '10km',
|
|
|
- // 'text-size': 40,
|
|
|
- // },
|
|
|
- // paint: {
|
|
|
- // 'text-color': 'red',
|
|
|
- // }
|
|
|
-
|
|
|
- // });
|
|
|
- // state.map.addLayer({
|
|
|
- // id: 'polygonLayer5',
|
|
|
- // type: 'symbol',
|
|
|
- // source: 'pointSource',
|
|
|
- // layout: {
|
|
|
- // 'text-field': '5km',
|
|
|
- // 'text-size': 40,
|
|
|
- // },
|
|
|
- // paint: {
|
|
|
- // 'text-color': 'red',
|
|
|
- // },
|
|
|
- // });
|
|
|
+
|
|
|
|
|
|
}
|
|
|
} catch (E) {}
|