forked from MapComplete/MapComplete
Performance: fix stuttering at low zoom
This commit is contained in:
parent
4f4b60afd8
commit
e9a511e5bd
4 changed files with 13 additions and 2 deletions
|
@ -39,7 +39,7 @@ export default class LayoutSource extends FeatureSourceMerger {
|
|||
const osmLayers = layers.filter((layer) => layer.source.geojsonSource === undefined)
|
||||
const fromCache = osmLayers.map(
|
||||
(l) =>
|
||||
new LocalStorageFeatureSource(backend, l.id, 15, mapProperties, {
|
||||
new LocalStorageFeatureSource(backend, l, 15, mapProperties, {
|
||||
isActive: isDisplayed(l.id),
|
||||
maxAge: l.maxAgeOfCache,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue