Fix: fix possible causes for #2486

This commit is contained in:
Pieter Vander Vennet 2025-08-05 21:44:54 +02:00
parent 3e4a2593ac
commit 58cf4863ed
2 changed files with 4 additions and 1 deletions

View file

@ -608,7 +608,7 @@ class MappedStore<TIn, T> extends Store<T> {
if (!this._callbacksAreRegistered) {
return
}
this._upstreamPingCount = this._upstreamCallbackHandler.pingCount
this._upstreamPingCount = this._upstreamCallbackHandler?.pingCount
this._callbacksAreRegistered = false
this._unregisterFromUpstream()
this._unregisterFromExtraStores?.forEach((unr) => unr())

View file

@ -101,6 +101,9 @@ export class PointRenderingLayer {
}>[], locations: Set<PointRenderingLocation>): (Feature<Point, { id: string }> & {
locationType: PointRenderingLocation
})[] {
if(!features){
return []
}
const resultingFeatures: (Feature<Point, { id: string }> & { locationType: PointRenderingLocation })[] = []
function registerFeature(feature: Feature<any, {