forked from MapComplete/MapComplete
Fix: fix crash
This commit is contained in:
parent
17f097851a
commit
a570e29242
1 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,8 @@ export class PointRenderingLayer {
|
||||||
let store: Store<Record<string, string>>
|
let store: Store<Record<string, string>>
|
||||||
if (this._fetchStore) {
|
if (this._fetchStore) {
|
||||||
store = this._fetchStore(feature.properties.id)
|
store = this._fetchStore(feature.properties.id)
|
||||||
} else {
|
}
|
||||||
|
if(!store){
|
||||||
store = new ImmutableStore(<OsmTags>feature.properties)
|
store = new ImmutableStore(<OsmTags>feature.properties)
|
||||||
}
|
}
|
||||||
const { html, iconAnchor } = this._config.RenderIcon(store, { metatags: this._metatags })
|
const { html, iconAnchor } = this._config.RenderIcon(store, { metatags: this._metatags })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue