fix:修改小车层级

This commit is contained in:
SunTao 2024-12-30 16:19:32 +08:00
parent 70663acfbd
commit edb6ab57e7

View File

@ -1034,7 +1034,7 @@ export default {
this.clusters = new VectorLayer({ this.clusters = new VectorLayer({
source: clusterSource, source: clusterSource,
name: "clusterLayer", name: "clusterLayer",
zIndex: 10, zIndex: 1,
style: (feature) => { style: (feature) => {
const count = feature.get("features").length; const count = feature.get("features").length;
if (count > 1) { if (count > 1) {
@ -1662,6 +1662,7 @@ export default {
properties: { properties: {
type: "carPoint", type: "carPoint",
}, },
zIndex: 2,
}); });
this.$nextTick(() => { this.$nextTick(() => {
const map = this.$refs.roadMap.instance.get("map"); const map = this.$refs.roadMap.instance.get("map");