forked from MapComplete/MapComplete
SplitAction logic, not yet pushing changes to osm, pieter will take over
This commit is contained in:
parent
159e4d3350
commit
f77c1efdf5
6 changed files with 262 additions and 29 deletions
37
test.ts
37
test.ts
|
@ -5,32 +5,43 @@ import {AllKnownLayouts} from "./Customizations/AllKnownLayouts";
|
|||
const way = {
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"id": "way/1234",
|
||||
"highway": "residential",
|
||||
"cyclestreet": "yes"
|
||||
"maxweight": "3.5",
|
||||
"maxweight:conditional": "none @ delivery",
|
||||
"name": "Silsstraat",
|
||||
"_last_edit:contributor": "Jorisbo",
|
||||
"_last_edit:contributor:uid": 1983103,
|
||||
"_last_edit:changeset": 70963524,
|
||||
"_last_edit:timestamp": "2019-06-05T18:20:44Z",
|
||||
"_version_number": 9,
|
||||
"id": "way/23583625"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
4.488961100578308,
|
||||
51.204971024401374
|
||||
4.4889691,
|
||||
51.2049831
|
||||
],
|
||||
[
|
||||
4.4896745681762695,
|
||||
51.204712226516435
|
||||
4.4895496,
|
||||
51.2047718
|
||||
],
|
||||
[
|
||||
4.489814043045044,
|
||||
51.20459459063348
|
||||
4.48966,
|
||||
51.2047147
|
||||
],
|
||||
[
|
||||
4.48991060256958,
|
||||
51.204439983016115
|
||||
4.4897439,
|
||||
51.2046548
|
||||
],
|
||||
[
|
||||
4.490291476249695,
|
||||
51.203845074952376
|
||||
4.4898162,
|
||||
51.2045921
|
||||
],
|
||||
[
|
||||
4.4902997,
|
||||
51.2038418
|
||||
]
|
||||
]
|
||||
}
|
||||
|
@ -39,4 +50,4 @@ const way = {
|
|||
State.state = new State(AllKnownLayouts.allKnownLayouts.get("fietsstraten"));
|
||||
// add road to state
|
||||
State.state.allElements.addOrGetElement(way);
|
||||
new SplitRoadWizard("way/1234").AttachTo("maindiv")
|
||||
new SplitRoadWizard("way/23583625").AttachTo("maindiv")
|
Loading…
Add table
Add a link
Reference in a new issue