|
@ -202,6 +202,7 @@ export class MarkerCluster { |
|
|
} = markerData; |
|
|
} = markerData; |
|
|
const lngLatStr = `${lng}/${lat}`; |
|
|
const lngLatStr = `${lng}/${lat}`; |
|
|
|
|
|
|
|
|
|
|
|
if (lngLatMap[lngLatStr]) { |
|
|
context.marker.setContent(getContent(lngLatMap[lngLatStr])); |
|
|
context.marker.setContent(getContent(lngLatMap[lngLatStr])); |
|
|
|
|
|
|
|
|
context.marker.setAnchor("bottom-center"); |
|
|
context.marker.setAnchor("bottom-center"); |
|
@ -228,6 +229,7 @@ export class MarkerCluster { |
|
|
|
|
|
|
|
|
data[0].config.markerClick?.(data[0].extData, data[0].config?.item); |
|
|
data[0].config.markerClick?.(data[0].extData, data[0].config?.item); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -321,6 +323,7 @@ function getIcon({ config, extData }) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function getState(data) { |
|
|
function getState(data) { |
|
|
|
|
|
console.log(data, Array.isArray(data), "getState"); |
|
|
if (Array.isArray(data)) { |
|
|
if (Array.isArray(data)) { |
|
|
return data.every((item) => getStateSingle(item)); |
|
|
return data.every((item) => getStateSingle(item)); |
|
|
} else return getStateSingle(data); |
|
|
} else return getStateSingle(data); |
|
|