Create new
Bindings
Transitions
Animations
Easing
Component composition
Context API
Special elements
Module context
Debugging
Miscellaneous
App.svelte
MapToolbar.svelte
shapes.js
runes
This component is not in runes mode.
To enable runes mode, either start using runes in your code, or add the following to the top of your component:
<svelte:options runes />
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
⌄
⌄
⌄
<script>
/*
This is an example of making shapes that remain the same size regardless of zoom in a Leaflet map.
Original blog post here: https://imfeld.dev/writing/leaflet_shapes
Any questions? Ask me at dimfeld on Twitter!
Thanks to heroicons.dev for the icons used here.
*/
import L from 'leaflet';
import MapToolbar from './MapToolbar.svelte';
import makeLineCoordinates from './shapes';
let map;
const markerLocations = [
[29.8283, -96.5795],
[37.8283, -90.5795],
[43.8283, -102.5795],
[48.40, -122.5795],
[43.60, -79.5795],
[36.8283, -100.5795],
[38.40, -122.5795],
];
// Length of the sides of the arrow
let arrowSideLength = 30;
// The angle of the arrow sides from the tip
let arrowSideAngle = 8;
// How far apart to space multiple arrows.
let minArrowSpacing = 250;
$: arrowParams = {
arrowSideLength,
arrowSideAngle: Math.PI / arrowSideAngle,
minArrowSpacing
Error Svelte error: component_api_invalid_new Attempted to instantiate MapToolbar.svelte with `new MapToolbar`, which is no longer valid in Svelte 5. If this component is not under your control, set the `compatibility.componentApi` compiler option to `4` to keep it working. https://svelte.dev/e/component_api_invalid_new at component_api_invalid_new (playground:output:167:18) at check_target (playground:output:3561:4) at new MapToolbar (playground:output:18682:3) at App.toolbar.onAdd (playground:output:18891:23) at NewClass.addTo (playground:output:8998:45) at mapAction (playground:output:18915:12) at eval (playground:output:18972:40) at eval (playground:output:3593:32) at untrack (playground:output:2862:11) at eval (playground:output:3593:18)
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
⌄
⌄
import 'svelte/internal/disclose-version';
import 'svelte/internal/flags/legacy';
import * as $ from 'svelte/internal/client';
/*
This is an example of making shapes that remain the same size regardless of zoom in a Leaflet map.
Original blog post here: https://imfeld.dev/writing/leaflet_shapes
Any questions? Ask me at dimfeld on Twitter!
Thanks to heroicons.dev for the icons used here.
*/
import L from 'leaflet';
import MapToolbar from './MapToolbar.svelte';
import makeLineCoordinates from './shapes';
var root = $.template(`<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""> <div class="map svelte-6dmjjf" style="height:100%;width:100%"></div>`, 1);
export default function App($$anchor, $$props) {
$.push($$props, false);
const arrowParams = $.mutable_state();
let map;
const markerLocations = [
[29.8283, -96.5795],
[37.8283, -90.5795],
[43.8283, -102.5795],
[48.40, -122.5795],
[43.60, -79.5795],
[36.8283, -100.5795],
[38.40, -122.5795]
];
// Length of the sides of the arrow
let arrowSideLength = $.mutable_state(30);
// The angle of the arrow sides from the tip
result = svelte.compile(source, {
generate: ,
});99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
.map.svelte-6dmjjf .marker-text {
width:100%;
text-align:center;
font-weight:600;
background-color:#444;
color:#EEE;
border-radius:0.5rem;
}
.map.svelte-6dmjjf .map-marker {
width:30px;
transform:translateX(-50%) translateY(-25%);
}
Root {
css: StyleSheet {...}
- type: "StyleSheet"
- start: 3992
- end: 4253
- attributes: []
children: [...] (2)
Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 4001
- end: 4027
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4001
- end: 4027
children: [...] (2)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "map"
- start: 4001
- end: 4005
}
]- start: 4001
- end: 4005
} RelativeSelector {...}
- type: "RelativeSelector"
combinator: Combinator {...}
- type: "Combinator"
- name: " "
- start: 4005
- end: 4006
}selectors: [...] (1)
PseudoClassSelector {...}
- type: "PseudoClassSelector"
- name: "global"
args: SelectorList {...}
- type: "SelectorList"
- start: 4014
- end: 4026
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4014
- end: 4026
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "marker-text"
- start: 4014
- end: 4026
}
]- start: 4014
- end: 4026
}
]
}
]
}- start: 4006
- end: 4027
}
]- start: 4005
- end: 4027
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 4028
- end: 4149
children: [...] (6)
Declaration {...}
- type: "Declaration"
- start: 4032
- end: 4042
- property: "width"
- value: "100%"
} Declaration {...}
- type: "Declaration"
- start: 4046
- end: 4063
- property: "text-align"
- value: "center"
} Declaration {...}
- type: "Declaration"
- start: 4067
- end: 4082
- property: "font-weight"
- value: "600"
} Declaration {...}
- type: "Declaration"
- start: 4086
- end: 4107
- property: "background-color"
- value: "#444"
} Declaration {...}
- type: "Declaration"
- start: 4111
- end: 4121
- property: "color"
- value: "#EEE"
} Declaration {...}
- type: "Declaration"
- start: 4125
- end: 4145
- property: "border-radius"
- value: "0.5rem"
}
]
}- start: 4001
- end: 4149
} Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 4153
- end: 4178
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4153
- end: 4178
children: [...] (2)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "map"
- start: 4153
- end: 4157
}
]- start: 4153
- end: 4157
} RelativeSelector {...}
- type: "RelativeSelector"
combinator: Combinator {...}
- type: "Combinator"
- name: " "
- start: 4157
- end: 4158
}selectors: [...] (1)
PseudoClassSelector {...}
- type: "PseudoClassSelector"
- name: "global"
args: SelectorList {...}
- type: "SelectorList"
- start: 4166
- end: 4177
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4166
- end: 4177
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "map-marker"
- start: 4166
- end: 4177
}
]- start: 4166
- end: 4177
}
]
}
]
}- start: 4158
- end: 4178
}
]- start: 4157
- end: 4178
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 4179
- end: 4244
children: [...] (2)
Declaration {...}
- type: "Declaration"
- start: 4183
- end: 4193
- property: "width"
- value: "30px"
} Declaration {...}
- type: "Declaration"
- start: 4197
- end: 4240
- property: "transform"
- value: "translateX(-50%) translateY(-25%)"
}
]
}- start: 4153
- end: 4244
}
]content: {...}
- start: 3999
- end: 4245
- styles: "\n\t.map :global(.marker-text) {\n\t\twidth:100%;\n\t\ttext-align:center;\n\t\tfont-weight:600;\n\t\tbackground-color:#444;\n\t\tcolor:#EEE;\n\t\tborder-radius:0.5rem;\n\t}\n\t\n\t.map :global(.map-marker) {\n\t\twidth:30px;\n\t\ttransform:translateX(-50%) translateY(-25%);\n\t}\n"
- comment: null
}
}- js: []
- start: 3951
- end: 4529
- type: "Root"
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (7)
Text {...}
- type: "Text"
- start: 3950
- end: 3951
- raw: "\n"
- data: "\n"
} SvelteWindow {...}
- type: "SvelteWindow"
- start: 3951
- end: 3990
- name: "svelte:window"
attributes: [...] (1)
OnDirective {...}
- start: 3966
- end: 3987
- type: "OnDirective"
- name: "resize"
expression: Identifier {...}
- type: "Identifier"
- start: 3977
- end: 3986
loc: {...}
start: {...}
- line: 156
- column: 26
}end: {...}
- line: 156
- column: 35
}
}- name: "resizeMap"
}- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 3990
- end: 3992
- raw: "\n\n"
- data: "\n\n"
} Text {...}
- type: "Text"
- start: 4253
- end: 4255
- raw: "\n\n"
- data: "\n\n"
} RegularElement {...}
- type: "RegularElement"
- start: 4255
- end: 4464
- name: "link"
attributes: [...] (4)
Attribute {...}
- type: "Attribute"
- start: 4261
- end: 4277
- name: "rel"
value: [...] (1)
Text {...}
- start: 4266
- end: 4276
- type: "Text"
- raw: "stylesheet"
- data: "stylesheet"
}
]
} Attribute {...}
- type: "Attribute"
- start: 4278
- end: 4333
- name: "href"
value: [...] (1)
Text {...}
- start: 4284
- end: 4332
- type: "Text"
- raw: "https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
- data: "https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
}
]
} Attribute {...}
- type: "Attribute"
- start: 4337
- end: 4444
- name: "integrity"
value: [...] (1)
Text {...}
- start: 4348
- end: 4443
- type: "Text"
- raw: "sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
- data: "sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
}
]
} Attribute {...}
- type: "Attribute"
- start: 4448
- end: 4462
- name: "crossorigin"
value: [...] (1)
Text {...}
- start: 4461
- end: 4461
- type: "Text"
- raw: ""
- data: ""
}
]
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 4464
- end: 4465
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 4465
- end: 4529
- name: "div"
attributes: [...] (3)
Attribute {...}
- type: "Attribute"
- start: 4470
- end: 4481
- name: "class"
value: [...] (1)
Text {...}
- start: 4477
- end: 4480
- type: "Text"
- raw: "map"
- data: "map"
}
]
} Attribute {...}
- type: "Attribute"
- start: 4482
- end: 4512
- name: "style"
value: [...] (1)
Text {...}
- start: 4489
- end: 4511
- type: "Text"
- raw: "height:100%;width:100%"
- data: "height:100%;width:100%"
}
]
} UseDirective {...}
- start: 4513
- end: 4526
- type: "UseDirective"
- name: "mapAction"
- expression: null
- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
}
]
}- options: null
instance: Script {...}
- type: "Script"
- start: 0
- end: 3950
- context: "default"
content: Program {...}
- type: "Program"
- start: 8
- end: 3941
loc: {...}
start: {...}
- line: 1
- column: 0
}end: {...}
- line: 155
- column: 0
}
}body: [...] (25)
ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 289
- end: 313
loc: {...}
start: {...}
- line: 11
- column: 1
}end: {...}
- line: 11
- column: 25
}
}specifiers: [...] (1)
ImportDefaultSpecifier {...}
- type: "ImportDefaultSpecifier"
- start: 296
- end: 297
loc: {...}
start: {...}
- line: 11
- column: 8
}end: {...}
- line: 11
- column: 9
}
}local: Identifier {...}
- type: "Identifier"
- start: 296
- end: 297
loc: {...}
start: {...}
- line: 11
- column: 8
}end: {...}
- line: 11
- column: 9
}
}- name: "L"
}
}
]source: Literal {...}
- type: "Literal"
- start: 303
- end: 312
loc: {...}
start: {...}
- line: 11
- column: 15
}end: {...}
- line: 11
- column: 24
}
}- value: "leaflet"
- raw: "'leaflet'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 315
- end: 360
loc: {...}
start: {...}
- line: 12
- column: 1
}end: {...}
- line: 12
- column: 46
}
}specifiers: [...] (1)
ImportDefaultSpecifier {...}
- type: "ImportDefaultSpecifier"
- start: 322
- end: 332
loc: {...}
start: {...}
- line: 12
- column: 8
}end: {...}
- line: 12
- column: 18
}
}local: Identifier {...}
- type: "Identifier"
- start: 322
- end: 332
loc: {...}
start: {...}
- line: 12
- column: 8
}end: {...}
- line: 12
- column: 18
}
}- name: "MapToolbar"
}
}
]source: Literal {...}
- type: "Literal"
- start: 338
- end: 359
loc: {...}
start: {...}
- line: 12
- column: 24
}end: {...}
- line: 12
- column: 45
}
}- value: "./MapToolbar.svelte"
- raw: "'./MapToolbar.svelte'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 362
- end: 405
loc: {...}
start: {...}
- line: 13
- column: 1
}end: {...}
- line: 13
- column: 44
}
}specifiers: [...] (1)
ImportDefaultSpecifier {...}
- type: "ImportDefaultSpecifier"
- start: 369
- end: 388
loc: {...}
start: {...}
- line: 13
- column: 8
}end: {...}
- line: 13
- column: 27
}
}local: Identifier {...}
- type: "Identifier"
- start: 369
- end: 388
loc: {...}
start: {...}
- line: 13
- column: 8
}end: {...}
- line: 13
- column: 27
}
}- name: "makeLineCoordinates"
}
}
]source: Literal {...}
- type: "Literal"
- start: 394
- end: 404
loc: {...}
start: {...}
- line: 13
- column: 33
}end: {...}
- line: 13
- column: 43
}
}- value: "./shapes"
- raw: "'./shapes'"
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 407
- end: 415
loc: {...}
start: {...}
- line: 14
- column: 1
}end: {...}
- line: 14
- column: 9
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 411
- end: 414
loc: {...}
start: {...}
- line: 14
- column: 5
}end: {...}
- line: 14
- column: 8
}
}id: Identifier {...}
- type: "Identifier"
- start: 411
- end: 414
loc: {...}
start: {...}
- line: 14
- column: 5
}end: {...}
- line: 14
- column: 8
}
}- name: "map"
}- init: null
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 419
- end: 607
loc: {...}
start: {...}
- line: 16
- column: 1
}end: {...}
- line: 24
- column: 3
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 425
- end: 606
loc: {...}
start: {...}
- line: 16
- column: 7
}end: {...}
- line: 24
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 425
- end: 440
loc: {...}
start: {...}
- line: 16
- column: 7
}end: {...}
- line: 16
- column: 22
}
}- name: "markerLocations"
}init: ArrayExpression {...}
- type: "ArrayExpression"
- start: 443
- end: 606
loc: {...}
start: {...}
- line: 16
- column: 25
}end: {...}
- line: 24
- column: 2
}
}elements: [...] (7)
ArrayExpression {...}
- type: "ArrayExpression"
- start: 447
- end: 466
loc: {...}
start: {...}
- line: 17
- column: 2
}end: {...}
- line: 17
- column: 21
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 448
- end: 455
loc: {...}
start: {...}
- line: 17
- column: 3
}end: {...}
- line: 17
- column: 10
}
}- value: 29.8283
- raw: "29.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 457
- end: 465
loc: {...}
start: {...}
- line: 17
- column: 12
}end: {...}
- line: 17
- column: 20
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 458
- end: 465
loc: {...}
start: {...}
- line: 17
- column: 13
}end: {...}
- line: 17
- column: 20
}
}- value: 96.5795
- raw: "96.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 470
- end: 489
loc: {...}
start: {...}
- line: 18
- column: 2
}end: {...}
- line: 18
- column: 21
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 471
- end: 478
loc: {...}
start: {...}
- line: 18
- column: 3
}end: {...}
- line: 18
- column: 10
}
}- value: 37.8283
- raw: "37.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 480
- end: 488
loc: {...}
start: {...}
- line: 18
- column: 12
}end: {...}
- line: 18
- column: 20
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 481
- end: 488
loc: {...}
start: {...}
- line: 18
- column: 13
}end: {...}
- line: 18
- column: 20
}
}- value: 90.5795
- raw: "90.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 493
- end: 513
loc: {...}
start: {...}
- line: 19
- column: 2
}end: {...}
- line: 19
- column: 22
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 494
- end: 501
loc: {...}
start: {...}
- line: 19
- column: 3
}end: {...}
- line: 19
- column: 10
}
}- value: 43.8283
- raw: "43.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 503
- end: 512
loc: {...}
start: {...}
- line: 19
- column: 12
}end: {...}
- line: 19
- column: 21
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 504
- end: 512
loc: {...}
start: {...}
- line: 19
- column: 13
}end: {...}
- line: 19
- column: 21
}
}- value: 102.5795
- raw: "102.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 517
- end: 535
loc: {...}
start: {...}
- line: 20
- column: 2
}end: {...}
- line: 20
- column: 20
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 518
- end: 523
loc: {...}
start: {...}
- line: 20
- column: 3
}end: {...}
- line: 20
- column: 8
}
}- value: 48.4
- raw: "48.40"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 525
- end: 534
loc: {...}
start: {...}
- line: 20
- column: 10
}end: {...}
- line: 20
- column: 19
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 526
- end: 534
loc: {...}
start: {...}
- line: 20
- column: 11
}end: {...}
- line: 20
- column: 19
}
}- value: 122.5795
- raw: "122.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 539
- end: 556
loc: {...}
start: {...}
- line: 21
- column: 2
}end: {...}
- line: 21
- column: 19
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 540
- end: 545
loc: {...}
start: {...}
- line: 21
- column: 3
}end: {...}
- line: 21
- column: 8
}
}- value: 43.6
- raw: "43.60"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 547
- end: 555
loc: {...}
start: {...}
- line: 21
- column: 10
}end: {...}
- line: 21
- column: 18
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 548
- end: 555
loc: {...}
start: {...}
- line: 21
- column: 11
}end: {...}
- line: 21
- column: 18
}
}- value: 79.5795
- raw: "79.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 560
- end: 580
loc: {...}
start: {...}
- line: 22
- column: 2
}end: {...}
- line: 22
- column: 22
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 561
- end: 568
loc: {...}
start: {...}
- line: 22
- column: 3
}end: {...}
- line: 22
- column: 10
}
}- value: 36.8283
- raw: "36.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 570
- end: 579
loc: {...}
start: {...}
- line: 22
- column: 12
}end: {...}
- line: 22
- column: 21
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 571
- end: 579
loc: {...}
start: {...}
- line: 22
- column: 13
}end: {...}
- line: 22
- column: 21
}
}- value: 100.5795
- raw: "100.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 584
- end: 602
loc: {...}
start: {...}
- line: 23
- column: 2
}end: {...}
- line: 23
- column: 20
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 585
- end: 590
loc: {...}
start: {...}
- line: 23
- column: 3
}end: {...}
- line: 23
- column: 8
}
}- value: 38.4
- raw: "38.40"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 592
- end: 601
loc: {...}
start: {...}
- line: 23
- column: 10
}end: {...}
- line: 23
- column: 19
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 593
- end: 601
loc: {...}
start: {...}
- line: 23
- column: 11
}end: {...}
- line: 23
- column: 19
}
}- value: 122.5795
- raw: "122.5795"
}
}
]
}
]
}
}
]- kind: "const"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 648
- end: 673
loc: {...}
start: {...}
- line: 27
- column: 1
}end: {...}
- line: 27
- column: 26
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 652
- end: 672
loc: {...}
start: {...}
- line: 27
- column: 5
}end: {...}
- line: 27
- column: 25
}
}id: Identifier {...}
- type: "Identifier"
- start: 652
- end: 667
loc: {...}
start: {...}
- line: 27
- column: 5
}end: {...}
- line: 27
- column: 20
}
}- name: "arrowSideLength"
}init: Literal {...}
- type: "Literal"
- start: 670
- end: 672
loc: {...}
start: {...}
- line: 27
- column: 23
}end: {...}
- line: 27
- column: 25
}
}- value: 30
- raw: "30"
}
}
]- kind: "let"
leadingComments: [...] (1)
Line {...}
- type: "Line"
- value: " Length of the sides of the arrow"
- start: 611
- end: 646
}
]
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 723
- end: 746
loc: {...}
start: {...}
- line: 29
- column: 1
}end: {...}
- line: 29
- column: 24
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 727
- end: 745
loc: {...}
start: {...}
- line: 29
- column: 5
}end: {...}
- line: 29
- column: 23
}
}id: Identifier {...}
- type: "Identifier"
- start: 727
- end: 741
loc: {...}
start: {...}
- line: 29
- column: 5
}end: {...}
- line: 29
- column: 19
}
}- name: "arrowSideAngle"
}init: Literal {...}
- type: "Literal"
- start: 744
- end: 745
loc: {...}
start: {...}
- line: 29
- column: 22
}end: {...}
- line: 29
- column: 23
}
}- value: 8
- raw: "8"
}
}
]- kind: "let"
leadingComments: [...] (1)
Line {...}
- type: "Line"
- value: " The angle of the arrow sides from the tip"
- start: 677
- end: 721
}
]
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 792
- end: 818
loc: {...}
start: {...}
- line: 31
- column: 1
}end: {...}
- line: 31
- column: 27
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 796
- end: 817
loc: {...}
start: {...}
- line: 31
- column: 5
}end: {...}
- line: 31
- column: 26
}
}id: Identifier {...}
- type: "Identifier"
- start: 796
- end: 811
loc: {...}
start: {...}
- line: 31
- column: 5
}end: {...}
- line: 31
- column: 20
}
}- name: "minArrowSpacing"
}init: Literal {...}
- type: "Literal"
- start: 814
- end: 817
loc: {...}
start: {...}
- line: 31
- column: 23
}end: {...}
- line: 31
- column: 26
}
}- value: 250
- raw: "250"
}
}
]- kind: "let"
leadingComments: [...] (1)
Line {...}
- type: "Line"
- value: " How far apart to space multiple arrows."
- start: 748
- end: 790
}
]
} LabeledStatement {...}
- type: "LabeledStatement"
- start: 822
- end: 925
loc: {...}
start: {...}
- line: 33
- column: 1
}end: {...}
- line: 37
- column: 3
}
}body: ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 825
- end: 925
loc: {...}
start: {...}
- line: 33
- column: 4
}end: {...}
- line: 37
- column: 3
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 825
- end: 924
loc: {...}
start: {...}
- line: 33
- column: 4
}end: {...}
- line: 37
- column: 2
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 825
- end: 836
loc: {...}
start: {...}
- line: 33
- column: 4
}end: {...}
- line: 33
- column: 15
}
}- name: "arrowParams"
}right: ObjectExpression {...}
- type: "ObjectExpression"
- start: 839
- end: 924
loc: {...}
start: {...}
- line: 33
- column: 18
}end: {...}
- line: 37
- column: 2
}
}properties: [...] (3)
Property {...}
- type: "Property"
- start: 843
- end: 858
loc: {...}
start: {...}
- line: 34
- column: 2
}end: {...}
- line: 34
- column: 17
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 843
- end: 858
loc: {...}
start: {...}
- line: 34
- column: 2
}end: {...}
- line: 34
- column: 17
}
}- name: "arrowSideLength"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 843
- end: 858
loc: {...}
start: {...}
- line: 34
- column: 2
}end: {...}
- line: 34
- column: 17
}
}- name: "arrowSideLength"
}
} Property {...}
- type: "Property"
- start: 862
- end: 902
loc: {...}
start: {...}
- line: 35
- column: 2
}end: {...}
- line: 35
- column: 42
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 862
- end: 876
loc: {...}
start: {...}
- line: 35
- column: 2
}end: {...}
- line: 35
- column: 16
}
}- name: "arrowSideAngle"
}value: BinaryExpression {...}
- type: "BinaryExpression"
- start: 878
- end: 902
loc: {...}
start: {...}
- line: 35
- column: 18
}end: {...}
- line: 35
- column: 42
}
}left: MemberExpression {...}
- type: "MemberExpression"
- start: 878
- end: 885
loc: {...}
start: {...}
- line: 35
- column: 18
}end: {...}
- line: 35
- column: 25
}
}object: Identifier {...}
- type: "Identifier"
- start: 878
- end: 882
loc: {...}
start: {...}
- line: 35
- column: 18
}end: {...}
- line: 35
- column: 22
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 883
- end: 885
loc: {...}
start: {...}
- line: 35
- column: 23
}end: {...}
- line: 35
- column: 25
}
}- name: "PI"
}- computed: false
- optional: false
}- operator: "/"
right: Identifier {...}
- type: "Identifier"
- start: 888
- end: 902
loc: {...}
start: {...}
- line: 35
- column: 28
}end: {...}
- line: 35
- column: 42
}
}- name: "arrowSideAngle"
}
}- kind: "init"
} Property {...}
- type: "Property"
- start: 906
- end: 921
loc: {...}
start: {...}
- line: 36
- column: 2
}end: {...}
- line: 36
- column: 17
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 906
- end: 921
loc: {...}
start: {...}
- line: 36
- column: 2
}end: {...}
- line: 36
- column: 17
}
}- name: "minArrowSpacing"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 906
- end: 921
loc: {...}
start: {...}
- line: 36
- column: 2
}end: {...}
- line: 36
- column: 17
}
}- name: "minArrowSpacing"
}
}
]
}
}
}label: Identifier {...}
- type: "Identifier"
- start: 822
- end: 823
loc: {...}
start: {...}
- line: 33
- column: 1
}end: {...}
- line: 33
- column: 2
}
}- name: "$"
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 929
- end: 969
loc: {...}
start: {...}
- line: 39
- column: 1
}end: {...}
- line: 39
- column: 41
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 935
- end: 968
loc: {...}
start: {...}
- line: 39
- column: 7
}end: {...}
- line: 39
- column: 40
}
}id: Identifier {...}
- type: "Identifier"
- start: 935
- end: 946
loc: {...}
start: {...}
- line: 39
- column: 7
}end: {...}
- line: 39
- column: 18
}
}- name: "initialView"
}init: ArrayExpression {...}
- type: "ArrayExpression"
- start: 949
- end: 968
loc: {...}
start: {...}
- line: 39
- column: 21
}end: {...}
- line: 39
- column: 40
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 950
- end: 957
loc: {...}
start: {...}
- line: 39
- column: 22
}end: {...}
- line: 39
- column: 29
}
}- value: 39.8283
- raw: "39.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 959
- end: 967
loc: {...}
start: {...}
- line: 39
- column: 31
}end: {...}
- line: 39
- column: 39
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 960
- end: 967
loc: {...}
start: {...}
- line: 39
- column: 32
}end: {...}
- line: 39
- column: 39
}
}- value: 98.5795
- raw: "98.5795"
}
}
]
}
}
]- kind: "const"
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 971
- end: 1467
loc: {...}
start: {...}
- line: 40
- column: 1
}end: {...}
- line: 53
- column: 3
}
}id: Identifier {...}
- type: "Identifier"
- start: 980
- end: 989
loc: {...}
start: {...}
- line: 40
- column: 10
}end: {...}
- line: 40
- column: 19
}
}- name: "createMap"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 990
- end: 999
loc: {...}
start: {...}
- line: 40
- column: 20
}end: {...}
- line: 40
- column: 29
}
}- name: "container"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 1001
- end: 1467
loc: {...}
start: {...}
- line: 40
- column: 31
}end: {...}
- line: 53
- column: 3
}
}body: [...] (3)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1006
- end: 1078
loc: {...}
start: {...}
- line: 41
- column: 3
}end: {...}
- line: 41
- column: 75
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1010
- end: 1077
loc: {...}
start: {...}
- line: 41
- column: 7
}end: {...}
- line: 41
- column: 74
}
}id: Identifier {...}
- type: "Identifier"
- start: 1010
- end: 1011
loc: {...}
start: {...}
- line: 41
- column: 7
}end: {...}
- line: 41
- column: 8
}
}- name: "m"
}init: CallExpression {...}
- type: "CallExpression"
- start: 1014
- end: 1077
loc: {...}
start: {...}
- line: 41
- column: 11
}end: {...}
- line: 41
- column: 74
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1014
- end: 1061
loc: {...}
start: {...}
- line: 41
- column: 11
}end: {...}
- line: 41
- column: 58
}
}object: CallExpression {...}
- type: "CallExpression"
- start: 1014
- end: 1053
loc: {...}
start: {...}
- line: 41
- column: 11
}end: {...}
- line: 41
- column: 50
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1014
- end: 1019
loc: {...}
start: {...}
- line: 41
- column: 11
}end: {...}
- line: 41
- column: 16
}
}object: Identifier {...}
- type: "Identifier"
- start: 1014
- end: 1015
loc: {...}
start: {...}
- line: 41
- column: 11
}end: {...}
- line: 41
- column: 12
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 1016
- end: 1019
loc: {...}
start: {...}
- line: 41
- column: 13
}end: {...}
- line: 41
- column: 16
}
}- name: "map"
}- computed: false
- optional: false
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 1020
- end: 1029
loc: {...}
start: {...}
- line: 41
- column: 17
}end: {...}
- line: 41
- column: 26
}
}- name: "container"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 1031
- end: 1052
loc: {...}
start: {...}
- line: 41
- column: 28
}end: {...}
- line: 41
- column: 49
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 1032
- end: 1050
loc: {...}
start: {...}
- line: 41
- column: 29
}end: {...}
- line: 41
- column: 47
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1032
- end: 1044
loc: {...}
start: {...}
- line: 41
- column: 29
}end: {...}
- line: 41
- column: 41
}
}- name: "preferCanvas"
}value: Literal {...}
- type: "Literal"
- start: 1046
- end: 1050
loc: {...}
start: {...}
- line: 41
- column: 43
}end: {...}
- line: 41
- column: 47
}
}- value: true
- raw: "true"
}- kind: "init"
}
]
}
]- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1054
- end: 1061
loc: {...}
start: {...}
- line: 41
- column: 51
}end: {...}
- line: 41
- column: 58
}
}- name: "setView"
}- computed: false
- optional: false
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 1062
- end: 1073
loc: {...}
start: {...}
- line: 41
- column: 59
}end: {...}
- line: 41
- column: 70
}
}- name: "initialView"
} Literal {...}
- type: "Literal"
- start: 1075
- end: 1076
loc: {...}
start: {...}
- line: 41
- column: 72
}end: {...}
- line: 41
- column: 73
}
}- value: 5
- raw: "5"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1083
- end: 1448
loc: {...}
start: {...}
- line: 42
- column: 4
}end: {...}
- line: 50
- column: 14
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 1083
- end: 1447
loc: {...}
start: {...}
- line: 42
- column: 4
}end: {...}
- line: 50
- column: 13
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1083
- end: 1444
loc: {...}
start: {...}
- line: 42
- column: 4
}end: {...}
- line: 50
- column: 10
}
}object: CallExpression {...}
- type: "CallExpression"
- start: 1083
- end: 1438
loc: {...}
start: {...}
- line: 42
- column: 4
}end: {...}
- line: 50
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1083
- end: 1094
loc: {...}
start: {...}
- line: 42
- column: 4
}end: {...}
- line: 42
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 1083
- end: 1084
loc: {...}
start: {...}
- line: 42
- column: 4
}end: {...}
- line: 42
- column: 5
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 1085
- end: 1094
loc: {...}
start: {...}
- line: 42
- column: 6
}end: {...}
- line: 42
- column: 15
}
}- name: "tileLayer"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 1101
- end: 1175
loc: {...}
start: {...}
- line: 43
- column: 5
}end: {...}
- line: 43
- column: 79
}
}- value: "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png"
- raw: "'https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png'"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 1182
- end: 1433
loc: {...}
start: {...}
- line: 44
- column: 5
}end: {...}
- line: 49
- column: 6
}
}properties: [...] (3)
Property {...}
- type: "Property"
- start: 1191
- end: 1378
loc: {...}
start: {...}
- line: 45
- column: 7
}end: {...}
- line: 46
- column: 82
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1191
- end: 1202
loc: {...}
start: {...}
- line: 45
- column: 7
}end: {...}
- line: 45
- column: 18
}
}- name: "attribution"
}value: TemplateLiteral {...}
- type: "TemplateLiteral"
- start: 1204
- end: 1378
loc: {...}
start: {...}
- line: 45
- column: 20
}end: {...}
- line: 46
- column: 82
}
}- expressions: []
quasis: [...] (1)
TemplateElement {...}
- type: "TemplateElement"
- start: 1205
- end: 1377
loc: {...}
start: {...}
- line: 45
- column: 21
}end: {...}
- line: 46
- column: 81
}
}value: {...}
- raw: "©<a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a>,\n\t ©<a href=\"https://carto.com/attributions\" target=\"_blank\">CARTO</a>"
- cooked: "©<a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a>,\n\t ©<a href=\"https://carto.com/attributions\" target=\"_blank\">CARTO</a>"
}- tail: true
}
]
}- kind: "init"
} Property {...}
- type: "Property"
- start: 1387
- end: 1405
loc: {...}
start: {...}
- line: 47
- column: 7
}end: {...}
- line: 47
- column: 25
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1387
- end: 1397
loc: {...}
start: {...}
- line: 47
- column: 7
}end: {...}
- line: 47
- column: 17
}
}- name: "subdomains"
}value: Literal {...}
- type: "Literal"
- start: 1399
- end: 1405
loc: {...}
start: {...}
- line: 47
- column: 19
}end: {...}
- line: 47
- column: 25
}
}- value: "abcd"
- raw: "'abcd'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 1414
- end: 1425
loc: {...}
start: {...}
- line: 48
- column: 7
}end: {...}
- line: 48
- column: 18
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1414
- end: 1421
loc: {...}
start: {...}
- line: 48
- column: 7
}end: {...}
- line: 48
- column: 14
}
}- name: "maxZoom"
}value: Literal {...}
- type: "Literal"
- start: 1423
- end: 1425
loc: {...}
start: {...}
- line: 48
- column: 16
}end: {...}
- line: 48
- column: 18
}
}- value: 14
- raw: "14"
}- kind: "init"
}
]
}
]- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1439
- end: 1444
loc: {...}
start: {...}
- line: 50
- column: 5
}end: {...}
- line: 50
- column: 10
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1445
- end: 1446
loc: {...}
start: {...}
- line: 50
- column: 11
}end: {...}
- line: 50
- column: 12
}
}- name: "m"
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 1454
- end: 1463
loc: {...}
start: {...}
- line: 52
- column: 4
}end: {...}
- line: 52
- column: 13
}
}argument: Identifier {...}
- type: "Identifier"
- start: 1461
- end: 1462
loc: {...}
start: {...}
- line: 52
- column: 11
}end: {...}
- line: 52
- column: 12
}
}- name: "m"
}
}
]
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1471
- end: 1495
loc: {...}
start: {...}
- line: 55
- column: 1
}end: {...}
- line: 55
- column: 25
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1475
- end: 1494
loc: {...}
start: {...}
- line: 55
- column: 5
}end: {...}
- line: 55
- column: 24
}
}id: Identifier {...}
- type: "Identifier"
- start: 1475
- end: 1482
loc: {...}
start: {...}
- line: 55
- column: 5
}end: {...}
- line: 55
- column: 12
}
}- name: "markers"
}init: NewExpression {...}
- type: "NewExpression"
- start: 1485
- end: 1494
loc: {...}
start: {...}
- line: 55
- column: 15
}end: {...}
- line: 55
- column: 24
}
}callee: Identifier {...}
- type: "Identifier"
- start: 1489
- end: 1492
loc: {...}
start: {...}
- line: 55
- column: 19
}end: {...}
- line: 55
- column: 22
}
}- name: "Map"
}- arguments: []
}
}
]- kind: "let"
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 1499
- end: 1901
loc: {...}
start: {...}
- line: 57
- column: 1
}end: {...}
- line: 63
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 1508
- end: 1518
loc: {...}
start: {...}
- line: 57
- column: 10
}end: {...}
- line: 57
- column: 20
}
}- name: "markerIcon"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1519
- end: 1524
loc: {...}
start: {...}
- line: 57
- column: 21
}end: {...}
- line: 57
- column: 26
}
}- name: "count"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 1526
- end: 1901
loc: {...}
start: {...}
- line: 57
- column: 28
}end: {...}
- line: 63
- column: 2
}
}body: [...] (2)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1530
- end: 1835
loc: {...}
start: {...}
- line: 58
- column: 2
}end: {...}
- line: 58
- column: 307
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1534
- end: 1834
loc: {...}
start: {...}
- line: 58
- column: 6
}end: {...}
- line: 58
- column: 306
}
}id: Identifier {...}
- type: "Identifier"
- start: 1534
- end: 1538
loc: {...}
start: {...}
- line: 58
- column: 6
}end: {...}
- line: 58
- column: 10
}
}- name: "html"
}init: TemplateLiteral {...}
- type: "TemplateLiteral"
- start: 1541
- end: 1834
loc: {...}
start: {...}
- line: 58
- column: 13
}end: {...}
- line: 58
- column: 306
}
}expressions: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1815
- end: 1820
loc: {...}
start: {...}
- line: 58
- column: 287
}end: {...}
- line: 58
- column: 292
}
}- name: "count"
}
]quasis: [...] (2)
TemplateElement {...}
- type: "TemplateElement"
- start: 1542
- end: 1813
loc: {...}
start: {...}
- line: 58
- column: 14
}end: {...}
- line: 58
- column: 285
}
}value: {...}
- raw: "<div class=\"map-marker\"><div><svg fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" stroke=\"currentColor\"><path d=\"M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M3 7l9-4 9 4M4 10h16v11H4V10z\"></path></svg></div><div class=\"marker-text\">"
- cooked: "<div class=\"map-marker\"><div><svg fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" stroke=\"currentColor\"><path d=\"M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M3 7l9-4 9 4M4 10h16v11H4V10z\"></path></svg></div><div class=\"marker-text\">"
}- tail: false
} TemplateElement {...}
- type: "TemplateElement"
- start: 1821
- end: 1833
loc: {...}
start: {...}
- line: 58
- column: 293
}end: {...}
- line: 58
- column: 305
}
}value: {...}
- raw: "</div></div>"
- cooked: "</div></div>"
}- tail: true
}
]
}
}
]- kind: "let"
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 1838
- end: 1898
loc: {...}
start: {...}
- line: 59
- column: 2
}end: {...}
- line: 62
- column: 5
}
}argument: CallExpression {...}
- type: "CallExpression"
- start: 1845
- end: 1897
loc: {...}
start: {...}
- line: 59
- column: 9
}end: {...}
- line: 62
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1845
- end: 1854
loc: {...}
start: {...}
- line: 59
- column: 9
}end: {...}
- line: 59
- column: 18
}
}object: Identifier {...}
- type: "Identifier"
- start: 1845
- end: 1846
loc: {...}
start: {...}
- line: 59
- column: 9
}end: {...}
- line: 59
- column: 10
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 1847
- end: 1854
loc: {...}
start: {...}
- line: 59
- column: 11
}end: {...}
- line: 59
- column: 18
}
}- name: "divIcon"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 1855
- end: 1896
loc: {...}
start: {...}
- line: 59
- column: 19
}end: {...}
- line: 62
- column: 3
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 1860
- end: 1864
loc: {...}
start: {...}
- line: 60
- column: 3
}end: {...}
- line: 60
- column: 7
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1860
- end: 1864
loc: {...}
start: {...}
- line: 60
- column: 3
}end: {...}
- line: 60
- column: 7
}
}- name: "html"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 1860
- end: 1864
loc: {...}
start: {...}
- line: 60
- column: 3
}end: {...}
- line: 60
- column: 7
}
}- name: "html"
}
} Property {...}
- type: "Property"
- start: 1869
- end: 1892
loc: {...}
start: {...}
- line: 61
- column: 3
}end: {...}
- line: 61
- column: 26
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1869
- end: 1878
loc: {...}
start: {...}
- line: 61
- column: 3
}end: {...}
- line: 61
- column: 12
}
}- name: "className"
}value: Literal {...}
- type: "Literal"
- start: 1880
- end: 1892
loc: {...}
start: {...}
- line: 61
- column: 14
}end: {...}
- line: 61
- column: 26
}
}- value: "map-marker"
- raw: "'map-marker'"
}- kind: "init"
}
]
}
]- optional: false
}
}
]
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 1904
- end: 2067
loc: {...}
start: {...}
- line: 65
- column: 1
}end: {...}
- line: 70
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 1913
- end: 1925
loc: {...}
start: {...}
- line: 65
- column: 10
}end: {...}
- line: 65
- column: 22
}
}- name: "createMarker"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1926
- end: 1929
loc: {...}
start: {...}
- line: 65
- column: 23
}end: {...}
- line: 65
- column: 26
}
}- name: "loc"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 1931
- end: 2067
loc: {...}
start: {...}
- line: 65
- column: 28
}end: {...}
- line: 70
- column: 2
}
}body: [...] (4)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1935
- end: 1977
loc: {...}
start: {...}
- line: 66
- column: 2
}end: {...}
- line: 66
- column: 44
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1939
- end: 1976
loc: {...}
start: {...}
- line: 66
- column: 6
}end: {...}
- line: 66
- column: 43
}
}id: Identifier {...}
- type: "Identifier"
- start: 1939
- end: 1944
loc: {...}
start: {...}
- line: 66
- column: 6
}end: {...}
- line: 66
- column: 11
}
}- name: "count"
}init: CallExpression {...}
- type: "CallExpression"
- start: 1947
- end: 1976
loc: {...}
start: {...}
- line: 66
- column: 14
}end: {...}
- line: 66
- column: 43
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1947
- end: 1956
loc: {...}
start: {...}
- line: 66
- column: 14
}end: {...}
- line: 66
- column: 23
}
}object: Identifier {...}
- type: "Identifier"
- start: 1947
- end: 1951
loc: {...}
start: {...}
- line: 66
- column: 14
}end: {...}
- line: 66
- column: 18
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 1952
- end: 1956
loc: {...}
start: {...}
- line: 66
- column: 19
}end: {...}
- line: 66
- column: 23
}
}- name: "ceil"
}- computed: false
- optional: false
}arguments: [...] (1)
BinaryExpression {...}
- type: "BinaryExpression"
- start: 1957
- end: 1975
loc: {...}
start: {...}
- line: 66
- column: 24
}end: {...}
- line: 66
- column: 42
}
}left: CallExpression {...}
- type: "CallExpression"
- start: 1957
- end: 1970
loc: {...}
start: {...}
- line: 66
- column: 24
}end: {...}
- line: 66
- column: 37
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1957
- end: 1968
loc: {...}
start: {...}
- line: 66
- column: 24
}end: {...}
- line: 66
- column: 35
}
}object: Identifier {...}
- type: "Identifier"
- start: 1957
- end: 1961
loc: {...}
start: {...}
- line: 66
- column: 24
}end: {...}
- line: 66
- column: 28
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 1962
- end: 1968
loc: {...}
start: {...}
- line: 66
- column: 29
}end: {...}
- line: 66
- column: 35
}
}- name: "random"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}- operator: "*"
right: Literal {...}
- type: "Literal"
- start: 1973
- end: 1975
loc: {...}
start: {...}
- line: 66
- column: 40
}end: {...}
- line: 66
- column: 42
}
}- value: 25
- raw: "25"
}
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1980
- end: 2009
loc: {...}
start: {...}
- line: 67
- column: 2
}end: {...}
- line: 67
- column: 31
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1984
- end: 2008
loc: {...}
start: {...}
- line: 67
- column: 6
}end: {...}
- line: 67
- column: 30
}
}id: Identifier {...}
- type: "Identifier"
- start: 1984
- end: 1988
loc: {...}
start: {...}
- line: 67
- column: 6
}end: {...}
- line: 67
- column: 10
}
}- name: "icon"
}init: CallExpression {...}
- type: "CallExpression"
- start: 1991
- end: 2008
loc: {...}
start: {...}
- line: 67
- column: 13
}end: {...}
- line: 67
- column: 30
}
}callee: Identifier {...}
- type: "Identifier"
- start: 1991
- end: 2001
loc: {...}
start: {...}
- line: 67
- column: 13
}end: {...}
- line: 67
- column: 23
}
}- name: "markerIcon"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2002
- end: 2007
loc: {...}
start: {...}
- line: 67
- column: 24
}end: {...}
- line: 67
- column: 29
}
}- name: "count"
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2012
- end: 2047
loc: {...}
start: {...}
- line: 68
- column: 2
}end: {...}
- line: 68
- column: 37
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2016
- end: 2046
loc: {...}
start: {...}
- line: 68
- column: 6
}end: {...}
- line: 68
- column: 36
}
}id: Identifier {...}
- type: "Identifier"
- start: 2016
- end: 2022
loc: {...}
start: {...}
- line: 68
- column: 6
}end: {...}
- line: 68
- column: 12
}
}- name: "marker"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2025
- end: 2046
loc: {...}
start: {...}
- line: 68
- column: 15
}end: {...}
- line: 68
- column: 36
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2025
- end: 2033
loc: {...}
start: {...}
- line: 68
- column: 15
}end: {...}
- line: 68
- column: 23
}
}object: Identifier {...}
- type: "Identifier"
- start: 2025
- end: 2026
loc: {...}
start: {...}
- line: 68
- column: 15
}end: {...}
- line: 68
- column: 16
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 2027
- end: 2033
loc: {...}
start: {...}
- line: 68
- column: 17
}end: {...}
- line: 68
- column: 23
}
}- name: "marker"
}- computed: false
- optional: false
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 2034
- end: 2037
loc: {...}
start: {...}
- line: 68
- column: 24
}end: {...}
- line: 68
- column: 27
}
}- name: "loc"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 2039
- end: 2045
loc: {...}
start: {...}
- line: 68
- column: 29
}end: {...}
- line: 68
- column: 35
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 2040
- end: 2044
loc: {...}
start: {...}
- line: 68
- column: 30
}end: {...}
- line: 68
- column: 34
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2040
- end: 2044
loc: {...}
start: {...}
- line: 68
- column: 30
}end: {...}
- line: 68
- column: 34
}
}- name: "icon"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 2040
- end: 2044
loc: {...}
start: {...}
- line: 68
- column: 30
}end: {...}
- line: 68
- column: 34
}
}- name: "icon"
}
}
]
}
]- optional: false
}
}
]- kind: "let"
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 2050
- end: 2064
loc: {...}
start: {...}
- line: 69
- column: 2
}end: {...}
- line: 69
- column: 16
}
}argument: Identifier {...}
- type: "Identifier"
- start: 2057
- end: 2063
loc: {...}
start: {...}
- line: 69
- column: 9
}end: {...}
- line: 69
- column: 15
}
}- name: "marker"
}
}
]
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2071
- end: 2101
loc: {...}
start: {...}
- line: 72
- column: 1
}end: {...}
- line: 72
- column: 31
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2077
- end: 2100
loc: {...}
start: {...}
- line: 72
- column: 7
}end: {...}
- line: 72
- column: 30
}
}id: Identifier {...}
- type: "Identifier"
- start: 2077
- end: 2086
loc: {...}
start: {...}
- line: 72
- column: 7
}end: {...}
- line: 72
- column: 16
}
}- name: "lineColor"
}init: Literal {...}
- type: "Literal"
- start: 2089
- end: 2100
loc: {...}
start: {...}
- line: 72
- column: 19
}end: {...}
- line: 72
- column: 30
}
}- value: "limegreen"
- raw: "'limegreen'"
}
}
]- kind: "const"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2103
- end: 2118
loc: {...}
start: {...}
- line: 73
- column: 1
}end: {...}
- line: 73
- column: 16
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2107
- end: 2117
loc: {...}
start: {...}
- line: 73
- column: 5
}end: {...}
- line: 73
- column: 15
}
}id: Identifier {...}
- type: "Identifier"
- start: 2107
- end: 2112
loc: {...}
start: {...}
- line: 73
- column: 5
}end: {...}
- line: 73
- column: 10
}
}- name: "lines"
}init: ArrayExpression {...}
- type: "ArrayExpression"
- start: 2115
- end: 2117
loc: {...}
start: {...}
- line: 73
- column: 13
}end: {...}
- line: 73
- column: 15
}
}- elements: []
}
}
]- kind: "let"
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 2120
- end: 2614
loc: {...}
start: {...}
- line: 74
- column: 1
}end: {...}
- line: 89
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 2129
- end: 2140
loc: {...}
start: {...}
- line: 74
- column: 10
}end: {...}
- line: 74
- column: 21
}
}- name: "createLines"
}- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 2143
- end: 2614
loc: {...}
start: {...}
- line: 74
- column: 24
}end: {...}
- line: 89
- column: 2
}
}body: [...] (1)
ForStatement {...}
- type: "ForStatement"
- start: 2147
- end: 2611
loc: {...}
start: {...}
- line: 75
- column: 2
}end: {...}
- line: 88
- column: 3
}
}init: VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2151
- end: 2160
loc: {...}
start: {...}
- line: 75
- column: 6
}end: {...}
- line: 75
- column: 15
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2155
- end: 2160
loc: {...}
start: {...}
- line: 75
- column: 10
}end: {...}
- line: 75
- column: 15
}
}id: Identifier {...}
- type: "Identifier"
- start: 2155
- end: 2156
loc: {...}
start: {...}
- line: 75
- column: 10
}end: {...}
- line: 75
- column: 11
}
}- name: "i"
}init: Literal {...}
- type: "Literal"
- start: 2159
- end: 2160
loc: {...}
start: {...}
- line: 75
- column: 14
}end: {...}
- line: 75
- column: 15
}
}- value: 1
- raw: "1"
}
}
]- kind: "let"
}test: BinaryExpression {...}
- type: "BinaryExpression"
- start: 2162
- end: 2188
loc: {...}
start: {...}
- line: 75
- column: 17
}end: {...}
- line: 75
- column: 43
}
}left: Identifier {...}
- type: "Identifier"
- start: 2162
- end: 2163
loc: {...}
start: {...}
- line: 75
- column: 17
}end: {...}
- line: 75
- column: 18
}
}- name: "i"
}- operator: "<"
right: MemberExpression {...}
- type: "MemberExpression"
- start: 2166
- end: 2188
loc: {...}
start: {...}
- line: 75
- column: 21
}end: {...}
- line: 75
- column: 43
}
}object: Identifier {...}
- type: "Identifier"
- start: 2166
- end: 2181
loc: {...}
start: {...}
- line: 75
- column: 21
}end: {...}
- line: 75
- column: 36
}
}- name: "markerLocations"
}property: Identifier {...}
- type: "Identifier"
- start: 2182
- end: 2188
loc: {...}
start: {...}
- line: 75
- column: 37
}end: {...}
- line: 75
- column: 43
}
}- name: "length"
}- computed: false
- optional: false
}
}update: UpdateExpression {...}
- type: "UpdateExpression"
- start: 2190
- end: 2193
loc: {...}
start: {...}
- line: 75
- column: 45
}end: {...}
- line: 75
- column: 48
}
}- operator: "++"
- prefix: true
argument: Identifier {...}
- type: "Identifier"
- start: 2192
- end: 2193
loc: {...}
start: {...}
- line: 75
- column: 47
}end: {...}
- line: 75
- column: 48
}
}- name: "i"
}
}body: BlockStatement {...}
- type: "BlockStatement"
- start: 2195
- end: 2611
loc: {...}
start: {...}
- line: 75
- column: 50
}end: {...}
- line: 88
- column: 3
}
}body: [...] (9)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2200
- end: 2235
loc: {...}
start: {...}
- line: 76
- column: 3
}end: {...}
- line: 76
- column: 38
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2204
- end: 2234
loc: {...}
start: {...}
- line: 76
- column: 7
}end: {...}
- line: 76
- column: 37
}
}id: Identifier {...}
- type: "Identifier"
- start: 2204
- end: 2208
loc: {...}
start: {...}
- line: 76
- column: 7
}end: {...}
- line: 76
- column: 11
}
}- name: "from"
}init: MemberExpression {...}
- type: "MemberExpression"
- start: 2212
- end: 2234
loc: {...}
start: {...}
- line: 76
- column: 15
}end: {...}
- line: 76
- column: 37
}
}object: Identifier {...}
- type: "Identifier"
- start: 2212
- end: 2227
loc: {...}
start: {...}
- line: 76
- column: 15
}end: {...}
- line: 76
- column: 30
}
}- name: "markerLocations"
}property: BinaryExpression {...}
- type: "BinaryExpression"
- start: 2228
- end: 2233
loc: {...}
start: {...}
- line: 76
- column: 31
}end: {...}
- line: 76
- column: 36
}
}left: Identifier {...}
- type: "Identifier"
- start: 2228
- end: 2229
loc: {...}
start: {...}
- line: 76
- column: 31
}end: {...}
- line: 76
- column: 32
}
}- name: "i"
}- operator: "-"
right: Literal {...}
- type: "Literal"
- start: 2232
- end: 2233
loc: {...}
start: {...}
- line: 76
- column: 35
}end: {...}
- line: 76
- column: 36
}
}- value: 1
- raw: "1"
}
}- computed: true
- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2239
- end: 2267
loc: {...}
start: {...}
- line: 77
- column: 3
}end: {...}
- line: 77
- column: 31
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2243
- end: 2266
loc: {...}
start: {...}
- line: 77
- column: 7
}end: {...}
- line: 77
- column: 30
}
}id: Identifier {...}
- type: "Identifier"
- start: 2243
- end: 2245
loc: {...}
start: {...}
- line: 77
- column: 7
}end: {...}
- line: 77
- column: 9
}
}- name: "to"
}init: MemberExpression {...}
- type: "MemberExpression"
- start: 2248
- end: 2266
loc: {...}
start: {...}
- line: 77
- column: 12
}end: {...}
- line: 77
- column: 30
}
}object: Identifier {...}
- type: "Identifier"
- start: 2248
- end: 2263
loc: {...}
start: {...}
- line: 77
- column: 12
}end: {...}
- line: 77
- column: 27
}
}- name: "markerLocations"
}property: Identifier {...}
- type: "Identifier"
- start: 2264
- end: 2265
loc: {...}
start: {...}
- line: 77
- column: 28
}end: {...}
- line: 77
- column: 29
}
}- name: "i"
}- computed: true
- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2275
- end: 2325
loc: {...}
start: {...}
- line: 79
- column: 3
}end: {...}
- line: 79
- column: 53
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2279
- end: 2324
loc: {...}
start: {...}
- line: 79
- column: 7
}end: {...}
- line: 79
- column: 52
}
}id: Identifier {...}
- type: "Identifier"
- start: 2279
- end: 2287
loc: {...}
start: {...}
- line: 79
- column: 7
}end: {...}
- line: 79
- column: 15
}
}- name: "calcLine"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2290
- end: 2324
loc: {...}
start: {...}
- line: 79
- column: 18
}end: {...}
- line: 79
- column: 52
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2290
- end: 2309
loc: {...}
start: {...}
- line: 79
- column: 18
}end: {...}
- line: 79
- column: 37
}
}- name: "makeLineCoordinates"
}arguments: [...] (3)
Identifier {...}
- type: "Identifier"
- start: 2310
- end: 2313
loc: {...}
start: {...}
- line: 79
- column: 38
}end: {...}
- line: 79
- column: 41
}
}- name: "map"
} Identifier {...}
- type: "Identifier"
- start: 2315
- end: 2319
loc: {...}
start: {...}
- line: 79
- column: 43
}end: {...}
- line: 79
- column: 47
}
}- name: "from"
} Identifier {...}
- type: "Identifier"
- start: 2321
- end: 2323
loc: {...}
start: {...}
- line: 79
- column: 49
}end: {...}
- line: 79
- column: 51
}
}- name: "to"
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2329
- end: 2362
loc: {...}
start: {...}
- line: 80
- column: 3
}end: {...}
- line: 80
- column: 36
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2333
- end: 2361
loc: {...}
start: {...}
- line: 80
- column: 7
}end: {...}
- line: 80
- column: 35
}
}id: Identifier {...}
- type: "Identifier"
- start: 2333
- end: 2337
loc: {...}
start: {...}
- line: 80
- column: 7
}end: {...}
- line: 80
- column: 11
}
}- name: "path"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2340
- end: 2361
loc: {...}
start: {...}
- line: 80
- column: 14
}end: {...}
- line: 80
- column: 35
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2340
- end: 2348
loc: {...}
start: {...}
- line: 80
- column: 14
}end: {...}
- line: 80
- column: 22
}
}- name: "calcLine"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2349
- end: 2360
loc: {...}
start: {...}
- line: 80
- column: 23
}end: {...}
- line: 80
- column: 34
}
}- name: "arrowParams"
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2366
- end: 2421
loc: {...}
start: {...}
- line: 81
- column: 3
}end: {...}
- line: 81
- column: 58
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2370
- end: 2420
loc: {...}
start: {...}
- line: 81
- column: 7
}end: {...}
- line: 81
- column: 57
}
}id: Identifier {...}
- type: "Identifier"
- start: 2370
- end: 2374
loc: {...}
start: {...}
- line: 81
- column: 7
}end: {...}
- line: 81
- column: 11
}
}- name: "line"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2377
- end: 2420
loc: {...}
start: {...}
- line: 81
- column: 14
}end: {...}
- line: 81
- column: 57
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2377
- end: 2387
loc: {...}
start: {...}
- line: 81
- column: 14
}end: {...}
- line: 81
- column: 24
}
}object: Identifier {...}
- type: "Identifier"
- start: 2377
- end: 2378
loc: {...}
start: {...}
- line: 81
- column: 14
}end: {...}
- line: 81
- column: 15
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 2379
- end: 2387
loc: {...}
start: {...}
- line: 81
- column: 16
}end: {...}
- line: 81
- column: 24
}
}- name: "polyline"
}- computed: false
- optional: false
}arguments: [...] (2)
MemberExpression {...}
- type: "MemberExpression"
- start: 2388
- end: 2397
loc: {...}
start: {...}
- line: 81
- column: 25
}end: {...}
- line: 81
- column: 34
}
}object: Identifier {...}
- type: "Identifier"
- start: 2388
- end: 2392
loc: {...}
start: {...}
- line: 81
- column: 25
}end: {...}
- line: 81
- column: 29
}
}- name: "path"
}property: Identifier {...}
- type: "Identifier"
- start: 2393
- end: 2397
loc: {...}
start: {...}
- line: 81
- column: 30
}end: {...}
- line: 81
- column: 34
}
}- name: "line"
}- computed: false
- optional: false
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 2399
- end: 2419
loc: {...}
start: {...}
- line: 81
- column: 36
}end: {...}
- line: 81
- column: 56
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 2401
- end: 2417
loc: {...}
start: {...}
- line: 81
- column: 38
}end: {...}
- line: 81
- column: 54
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2401
- end: 2406
loc: {...}
start: {...}
- line: 81
- column: 38
}end: {...}
- line: 81
- column: 43
}
}- name: "color"
}value: Identifier {...}
- type: "Identifier"
- start: 2408
- end: 2417
loc: {...}
start: {...}
- line: 81
- column: 45
}end: {...}
- line: 81
- column: 54
}
}- name: "lineColor"
}- kind: "init"
}
]
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2425
- end: 2515
loc: {...}
start: {...}
- line: 82
- column: 3
}end: {...}
- line: 82
- column: 93
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2429
- end: 2514
loc: {...}
start: {...}
- line: 82
- column: 7
}end: {...}
- line: 82
- column: 92
}
}id: Identifier {...}
- type: "Identifier"
- start: 2429
- end: 2434
loc: {...}
start: {...}
- line: 82
- column: 7
}end: {...}
- line: 82
- column: 12
}
}- name: "arrow"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2437
- end: 2514
loc: {...}
start: {...}
- line: 82
- column: 15
}end: {...}
- line: 82
- column: 92
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2437
- end: 2447
loc: {...}
start: {...}
- line: 82
- column: 15
}end: {...}
- line: 82
- column: 25
}
}object: Identifier {...}
- type: "Identifier"
- start: 2437
- end: 2438
loc: {...}
start: {...}
- line: 82
- column: 15
}end: {...}
- line: 82
- column: 16
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 2439
- end: 2447
loc: {...}
start: {...}
- line: 82
- column: 17
}end: {...}
- line: 82
- column: 25
}
}- name: "polyline"
}- computed: false
- optional: false
}arguments: [...] (2)
MemberExpression {...}
- type: "MemberExpression"
- start: 2448
- end: 2458
loc: {...}
start: {...}
- line: 82
- column: 26
}end: {...}
- line: 82
- column: 36
}
}object: Identifier {...}
- type: "Identifier"
- start: 2448
- end: 2452
loc: {...}
start: {...}
- line: 82
- column: 26
}end: {...}
- line: 82
- column: 30
}
}- name: "path"
}property: Identifier {...}
- type: "Identifier"
- start: 2453
- end: 2458
loc: {...}
start: {...}
- line: 82
- column: 31
}end: {...}
- line: 82
- column: 36
}
}- name: "arrow"
}- computed: false
- optional: false
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 2460
- end: 2513
loc: {...}
start: {...}
- line: 82
- column: 38
}end: {...}
- line: 82
- column: 91
}
}properties: [...] (3)
Property {...}
- type: "Property"
- start: 2462
- end: 2478
loc: {...}
start: {...}
- line: 82
- column: 40
}end: {...}
- line: 82
- column: 56
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2462
- end: 2467
loc: {...}
start: {...}
- line: 82
- column: 40
}end: {...}
- line: 82
- column: 45
}
}- name: "color"
}value: Identifier {...}
- type: "Identifier"
- start: 2469
- end: 2478
loc: {...}
start: {...}
- line: 82
- column: 47
}end: {...}
- line: 82
- column: 56
}
}- name: "lineColor"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 2480
- end: 2495
loc: {...}
start: {...}
- line: 82
- column: 58
}end: {...}
- line: 82
- column: 73
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2480
- end: 2484
loc: {...}
start: {...}
- line: 82
- column: 58
}end: {...}
- line: 82
- column: 62
}
}- name: "fill"
}value: Identifier {...}
- type: "Identifier"
- start: 2486
- end: 2495
loc: {...}
start: {...}
- line: 82
- column: 64
}end: {...}
- line: 82
- column: 73
}
}- name: "lineColor"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 2497
- end: 2511
loc: {...}
start: {...}
- line: 82
- column: 75
}end: {...}
- line: 82
- column: 89
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2497
- end: 2508
loc: {...}
start: {...}
- line: 82
- column: 75
}end: {...}
- line: 82
- column: 86
}
}- name: "fillOpacity"
}value: Literal {...}
- type: "Literal"
- start: 2510
- end: 2511
loc: {...}
start: {...}
- line: 82
- column: 88
}end: {...}
- line: 82
- column: 89
}
}- value: 1
- raw: "1"
}- kind: "init"
}
]
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2524
- end: 2540
loc: {...}
start: {...}
- line: 84
- column: 3
}end: {...}
- line: 84
- column: 19
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2524
- end: 2539
loc: {...}
start: {...}
- line: 84
- column: 3
}end: {...}
- line: 84
- column: 18
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2524
- end: 2534
loc: {...}
start: {...}
- line: 84
- column: 3
}end: {...}
- line: 84
- column: 13
}
}object: Identifier {...}
- type: "Identifier"
- start: 2524
- end: 2528
loc: {...}
start: {...}
- line: 84
- column: 3
}end: {...}
- line: 84
- column: 7
}
}- name: "line"
}property: Identifier {...}
- type: "Identifier"
- start: 2529
- end: 2534
loc: {...}
start: {...}
- line: 84
- column: 8
}end: {...}
- line: 84
- column: 13
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2535
- end: 2538
loc: {...}
start: {...}
- line: 84
- column: 14
}end: {...}
- line: 84
- column: 17
}
}- name: "map"
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2544
- end: 2561
loc: {...}
start: {...}
- line: 85
- column: 3
}end: {...}
- line: 85
- column: 20
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2544
- end: 2560
loc: {...}
start: {...}
- line: 85
- column: 3
}end: {...}
- line: 85
- column: 19
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2544
- end: 2555
loc: {...}
start: {...}
- line: 85
- column: 3
}end: {...}
- line: 85
- column: 14
}
}object: Identifier {...}
- type: "Identifier"
- start: 2544
- end: 2549
loc: {...}
start: {...}
- line: 85
- column: 3
}end: {...}
- line: 85
- column: 8
}
}- name: "arrow"
}property: Identifier {...}
- type: "Identifier"
- start: 2550
- end: 2555
loc: {...}
start: {...}
- line: 85
- column: 9
}end: {...}
- line: 85
- column: 14
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2556
- end: 2559
loc: {...}
start: {...}
- line: 85
- column: 15
}end: {...}
- line: 85
- column: 18
}
}- name: "map"
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2569
- end: 2607
loc: {...}
start: {...}
- line: 87
- column: 3
}end: {...}
- line: 87
- column: 41
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2569
- end: 2606
loc: {...}
start: {...}
- line: 87
- column: 3
}end: {...}
- line: 87
- column: 40
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2569
- end: 2579
loc: {...}
start: {...}
- line: 87
- column: 3
}end: {...}
- line: 87
- column: 13
}
}object: Identifier {...}
- type: "Identifier"
- start: 2569
- end: 2574
loc: {...}
start: {...}
- line: 87
- column: 3
}end: {...}
- line: 87
- column: 8
}
}- name: "lines"
}property: Identifier {...}
- type: "Identifier"
- start: 2575
- end: 2579
loc: {...}
start: {...}
- line: 87
- column: 9
}end: {...}
- line: 87
- column: 13
}
}- name: "push"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 2580
- end: 2605
loc: {...}
start: {...}
- line: 87
- column: 14
}end: {...}
- line: 87
- column: 39
}
}properties: [...] (3)
Property {...}
- type: "Property"
- start: 2582
- end: 2586
loc: {...}
start: {...}
- line: 87
- column: 16
}end: {...}
- line: 87
- column: 20
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2582
- end: 2586
loc: {...}
start: {...}
- line: 87
- column: 16
}end: {...}
- line: 87
- column: 20
}
}- name: "line"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 2582
- end: 2586
loc: {...}
start: {...}
- line: 87
- column: 16
}end: {...}
- line: 87
- column: 20
}
}- name: "line"
}
} Property {...}
- type: "Property"
- start: 2588
- end: 2593
loc: {...}
start: {...}
- line: 87
- column: 22
}end: {...}
- line: 87
- column: 27
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2588
- end: 2593
loc: {...}
start: {...}
- line: 87
- column: 22
}end: {...}
- line: 87
- column: 27
}
}- name: "arrow"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 2588
- end: 2593
loc: {...}
start: {...}
- line: 87
- column: 22
}end: {...}
- line: 87
- column: 27
}
}- name: "arrow"
}
} Property {...}
- type: "Property"
- start: 2595
- end: 2603
loc: {...}
start: {...}
- line: 87
- column: 29
}end: {...}
- line: 87
- column: 37
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2595
- end: 2603
loc: {...}
start: {...}
- line: 87
- column: 29
}end: {...}
- line: 87
- column: 37
}
}- name: "calcLine"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 2595
- end: 2603
loc: {...}
start: {...}
- line: 87
- column: 29
}end: {...}
- line: 87
- column: 37
}
}- name: "calcLine"
}
}
]
}
]- optional: false
}
}
]
}
}
]
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 2618
- end: 2786
loc: {...}
start: {...}
- line: 91
- column: 1
}end: {...}
- line: 97
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 2627
- end: 2644
loc: {...}
start: {...}
- line: 91
- column: 10
}end: {...}
- line: 91
- column: 27
}
}- name: "recalculateArrows"
}- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 2647
- end: 2786
loc: {...}
start: {...}
- line: 91
- column: 30
}end: {...}
- line: 97
- column: 2
}
}body: [...] (1)
ForOfStatement {...}
- type: "ForOfStatement"
- start: 2651
- end: 2783
loc: {...}
start: {...}
- line: 92
- column: 2
}end: {...}
- line: 96
- column: 3
}
}- await: false
left: VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2655
- end: 2663
loc: {...}
start: {...}
- line: 92
- column: 6
}end: {...}
- line: 92
- column: 14
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2659
- end: 2663
loc: {...}
start: {...}
- line: 92
- column: 10
}end: {...}
- line: 92
- column: 14
}
}id: Identifier {...}
- type: "Identifier"
- start: 2659
- end: 2663
loc: {...}
start: {...}
- line: 92
- column: 10
}end: {...}
- line: 92
- column: 14
}
}- name: "line"
}- init: null
}
]- kind: "let"
}right: Identifier {...}
- type: "Identifier"
- start: 2667
- end: 2672
loc: {...}
start: {...}
- line: 92
- column: 18
}end: {...}
- line: 92
- column: 23
}
}- name: "lines"
}body: BlockStatement {...}
- type: "BlockStatement"
- start: 2674
- end: 2783
loc: {...}
start: {...}
- line: 92
- column: 25
}end: {...}
- line: 96
- column: 3
}
}body: [...] (3)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2679
- end: 2717
loc: {...}
start: {...}
- line: 93
- column: 3
}end: {...}
- line: 93
- column: 41
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2683
- end: 2716
loc: {...}
start: {...}
- line: 93
- column: 7
}end: {...}
- line: 93
- column: 40
}
}id: Identifier {...}
- type: "Identifier"
- start: 2683
- end: 2687
loc: {...}
start: {...}
- line: 93
- column: 7
}end: {...}
- line: 93
- column: 11
}
}- name: "path"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2690
- end: 2716
loc: {...}
start: {...}
- line: 93
- column: 14
}end: {...}
- line: 93
- column: 40
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2690
- end: 2703
loc: {...}
start: {...}
- line: 93
- column: 14
}end: {...}
- line: 93
- column: 27
}
}object: Identifier {...}
- type: "Identifier"
- start: 2690
- end: 2694
loc: {...}
start: {...}
- line: 93
- column: 14
}end: {...}
- line: 93
- column: 18
}
}- name: "line"
}property: Identifier {...}
- type: "Identifier"
- start: 2695
- end: 2703
loc: {...}
start: {...}
- line: 93
- column: 19
}end: {...}
- line: 93
- column: 27
}
}- name: "calcLine"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2704
- end: 2715
loc: {...}
start: {...}
- line: 93
- column: 28
}end: {...}
- line: 93
- column: 39
}
}- name: "arrowParams"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2721
- end: 2755
loc: {...}
start: {...}
- line: 94
- column: 3
}end: {...}
- line: 94
- column: 37
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2721
- end: 2754
loc: {...}
start: {...}
- line: 94
- column: 3
}end: {...}
- line: 94
- column: 36
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2721
- end: 2742
loc: {...}
start: {...}
- line: 94
- column: 3
}end: {...}
- line: 94
- column: 24
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 2721
- end: 2731
loc: {...}
start: {...}
- line: 94
- column: 3
}end: {...}
- line: 94
- column: 13
}
}object: Identifier {...}
- type: "Identifier"
- start: 2721
- end: 2725
loc: {...}
start: {...}
- line: 94
- column: 3
}end: {...}
- line: 94
- column: 7
}
}- name: "line"
}property: Identifier {...}
- type: "Identifier"
- start: 2726
- end: 2731
loc: {...}
start: {...}
- line: 94
- column: 8
}end: {...}
- line: 94
- column: 13
}
}- name: "arrow"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 2732
- end: 2742
loc: {...}
start: {...}
- line: 94
- column: 14
}end: {...}
- line: 94
- column: 24
}
}- name: "setLatLngs"
}- computed: false
- optional: false
}arguments: [...] (1)
MemberExpression {...}
- type: "MemberExpression"
- start: 2743
- end: 2753
loc: {...}
start: {...}
- line: 94
- column: 25
}end: {...}
- line: 94
- column: 35
}
}object: Identifier {...}
- type: "Identifier"
- start: 2743
- end: 2747
loc: {...}
start: {...}
- line: 94
- column: 25
}end: {...}
- line: 94
- column: 29
}
}- name: "path"
}property: Identifier {...}
- type: "Identifier"
- start: 2748
- end: 2753
loc: {...}
start: {...}
- line: 94
- column: 30
}end: {...}
- line: 94
- column: 35
}
}- name: "arrow"
}- computed: false
- optional: false
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2759
- end: 2779
loc: {...}
start: {...}
- line: 95
- column: 3
}end: {...}
- line: 95
- column: 23
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2759
- end: 2778
loc: {...}
start: {...}
- line: 95
- column: 3
}end: {...}
- line: 95
- column: 22
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2759
- end: 2776
loc: {...}
start: {...}
- line: 95
- column: 3
}end: {...}
- line: 95
- column: 20
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 2759
- end: 2769
loc: {...}
start: {...}
- line: 95
- column: 3
}end: {...}
- line: 95
- column: 13
}
}object: Identifier {...}
- type: "Identifier"
- start: 2759
- end: 2763
loc: {...}
start: {...}
- line: 95
- column: 3
}end: {...}
- line: 95
- column: 7
}
}- name: "line"
}property: Identifier {...}
- type: "Identifier"
- start: 2764
- end: 2769
loc: {...}
start: {...}
- line: 95
- column: 8
}end: {...}
- line: 95
- column: 13
}
}- name: "arrow"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 2770
- end: 2776
loc: {...}
start: {...}
- line: 95
- column: 14
}end: {...}
- line: 95
- column: 20
}
}- name: "redraw"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
]
}
}
]
}
} LabeledStatement {...}
- type: "LabeledStatement"
- start: 2790
- end: 2826
loc: {...}
start: {...}
- line: 99
- column: 1
}end: {...}
- line: 99
- column: 37
}
}body: ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2793
- end: 2826
loc: {...}
start: {...}
- line: 99
- column: 4
}end: {...}
- line: 99
- column: 37
}
}expression: SequenceExpression {...}
- type: "SequenceExpression"
- start: 2793
- end: 2825
loc: {...}
start: {...}
- line: 99
- column: 4
}end: {...}
- line: 99
- column: 36
}
}expressions: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 2793
- end: 2804
loc: {...}
start: {...}
- line: 99
- column: 4
}end: {...}
- line: 99
- column: 15
}
}- name: "arrowParams"
} CallExpression {...}
- type: "CallExpression"
- start: 2806
- end: 2825
loc: {...}
start: {...}
- line: 99
- column: 17
}end: {...}
- line: 99
- column: 36
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2806
- end: 2823
loc: {...}
start: {...}
- line: 99
- column: 17
}end: {...}
- line: 99
- column: 34
}
}- name: "recalculateArrows"
}- arguments: []
- optional: false
}
]
}
}label: Identifier {...}
- type: "Identifier"
- start: 2790
- end: 2791
loc: {...}
start: {...}
- line: 99
- column: 1
}end: {...}
- line: 99
- column: 2
}
}- name: "$"
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2830
- end: 2880
loc: {...}
start: {...}
- line: 101
- column: 1
}end: {...}
- line: 101
- column: 51
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2834
- end: 2879
loc: {...}
start: {...}
- line: 101
- column: 5
}end: {...}
- line: 101
- column: 50
}
}id: Identifier {...}
- type: "Identifier"
- start: 2834
- end: 2841
loc: {...}
start: {...}
- line: 101
- column: 5
}end: {...}
- line: 101
- column: 12
}
}- name: "toolbar"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2844
- end: 2879
loc: {...}
start: {...}
- line: 101
- column: 15
}end: {...}
- line: 101
- column: 50
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2844
- end: 2853
loc: {...}
start: {...}
- line: 101
- column: 15
}end: {...}
- line: 101
- column: 24
}
}object: Identifier {...}
- type: "Identifier"
- start: 2844
- end: 2845
loc: {...}
start: {...}
- line: 101
- column: 15
}end: {...}
- line: 101
- column: 16
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 2846
- end: 2853
loc: {...}
start: {...}
- line: 101
- column: 17
}end: {...}
- line: 101
- column: 24
}
}- name: "control"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 2854
- end: 2878
loc: {...}
start: {...}
- line: 101
- column: 25
}end: {...}
- line: 101
- column: 49
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 2856
- end: 2876
loc: {...}
start: {...}
- line: 101
- column: 27
}end: {...}
- line: 101
- column: 47
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2856
- end: 2864
loc: {...}
start: {...}
- line: 101
- column: 27
}end: {...}
- line: 101
- column: 35
}
}- name: "position"
}value: Literal {...}
- type: "Literal"
- start: 2866
- end: 2876
loc: {...}
start: {...}
- line: 101
- column: 37
}end: {...}
- line: 101
- column: 47
}
}- value: "topright"
- raw: "'topright'"
}- kind: "init"
}
]
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2882
- end: 2903
loc: {...}
start: {...}
- line: 102
- column: 1
}end: {...}
- line: 102
- column: 22
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2886
- end: 2902
loc: {...}
start: {...}
- line: 102
- column: 5
}end: {...}
- line: 102
- column: 21
}
}id: Identifier {...}
- type: "Identifier"
- start: 2886
- end: 2902
loc: {...}
start: {...}
- line: 102
- column: 5
}end: {...}
- line: 102
- column: 21
}
}- name: "toolbarComponent"
}- init: null
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2905
- end: 3382
loc: {...}
start: {...}
- line: 103
- column: 1
}end: {...}
- line: 120
- column: 2
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 2905
- end: 3382
loc: {...}
start: {...}
- line: 103
- column: 1
}end: {...}
- line: 120
- column: 2
}
}- operator: "="
left: MemberExpression {...}
- type: "MemberExpression"
- start: 2905
- end: 2918
loc: {...}
start: {...}
- line: 103
- column: 1
}end: {...}
- line: 103
- column: 14
}
}object: Identifier {...}
- type: "Identifier"
- start: 2905
- end: 2912
loc: {...}
start: {...}
- line: 103
- column: 1
}end: {...}
- line: 103
- column: 8
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 2913
- end: 2918
loc: {...}
start: {...}
- line: 103
- column: 9
}end: {...}
- line: 103
- column: 14
}
}- name: "onAdd"
}- computed: false
- optional: false
}right: ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 2921
- end: 3382
loc: {...}
start: {...}
- line: 103
- column: 17
}end: {...}
- line: 120
- column: 2
}
}- id: null
- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2922
- end: 2925
loc: {...}
start: {...}
- line: 103
- column: 18
}end: {...}
- line: 103
- column: 21
}
}- name: "map"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 2930
- end: 3382
loc: {...}
start: {...}
- line: 103
- column: 26
}end: {...}
- line: 120
- column: 2
}
}body: [...] (6)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2934
- end: 2968
loc: {...}
start: {...}
- line: 104
- column: 2
}end: {...}
- line: 104
- column: 36
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2938
- end: 2967
loc: {...}
start: {...}
- line: 104
- column: 6
}end: {...}
- line: 104
- column: 35
}
}id: Identifier {...}
- type: "Identifier"
- start: 2938
- end: 2941
loc: {...}
start: {...}
- line: 104
- column: 6
}end: {...}
- line: 104
- column: 9
}
}- name: "div"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2944
- end: 2967
loc: {...}
start: {...}
- line: 104
- column: 12
}end: {...}
- line: 104
- column: 35
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2944
- end: 2960
loc: {...}
start: {...}
- line: 104
- column: 12
}end: {...}
- line: 104
- column: 28
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 2944
- end: 2953
loc: {...}
start: {...}
- line: 104
- column: 12
}end: {...}
- line: 104
- column: 21
}
}object: Identifier {...}
- type: "Identifier"
- start: 2944
- end: 2945
loc: {...}
start: {...}
- line: 104
- column: 12
}end: {...}
- line: 104
- column: 13
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 2946
- end: 2953
loc: {...}
start: {...}
- line: 104
- column: 14
}end: {...}
- line: 104
- column: 21
}
}- name: "DomUtil"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 2954
- end: 2960
loc: {...}
start: {...}
- line: 104
- column: 22
}end: {...}
- line: 104
- column: 28
}
}- name: "create"
}- computed: false
- optional: false
}arguments: [...] (1)
Literal {...}
- type: "Literal"
- start: 2961
- end: 2966
loc: {...}
start: {...}
- line: 104
- column: 29
}end: {...}
- line: 104
- column: 34
}
}- value: "div"
- raw: "'div'"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2971
- end: 3107
loc: {...}
start: {...}
- line: 105
- column: 2
}end: {...}
- line: 112
- column: 5
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 2971
- end: 3106
loc: {...}
start: {...}
- line: 105
- column: 2
}end: {...}
- line: 112
- column: 4
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 2971
- end: 2987
loc: {...}
start: {...}
- line: 105
- column: 2
}end: {...}
- line: 105
- column: 18
}
}- name: "toolbarComponent"
}right: NewExpression {...}
- type: "NewExpression"
- start: 2990
- end: 3106
loc: {...}
start: {...}
- line: 105
- column: 21
}end: {...}
- line: 112
- column: 4
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2994
- end: 3004
loc: {...}
start: {...}
- line: 105
- column: 25
}end: {...}
- line: 105
- column: 35
}
}- name: "MapToolbar"
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 3005
- end: 3105
loc: {...}
start: {...}
- line: 105
- column: 36
}end: {...}
- line: 112
- column: 3
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 3010
- end: 3021
loc: {...}
start: {...}
- line: 106
- column: 3
}end: {...}
- line: 106
- column: 14
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3010
- end: 3016
loc: {...}
start: {...}
- line: 106
- column: 3
}end: {...}
- line: 106
- column: 9
}
}- name: "target"
}value: Identifier {...}
- type: "Identifier"
- start: 3018
- end: 3021
loc: {...}
start: {...}
- line: 106
- column: 11
}end: {...}
- line: 106
- column: 14
}
}- name: "div"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 3026
- end: 3101
loc: {...}
start: {...}
- line: 107
- column: 3
}end: {...}
- line: 111
- column: 4
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3026
- end: 3031
loc: {...}
start: {...}
- line: 107
- column: 3
}end: {...}
- line: 107
- column: 8
}
}- name: "props"
}value: ObjectExpression {...}
- type: "ObjectExpression"
- start: 3033
- end: 3101
loc: {...}
start: {...}
- line: 107
- column: 10
}end: {...}
- line: 111
- column: 4
}
}properties: [...] (3)
Property {...}
- type: "Property"
- start: 3039
- end: 3054
loc: {...}
start: {...}
- line: 108
- column: 4
}end: {...}
- line: 108
- column: 19
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3039
- end: 3054
loc: {...}
start: {...}
- line: 108
- column: 4
}end: {...}
- line: 108
- column: 19
}
}- name: "arrowSideLength"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3039
- end: 3054
loc: {...}
start: {...}
- line: 108
- column: 4
}end: {...}
- line: 108
- column: 19
}
}- name: "arrowSideLength"
}
} Property {...}
- type: "Property"
- start: 3060
- end: 3075
loc: {...}
start: {...}
- line: 109
- column: 4
}end: {...}
- line: 109
- column: 19
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3060
- end: 3075
loc: {...}
start: {...}
- line: 109
- column: 4
}end: {...}
- line: 109
- column: 19
}
}- name: "minArrowSpacing"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3060
- end: 3075
loc: {...}
start: {...}
- line: 109
- column: 4
}end: {...}
- line: 109
- column: 19
}
}- name: "minArrowSpacing"
}
} Property {...}
- type: "Property"
- start: 3081
- end: 3095
loc: {...}
start: {...}
- line: 110
- column: 4
}end: {...}
- line: 110
- column: 18
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3081
- end: 3095
loc: {...}
start: {...}
- line: 110
- column: 4
}end: {...}
- line: 110
- column: 18
}
}- name: "arrowSideAngle"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3081
- end: 3095
loc: {...}
start: {...}
- line: 110
- column: 4
}end: {...}
- line: 110
- column: 18
}
}- name: "arrowSideAngle"
}
}
]
}- kind: "init"
}
]
}
]
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3111
- end: 3193
loc: {...}
start: {...}
- line: 114
- column: 2
}end: {...}
- line: 114
- column: 84
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3111
- end: 3192
loc: {...}
start: {...}
- line: 114
- column: 2
}end: {...}
- line: 114
- column: 83
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3111
- end: 3131
loc: {...}
start: {...}
- line: 114
- column: 2
}end: {...}
- line: 114
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 3111
- end: 3127
loc: {...}
start: {...}
- line: 114
- column: 2
}end: {...}
- line: 114
- column: 18
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 3128
- end: 3131
loc: {...}
start: {...}
- line: 114
- column: 19
}end: {...}
- line: 114
- column: 22
}
}- name: "$on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 3132
- end: 3149
loc: {...}
start: {...}
- line: 114
- column: 23
}end: {...}
- line: 114
- column: 40
}
}- value: "arrowSideLength"
- raw: "'arrowSideLength'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3151
- end: 3191
loc: {...}
start: {...}
- line: 114
- column: 42
}end: {...}
- line: 114
- column: 82
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
ObjectPattern {...}
- type: "ObjectPattern"
- start: 3152
- end: 3162
loc: {...}
start: {...}
- line: 114
- column: 43
}end: {...}
- line: 114
- column: 53
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3154
- end: 3160
loc: {...}
start: {...}
- line: 114
- column: 45
}end: {...}
- line: 114
- column: 51
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3154
- end: 3160
loc: {...}
start: {...}
- line: 114
- column: 45
}end: {...}
- line: 114
- column: 51
}
}- name: "detail"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3154
- end: 3160
loc: {...}
start: {...}
- line: 114
- column: 45
}end: {...}
- line: 114
- column: 51
}
}- name: "detail"
}
}
]
}
]body: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3167
- end: 3191
loc: {...}
start: {...}
- line: 114
- column: 58
}end: {...}
- line: 114
- column: 82
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3167
- end: 3182
loc: {...}
start: {...}
- line: 114
- column: 58
}end: {...}
- line: 114
- column: 73
}
}- name: "arrowSideLength"
}right: Identifier {...}
- type: "Identifier"
- start: 3185
- end: 3191
loc: {...}
start: {...}
- line: 114
- column: 76
}end: {...}
- line: 114
- column: 82
}
}- name: "detail"
}
}
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3196
- end: 3276
loc: {...}
start: {...}
- line: 115
- column: 2
}end: {...}
- line: 115
- column: 82
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3196
- end: 3275
loc: {...}
start: {...}
- line: 115
- column: 2
}end: {...}
- line: 115
- column: 81
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3196
- end: 3216
loc: {...}
start: {...}
- line: 115
- column: 2
}end: {...}
- line: 115
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 3196
- end: 3212
loc: {...}
start: {...}
- line: 115
- column: 2
}end: {...}
- line: 115
- column: 18
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 3213
- end: 3216
loc: {...}
start: {...}
- line: 115
- column: 19
}end: {...}
- line: 115
- column: 22
}
}- name: "$on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 3217
- end: 3233
loc: {...}
start: {...}
- line: 115
- column: 23
}end: {...}
- line: 115
- column: 39
}
}- value: "arrowSideAngle"
- raw: "'arrowSideAngle'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3235
- end: 3274
loc: {...}
start: {...}
- line: 115
- column: 41
}end: {...}
- line: 115
- column: 80
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
ObjectPattern {...}
- type: "ObjectPattern"
- start: 3236
- end: 3246
loc: {...}
start: {...}
- line: 115
- column: 42
}end: {...}
- line: 115
- column: 52
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3238
- end: 3244
loc: {...}
start: {...}
- line: 115
- column: 44
}end: {...}
- line: 115
- column: 50
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3238
- end: 3244
loc: {...}
start: {...}
- line: 115
- column: 44
}end: {...}
- line: 115
- column: 50
}
}- name: "detail"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3238
- end: 3244
loc: {...}
start: {...}
- line: 115
- column: 44
}end: {...}
- line: 115
- column: 50
}
}- name: "detail"
}
}
]
}
]body: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3251
- end: 3274
loc: {...}
start: {...}
- line: 115
- column: 57
}end: {...}
- line: 115
- column: 80
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3251
- end: 3265
loc: {...}
start: {...}
- line: 115
- column: 57
}end: {...}
- line: 115
- column: 71
}
}- name: "arrowSideAngle"
}right: Identifier {...}
- type: "Identifier"
- start: 3268
- end: 3274
loc: {...}
start: {...}
- line: 115
- column: 74
}end: {...}
- line: 115
- column: 80
}
}- name: "detail"
}
}
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3279
- end: 3361
loc: {...}
start: {...}
- line: 116
- column: 2
}end: {...}
- line: 116
- column: 84
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3279
- end: 3360
loc: {...}
start: {...}
- line: 116
- column: 2
}end: {...}
- line: 116
- column: 83
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3279
- end: 3299
loc: {...}
start: {...}
- line: 116
- column: 2
}end: {...}
- line: 116
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 3279
- end: 3295
loc: {...}
start: {...}
- line: 116
- column: 2
}end: {...}
- line: 116
- column: 18
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 3296
- end: 3299
loc: {...}
start: {...}
- line: 116
- column: 19
}end: {...}
- line: 116
- column: 22
}
}- name: "$on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 3300
- end: 3317
loc: {...}
start: {...}
- line: 116
- column: 23
}end: {...}
- line: 116
- column: 40
}
}- value: "minArrowSpacing"
- raw: "'minArrowSpacing'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3319
- end: 3359
loc: {...}
start: {...}
- line: 116
- column: 42
}end: {...}
- line: 116
- column: 82
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
ObjectPattern {...}
- type: "ObjectPattern"
- start: 3320
- end: 3330
loc: {...}
start: {...}
- line: 116
- column: 43
}end: {...}
- line: 116
- column: 53
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3322
- end: 3328
loc: {...}
start: {...}
- line: 116
- column: 45
}end: {...}
- line: 116
- column: 51
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3322
- end: 3328
loc: {...}
start: {...}
- line: 116
- column: 45
}end: {...}
- line: 116
- column: 51
}
}- name: "detail"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3322
- end: 3328
loc: {...}
start: {...}
- line: 116
- column: 45
}end: {...}
- line: 116
- column: 51
}
}- name: "detail"
}
}
]
}
]body: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3335
- end: 3359
loc: {...}
start: {...}
- line: 116
- column: 58
}end: {...}
- line: 116
- column: 82
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3335
- end: 3350
loc: {...}
start: {...}
- line: 116
- column: 58
}end: {...}
- line: 116
- column: 73
}
}- name: "minArrowSpacing"
}right: Identifier {...}
- type: "Identifier"
- start: 3353
- end: 3359
loc: {...}
start: {...}
- line: 116
- column: 76
}end: {...}
- line: 116
- column: 82
}
}- name: "detail"
}
}
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 3368
- end: 3379
loc: {...}
start: {...}
- line: 119
- column: 2
}end: {...}
- line: 119
- column: 13
}
}argument: Identifier {...}
- type: "Identifier"
- start: 3375
- end: 3378
loc: {...}
start: {...}
- line: 119
- column: 9
}end: {...}
- line: 119
- column: 12
}
}- name: "div"
}
}
]
}
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3385
- end: 3504
loc: {...}
start: {...}
- line: 122
- column: 1
}end: {...}
- line: 127
- column: 3
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3385
- end: 3503
loc: {...}
start: {...}
- line: 122
- column: 1
}end: {...}
- line: 127
- column: 2
}
}- operator: "="
left: MemberExpression {...}
- type: "MemberExpression"
- start: 3385
- end: 3401
loc: {...}
start: {...}
- line: 122
- column: 1
}end: {...}
- line: 122
- column: 17
}
}object: Identifier {...}
- type: "Identifier"
- start: 3385
- end: 3392
loc: {...}
start: {...}
- line: 122
- column: 1
}end: {...}
- line: 122
- column: 8
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 3393
- end: 3401
loc: {...}
start: {...}
- line: 122
- column: 9
}end: {...}
- line: 122
- column: 17
}
}- name: "onRemove"
}- computed: false
- optional: false
}right: ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3404
- end: 3503
loc: {...}
start: {...}
- line: 122
- column: 20
}end: {...}
- line: 127
- column: 2
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 3410
- end: 3503
loc: {...}
start: {...}
- line: 122
- column: 26
}end: {...}
- line: 127
- column: 2
}
}body: [...] (1)
IfStatement {...}
- type: "IfStatement"
- start: 3414
- end: 3500
loc: {...}
start: {...}
- line: 123
- column: 2
}end: {...}
- line: 126
- column: 3
}
}test: Identifier {...}
- type: "Identifier"
- start: 3417
- end: 3433
loc: {...}
start: {...}
- line: 123
- column: 5
}end: {...}
- line: 123
- column: 21
}
}- name: "toolbarComponent"
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 3435
- end: 3500
loc: {...}
start: {...}
- line: 123
- column: 23
}end: {...}
- line: 126
- column: 3
}
}body: [...] (2)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3440
- end: 3468
loc: {...}
start: {...}
- line: 124
- column: 3
}end: {...}
- line: 124
- column: 31
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3440
- end: 3467
loc: {...}
start: {...}
- line: 124
- column: 3
}end: {...}
- line: 124
- column: 30
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3440
- end: 3465
loc: {...}
start: {...}
- line: 124
- column: 3
}end: {...}
- line: 124
- column: 28
}
}object: Identifier {...}
- type: "Identifier"
- start: 3440
- end: 3456
loc: {...}
start: {...}
- line: 124
- column: 3
}end: {...}
- line: 124
- column: 19
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 3457
- end: 3465
loc: {...}
start: {...}
- line: 124
- column: 20
}end: {...}
- line: 124
- column: 28
}
}- name: "$destroy"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3472
- end: 3496
loc: {...}
start: {...}
- line: 125
- column: 3
}end: {...}
- line: 125
- column: 27
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3472
- end: 3495
loc: {...}
start: {...}
- line: 125
- column: 3
}end: {...}
- line: 125
- column: 26
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3472
- end: 3488
loc: {...}
start: {...}
- line: 125
- column: 3
}end: {...}
- line: 125
- column: 19
}
}- name: "toolbarComponent"
}right: Literal {...}
- type: "Literal"
- start: 3491
- end: 3495
loc: {...}
start: {...}
- line: 125
- column: 22
}end: {...}
- line: 125
- column: 26
}
}- value: null
- raw: "null"
}
}
}
]
}- alternate: null
}
]
}
}
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 3508
- end: 3872
loc: {...}
start: {...}
- line: 129
- column: 2
}end: {...}
- line: 149
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 3517
- end: 3526
loc: {...}
start: {...}
- line: 129
- column: 11
}end: {...}
- line: 129
- column: 20
}
}- name: "mapAction"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3527
- end: 3536
loc: {...}
start: {...}
- line: 129
- column: 21
}end: {...}
- line: 129
- column: 30
}
}- name: "container"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 3538
- end: 3872
loc: {...}
start: {...}
- line: 129
- column: 32
}end: {...}
- line: 149
- column: 2
}
}body: [...] (6)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3544
- end: 3571
loc: {...}
start: {...}
- line: 130
- column: 4
}end: {...}
- line: 130
- column: 31
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3544
- end: 3570
loc: {...}
start: {...}
- line: 130
- column: 4
}end: {...}
- line: 130
- column: 30
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3544
- end: 3547
loc: {...}
start: {...}
- line: 130
- column: 4
}end: {...}
- line: 130
- column: 7
}
}- name: "map"
}right: CallExpression {...}
- type: "CallExpression"
- start: 3550
- end: 3570
loc: {...}
start: {...}
- line: 130
- column: 10
}end: {...}
- line: 130
- column: 30
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3550
- end: 3559
loc: {...}
start: {...}
- line: 130
- column: 10
}end: {...}
- line: 130
- column: 19
}
}- name: "createMap"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3560
- end: 3569
loc: {...}
start: {...}
- line: 130
- column: 20
}end: {...}
- line: 130
- column: 29
}
}- name: "container"
}
]- optional: false
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3575
- end: 3594
loc: {...}
start: {...}
- line: 131
- column: 2
}end: {...}
- line: 131
- column: 21
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3575
- end: 3593
loc: {...}
start: {...}
- line: 131
- column: 2
}end: {...}
- line: 131
- column: 20
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3575
- end: 3588
loc: {...}
start: {...}
- line: 131
- column: 2
}end: {...}
- line: 131
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 3575
- end: 3582
loc: {...}
start: {...}
- line: 131
- column: 2
}end: {...}
- line: 131
- column: 9
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 3583
- end: 3588
loc: {...}
start: {...}
- line: 131
- column: 10
}end: {...}
- line: 131
- column: 15
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3589
- end: 3592
loc: {...}
start: {...}
- line: 131
- column: 16
}end: {...}
- line: 131
- column: 19
}
}- name: "map"
}
]- optional: false
}
} ForOfStatement {...}
- type: "ForOfStatement"
- start: 3601
- end: 3697
loc: {...}
start: {...}
- line: 133
- column: 3
}end: {...}
- line: 136
- column: 4
}
}- await: false
left: VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3605
- end: 3617
loc: {...}
start: {...}
- line: 133
- column: 7
}end: {...}
- line: 133
- column: 19
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3609
- end: 3617
loc: {...}
start: {...}
- line: 133
- column: 11
}end: {...}
- line: 133
- column: 19
}
}id: Identifier {...}
- type: "Identifier"
- start: 3609
- end: 3617
loc: {...}
start: {...}
- line: 133
- column: 11
}end: {...}
- line: 133
- column: 19
}
}- name: "location"
}- init: null
}
]- kind: "let"
}right: Identifier {...}
- type: "Identifier"
- start: 3621
- end: 3636
loc: {...}
start: {...}
- line: 133
- column: 23
}end: {...}
- line: 133
- column: 38
}
}- name: "markerLocations"
}body: BlockStatement {...}
- type: "BlockStatement"
- start: 3638
- end: 3697
loc: {...}
start: {...}
- line: 133
- column: 40
}end: {...}
- line: 136
- column: 4
}
}body: [...] (2)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3644
- end: 3675
loc: {...}
start: {...}
- line: 134
- column: 4
}end: {...}
- line: 134
- column: 35
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3648
- end: 3674
loc: {...}
start: {...}
- line: 134
- column: 8
}end: {...}
- line: 134
- column: 34
}
}id: Identifier {...}
- type: "Identifier"
- start: 3648
- end: 3649
loc: {...}
start: {...}
- line: 134
- column: 8
}end: {...}
- line: 134
- column: 9
}
}- name: "m"
}init: CallExpression {...}
- type: "CallExpression"
- start: 3652
- end: 3674
loc: {...}
start: {...}
- line: 134
- column: 12
}end: {...}
- line: 134
- column: 34
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3652
- end: 3664
loc: {...}
start: {...}
- line: 134
- column: 12
}end: {...}
- line: 134
- column: 24
}
}- name: "createMarker"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3665
- end: 3673
loc: {...}
start: {...}
- line: 134
- column: 25
}end: {...}
- line: 134
- column: 33
}
}- name: "location"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3679
- end: 3692
loc: {...}
start: {...}
- line: 135
- column: 3
}end: {...}
- line: 135
- column: 16
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3679
- end: 3691
loc: {...}
start: {...}
- line: 135
- column: 3
}end: {...}
- line: 135
- column: 15
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3679
- end: 3686
loc: {...}
start: {...}
- line: 135
- column: 3
}end: {...}
- line: 135
- column: 10
}
}object: Identifier {...}
- type: "Identifier"
- start: 3679
- end: 3680
loc: {...}
start: {...}
- line: 135
- column: 3
}end: {...}
- line: 135
- column: 4
}
}- name: "m"
}property: Identifier {...}
- type: "Identifier"
- start: 3681
- end: 3686
loc: {...}
start: {...}
- line: 135
- column: 5
}end: {...}
- line: 135
- column: 10
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3687
- end: 3690
loc: {...}
start: {...}
- line: 135
- column: 11
}end: {...}
- line: 135
- column: 14
}
}- name: "map"
}
]- optional: false
}
}
]
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3703
- end: 3717
loc: {...}
start: {...}
- line: 138
- column: 2
}end: {...}
- line: 138
- column: 16
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3703
- end: 3716
loc: {...}
start: {...}
- line: 138
- column: 2
}end: {...}
- line: 138
- column: 15
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3703
- end: 3714
loc: {...}
start: {...}
- line: 138
- column: 2
}end: {...}
- line: 138
- column: 13
}
}- name: "createLines"
}- arguments: []
- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3723
- end: 3757
loc: {...}
start: {...}
- line: 140
- column: 2
}end: {...}
- line: 140
- column: 36
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3723
- end: 3756
loc: {...}
start: {...}
- line: 140
- column: 2
}end: {...}
- line: 140
- column: 35
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3723
- end: 3729
loc: {...}
start: {...}
- line: 140
- column: 2
}end: {...}
- line: 140
- column: 8
}
}object: Identifier {...}
- type: "Identifier"
- start: 3723
- end: 3726
loc: {...}
start: {...}
- line: 140
- column: 2
}end: {...}
- line: 140
- column: 5
}
}- name: "map"
}property: Identifier {...}
- type: "Identifier"
- start: 3727
- end: 3729
loc: {...}
start: {...}
- line: 140
- column: 6
}end: {...}
- line: 140
- column: 8
}
}- name: "on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 3730
- end: 3736
loc: {...}
start: {...}
- line: 140
- column: 9
}end: {...}
- line: 140
- column: 15
}
}- value: "zoom"
- raw: "'zoom'"
} Identifier {...}
- type: "Identifier"
- start: 3738
- end: 3755
loc: {...}
start: {...}
- line: 140
- column: 17
}end: {...}
- line: 140
- column: 34
}
}- name: "recalculateArrows"
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 3765
- end: 3869
loc: {...}
start: {...}
- line: 142
- column: 4
}end: {...}
- line: 148
- column: 6
}
}argument: ObjectExpression {...}
- type: "ObjectExpression"
- start: 3772
- end: 3868
loc: {...}
start: {...}
- line: 142
- column: 11
}end: {...}
- line: 148
- column: 5
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3781
- end: 3862
loc: {...}
start: {...}
- line: 143
- column: 7
}end: {...}
- line: 147
- column: 5
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3781
- end: 3788
loc: {...}
start: {...}
- line: 143
- column: 7
}end: {...}
- line: 143
- column: 14
}
}- name: "destroy"
}value: ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3790
- end: 3862
loc: {...}
start: {...}
- line: 143
- column: 16
}end: {...}
- line: 147
- column: 5
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 3796
- end: 3862
loc: {...}
start: {...}
- line: 143
- column: 22
}end: {...}
- line: 147
- column: 5
}
}body: [...] (3)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3803
- end: 3820
loc: {...}
start: {...}
- line: 144
- column: 5
}end: {...}
- line: 144
- column: 22
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3803
- end: 3819
loc: {...}
start: {...}
- line: 144
- column: 5
}end: {...}
- line: 144
- column: 21
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3803
- end: 3817
loc: {...}
start: {...}
- line: 144
- column: 5
}end: {...}
- line: 144
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 3803
- end: 3810
loc: {...}
start: {...}
- line: 144
- column: 5
}end: {...}
- line: 144
- column: 12
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 3811
- end: 3817
loc: {...}
start: {...}
- line: 144
- column: 13
}end: {...}
- line: 144
- column: 19
}
}- name: "remove"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3826
- end: 3839
loc: {...}
start: {...}
- line: 145
- column: 5
}end: {...}
- line: 145
- column: 18
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3826
- end: 3838
loc: {...}
start: {...}
- line: 145
- column: 5
}end: {...}
- line: 145
- column: 17
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3826
- end: 3836
loc: {...}
start: {...}
- line: 145
- column: 5
}end: {...}
- line: 145
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 3826
- end: 3829
loc: {...}
start: {...}
- line: 145
- column: 5
}end: {...}
- line: 145
- column: 8
}
}- name: "map"
}property: Identifier {...}
- type: "Identifier"
- start: 3830
- end: 3836
loc: {...}
start: {...}
- line: 145
- column: 9
}end: {...}
- line: 145
- column: 15
}
}- name: "remove"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3845
- end: 3856
loc: {...}
start: {...}
- line: 146
- column: 5
}end: {...}
- line: 146
- column: 16
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3845
- end: 3855
loc: {...}
start: {...}
- line: 146
- column: 5
}end: {...}
- line: 146
- column: 15
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3845
- end: 3848
loc: {...}
start: {...}
- line: 146
- column: 5
}end: {...}
- line: 146
- column: 8
}
}- name: "map"
}right: Literal {...}
- type: "Literal"
- start: 3851
- end: 3855
loc: {...}
start: {...}
- line: 146
- column: 11
}end: {...}
- line: 146
- column: 15
}
}- value: null
- raw: "null"
}
}
}
]
}
}- kind: "init"
}
]
}
}
]
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 3876
- end: 3939
loc: {...}
start: {...}
- line: 151
- column: 1
}end: {...}
- line: 153
- column: 3
}
}id: Identifier {...}
- type: "Identifier"
- start: 3885
- end: 3894
loc: {...}
start: {...}
- line: 151
- column: 10
}end: {...}
- line: 151
- column: 19
}
}- name: "resizeMap"
}- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 3897
- end: 3939
loc: {...}
start: {...}
- line: 151
- column: 22
}end: {...}
- line: 153
- column: 3
}
}body: [...] (1)
IfStatement {...}
- type: "IfStatement"
- start: 3902
- end: 3935
loc: {...}
start: {...}
- line: 152
- column: 3
}end: {...}
- line: 152
- column: 36
}
}test: Identifier {...}
- type: "Identifier"
- start: 3905
- end: 3908
loc: {...}
start: {...}
- line: 152
- column: 6
}end: {...}
- line: 152
- column: 9
}
}- name: "map"
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 3910
- end: 3935
loc: {...}
start: {...}
- line: 152
- column: 11
}end: {...}
- line: 152
- column: 36
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3912
- end: 3933
loc: {...}
start: {...}
- line: 152
- column: 13
}end: {...}
- line: 152
- column: 34
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3912
- end: 3932
loc: {...}
start: {...}
- line: 152
- column: 13
}end: {...}
- line: 152
- column: 33
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3912
- end: 3930
loc: {...}
start: {...}
- line: 152
- column: 13
}end: {...}
- line: 152
- column: 31
}
}object: Identifier {...}
- type: "Identifier"
- start: 3912
- end: 3915
loc: {...}
start: {...}
- line: 152
- column: 13
}end: {...}
- line: 152
- column: 16
}
}- name: "map"
}property: Identifier {...}
- type: "Identifier"
- start: 3916
- end: 3930
loc: {...}
start: {...}
- line: 152
- column: 17
}end: {...}
- line: 152
- column: 31
}
}- name: "invalidateSize"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
]
}- alternate: null
}
]
}
}
]- sourceType: "module"
}- attributes: []
}
}
The AST is not public API and may change at any point in time