forked from MapComplete/MapComplete
Huge refactoring: split readonly and writable stores
This commit is contained in:
parent
0946d8ac9c
commit
4283b76f36
95 changed files with 819 additions and 625 deletions
|
@ -78,7 +78,7 @@ export default class SplitRoadWizard extends Toggle {
|
|||
|
||||
// Datalayer displaying the road and the cut points (if any)
|
||||
new ShowDataMultiLayer({
|
||||
features: new StaticFeatureSource([roadElement], false),
|
||||
features: StaticFeatureSource.fromGeojson([roadElement]),
|
||||
layers: state.filteredLayers,
|
||||
leafletMap: miniMap.leafletMap,
|
||||
zoomToFeatures: true,
|
||||
|
@ -86,7 +86,7 @@ export default class SplitRoadWizard extends Toggle {
|
|||
})
|
||||
|
||||
new ShowDataLayer({
|
||||
features: new StaticFeatureSource(splitPoints, true),
|
||||
features: new StaticFeatureSource(splitPoints),
|
||||
leafletMap: miniMap.leafletMap,
|
||||
zoomToFeatures: false,
|
||||
layerToShow: SplitRoadWizard.splitLayerStyling,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue