|
@@ -357,6 +357,13 @@ export const useMapStore = defineStore('mapStore', () => {
|
|
|
* @param {object} pointStates `{ [pointCode]: { status } }`
|
|
* @param {object} pointStates `{ [pointCode]: { status } }`
|
|
|
* @returns {Array<string>} 被改写状态的编码(空数组 = 没有任何变化)
|
|
* @returns {Array<string>} 被改写状态的编码(空数组 = 没有任何变化)
|
|
|
*/
|
|
*/
|
|
|
|
|
+ /** 票 08:当前实际画在地图上的符号数(单体 + 聚合徽章;由 MapCanvas 读 DOM 后回写)。 */
|
|
|
|
|
+ function setDisplayedSymbols(count) {
|
|
|
|
|
+ const next = Number.isFinite(count) ? Math.max(0, Math.round(count)) : null
|
|
|
|
|
+ if (summary.value.displayedSymbols === next) return
|
|
|
|
|
+ summary.value = { ...summary.value, displayedSymbols: next }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
function applyPointStates(pointStates) {
|
|
function applyPointStates(pointStates) {
|
|
|
const table = pointStates && typeof pointStates === 'object' ? pointStates : {}
|
|
const table = pointStates && typeof pointStates === 'object' ? pointStates : {}
|
|
|
// 先记下来:即使当前没有对应对象(还没翻到那一页)也要记住,供后续翻页补写。
|
|
// 先记下来:即使当前没有对应对象(还没翻到那一页)也要记住,供后续翻页补写。
|
|
@@ -388,5 +395,5 @@ export const useMapStore = defineStore('mapStore', () => {
|
|
|
return loader ? loader.hasObject(kind, code) : false
|
|
return loader ? loader.hasObject(kind, code) : false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return { summary, view, counts, statusDistribution, statusAxes, coordinate, locationVerdict: locationVerdictOf, loaded, busy, settled, refreshing, filters, hasSnapshotObject, setup, advance, refresh, applyFilters, applyPointStates, reset }
|
|
|
|
|
|
|
+ return { summary, view, counts, statusDistribution, statusAxes, coordinate, locationVerdict: locationVerdictOf, loaded, busy, settled, refreshing, filters, hasSnapshotObject, setup, advance, refresh, applyFilters, applyPointStates, setDisplayedSymbols, reset }
|
|
|
})
|
|
})
|