Create new
Bindings
Transitions
Animations
Easing
Component composition
Context API
Special elements
Module context
Debugging
Miscellaneous
App.svelte
MapToolbar.svelte
MarkerPopup.svelte
markers.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 using Svelte features with Leaflet. Original blog post here: https://imfeld.dev/writing/leaflet_with_svelte
The toolbar and the marker popups are both implemented by embedding Svelte components inside Leaflet elements. The marker and lines are toggled by updating the map from reactive statements.
Any questions? Ask me at dimfeld on Twitter!
Thanks to heroicons.dev for all the icons used here.
*/
import L from 'leaflet';
import MapToolbar from './MapToolbar.svelte';
import MarkerPopup from './MarkerPopup.svelte';
import * as markerIcons from './markers.js';
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],
];
const initialView = [39.8283, -98.5795];
function createMap(container) {
let m = L.map(container, {preferCanvas: true }).setView(initialView, 5);
L.tileLayer(
'https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png',
{
attribution: `©<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>,
©<a href="https://carto.com/attributions" target="_blank">CARTO</a>`,
subdomains: 'abcd',
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:154:18) at check_target (playground:output:3596:4) at new MapToolbar (playground:output:18839:3) at App.toolbar.onAdd (playground:output:19003:23) at NewClass.addTo (playground:output:9150:45) at mapAction (playground:output:19084:12) at eval (playground:output:19155:40) at eval (playground:output:3703:32) at untrack (playground:output:2902:11) at eval (playground:output:3703: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 using Svelte features with Leaflet. Original blog post here: https://imfeld.dev/writing/leaflet_with_svelte
The toolbar and the marker popups are both implemented by embedding Svelte components inside Leaflet elements. The marker and lines are toggled by updating the map from reactive statements.
Any questions? Ask me at dimfeld on Twitter!
Thanks to heroicons.dev for all the icons used here.
*/
import L from 'leaflet';
import MapToolbar from './MapToolbar.svelte';
import MarkerPopup from './MarkerPopup.svelte';
import * as markerIcons from './markers.js';
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);
let map = $.mutable_state();
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]
];
const initialView = [39.8283, -98.5795];
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: 4354
- end: 4615
- attributes: []
children: [...] (2)
Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 4363
- end: 4389
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4363
- end: 4389
children: [...] (2)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "map"
- start: 4363
- end: 4367
}
]- start: 4363
- end: 4367
} RelativeSelector {...}
- type: "RelativeSelector"
combinator: Combinator {...}
- type: "Combinator"
- name: " "
- start: 4367
- end: 4368
}selectors: [...] (1)
PseudoClassSelector {...}
- type: "PseudoClassSelector"
- name: "global"
args: SelectorList {...}
- type: "SelectorList"
- start: 4376
- end: 4388
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4376
- end: 4388
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "marker-text"
- start: 4376
- end: 4388
}
]- start: 4376
- end: 4388
}
]
}
]
}- start: 4368
- end: 4389
}
]- start: 4367
- end: 4389
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 4390
- end: 4511
children: [...] (6)
Declaration {...}
- type: "Declaration"
- start: 4394
- end: 4404
- property: "width"
- value: "100%"
} Declaration {...}
- type: "Declaration"
- start: 4408
- end: 4425
- property: "text-align"
- value: "center"
} Declaration {...}
- type: "Declaration"
- start: 4429
- end: 4444
- property: "font-weight"
- value: "600"
} Declaration {...}
- type: "Declaration"
- start: 4448
- end: 4469
- property: "background-color"
- value: "#444"
} Declaration {...}
- type: "Declaration"
- start: 4473
- end: 4483
- property: "color"
- value: "#EEE"
} Declaration {...}
- type: "Declaration"
- start: 4487
- end: 4507
- property: "border-radius"
- value: "0.5rem"
}
]
}- start: 4363
- end: 4511
} Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 4515
- end: 4540
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4515
- end: 4540
children: [...] (2)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "map"
- start: 4515
- end: 4519
}
]- start: 4515
- end: 4519
} RelativeSelector {...}
- type: "RelativeSelector"
combinator: Combinator {...}
- type: "Combinator"
- name: " "
- start: 4519
- end: 4520
}selectors: [...] (1)
PseudoClassSelector {...}
- type: "PseudoClassSelector"
- name: "global"
args: SelectorList {...}
- type: "SelectorList"
- start: 4528
- end: 4539
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 4528
- end: 4539
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "map-marker"
- start: 4528
- end: 4539
}
]- start: 4528
- end: 4539
}
]
}
]
}- start: 4520
- end: 4540
}
]- start: 4519
- end: 4540
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 4541
- end: 4606
children: [...] (2)
Declaration {...}
- type: "Declaration"
- start: 4545
- end: 4555
- property: "width"
- value: "30px"
} Declaration {...}
- type: "Declaration"
- start: 4559
- end: 4602
- property: "transform"
- value: "translateX(-50%) translateY(-25%)"
}
]
}- start: 4515
- end: 4606
}
]content: {...}
- start: 4361
- end: 4607
- 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: 4313
- end: 4891
- type: "Root"
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (7)
Text {...}
- type: "Text"
- start: 4312
- end: 4313
- raw: "\n"
- data: "\n"
} SvelteWindow {...}
- type: "SvelteWindow"
- start: 4313
- end: 4352
- name: "svelte:window"
attributes: [...] (1)
OnDirective {...}
- start: 4328
- end: 4349
- type: "OnDirective"
- name: "resize"
expression: Identifier {...}
- type: "Identifier"
- start: 4339
- end: 4348
loc: {...}
start: {...}
- line: 182
- column: 26
}end: {...}
- line: 182
- column: 35
}
}- name: "resizeMap"
}- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 4352
- end: 4354
- raw: "\n\n"
- data: "\n\n"
} Text {...}
- type: "Text"
- start: 4615
- end: 4617
- raw: "\n\n"
- data: "\n\n"
} RegularElement {...}
- type: "RegularElement"
- start: 4617
- end: 4826
- name: "link"
attributes: [...] (4)
Attribute {...}
- type: "Attribute"
- start: 4623
- end: 4639
- name: "rel"
value: [...] (1)
Text {...}
- start: 4628
- end: 4638
- type: "Text"
- raw: "stylesheet"
- data: "stylesheet"
}
]
} Attribute {...}
- type: "Attribute"
- start: 4640
- end: 4695
- name: "href"
value: [...] (1)
Text {...}
- start: 4646
- end: 4694
- 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: 4699
- end: 4806
- name: "integrity"
value: [...] (1)
Text {...}
- start: 4710
- end: 4805
- type: "Text"
- raw: "sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
- data: "sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
}
]
} Attribute {...}
- type: "Attribute"
- start: 4810
- end: 4824
- name: "crossorigin"
value: [...] (1)
Text {...}
- start: 4823
- end: 4823
- type: "Text"
- raw: ""
- data: ""
}
]
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 4826
- end: 4827
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 4827
- end: 4891
- name: "div"
attributes: [...] (3)
Attribute {...}
- type: "Attribute"
- start: 4832
- end: 4843
- name: "class"
value: [...] (1)
Text {...}
- start: 4839
- end: 4842
- type: "Text"
- raw: "map"
- data: "map"
}
]
} Attribute {...}
- type: "Attribute"
- start: 4844
- end: 4874
- name: "style"
value: [...] (1)
Text {...}
- start: 4851
- end: 4873
- type: "Text"
- raw: "height:100%;width:100%"
- data: "height:100%;width:100%"
}
]
} UseDirective {...}
- start: 4875
- end: 4888
- type: "UseDirective"
- name: "mapAction"
- expression: null
- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
}
]
}- options: null
instance: Script {...}
- type: "Script"
- start: 0
- end: 4312
- context: "default"
content: Program {...}
- type: "Program"
- start: 8
- end: 4303
loc: {...}
start: {...}
- line: 1
- column: 0
}end: {...}
- line: 181
- column: 0
}
}body: [...] (25)
ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 448
- end: 472
loc: {...}
start: {...}
- line: 12
- column: 1
}end: {...}
- line: 12
- column: 25
}
}specifiers: [...] (1)
ImportDefaultSpecifier {...}
- type: "ImportDefaultSpecifier"
- start: 455
- end: 456
loc: {...}
start: {...}
- line: 12
- column: 8
}end: {...}
- line: 12
- column: 9
}
}local: Identifier {...}
- type: "Identifier"
- start: 455
- end: 456
loc: {...}
start: {...}
- line: 12
- column: 8
}end: {...}
- line: 12
- column: 9
}
}- name: "L"
}
}
]source: Literal {...}
- type: "Literal"
- start: 462
- end: 471
loc: {...}
start: {...}
- line: 12
- column: 15
}end: {...}
- line: 12
- column: 24
}
}- value: "leaflet"
- raw: "'leaflet'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 474
- end: 519
loc: {...}
start: {...}
- line: 13
- column: 1
}end: {...}
- line: 13
- column: 46
}
}specifiers: [...] (1)
ImportDefaultSpecifier {...}
- type: "ImportDefaultSpecifier"
- start: 481
- end: 491
loc: {...}
start: {...}
- line: 13
- column: 8
}end: {...}
- line: 13
- column: 18
}
}local: Identifier {...}
- type: "Identifier"
- start: 481
- end: 491
loc: {...}
start: {...}
- line: 13
- column: 8
}end: {...}
- line: 13
- column: 18
}
}- name: "MapToolbar"
}
}
]source: Literal {...}
- type: "Literal"
- start: 497
- end: 518
loc: {...}
start: {...}
- line: 13
- column: 24
}end: {...}
- line: 13
- column: 45
}
}- value: "./MapToolbar.svelte"
- raw: "'./MapToolbar.svelte'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 521
- end: 568
loc: {...}
start: {...}
- line: 14
- column: 1
}end: {...}
- line: 14
- column: 48
}
}specifiers: [...] (1)
ImportDefaultSpecifier {...}
- type: "ImportDefaultSpecifier"
- start: 528
- end: 539
loc: {...}
start: {...}
- line: 14
- column: 8
}end: {...}
- line: 14
- column: 19
}
}local: Identifier {...}
- type: "Identifier"
- start: 528
- end: 539
loc: {...}
start: {...}
- line: 14
- column: 8
}end: {...}
- line: 14
- column: 19
}
}- name: "MarkerPopup"
}
}
]source: Literal {...}
- type: "Literal"
- start: 545
- end: 567
loc: {...}
start: {...}
- line: 14
- column: 25
}end: {...}
- line: 14
- column: 47
}
}- value: "./MarkerPopup.svelte"
- raw: "'./MarkerPopup.svelte'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 570
- end: 614
loc: {...}
start: {...}
- line: 15
- column: 1
}end: {...}
- line: 15
- column: 45
}
}specifiers: [...] (1)
ImportNamespaceSpecifier {...}
- type: "ImportNamespaceSpecifier"
- start: 577
- end: 593
loc: {...}
start: {...}
- line: 15
- column: 8
}end: {...}
- line: 15
- column: 24
}
}local: Identifier {...}
- type: "Identifier"
- start: 582
- end: 593
loc: {...}
start: {...}
- line: 15
- column: 13
}end: {...}
- line: 15
- column: 24
}
}- name: "markerIcons"
}
}
]source: Literal {...}
- type: "Literal"
- start: 599
- end: 613
loc: {...}
start: {...}
- line: 15
- column: 30
}end: {...}
- line: 15
- column: 44
}
}- value: "./markers.js"
- raw: "'./markers.js'"
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 616
- end: 624
loc: {...}
start: {...}
- line: 16
- column: 1
}end: {...}
- line: 16
- column: 9
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 620
- end: 623
loc: {...}
start: {...}
- line: 16
- column: 5
}end: {...}
- line: 16
- column: 8
}
}id: Identifier {...}
- type: "Identifier"
- start: 620
- end: 623
loc: {...}
start: {...}
- line: 16
- column: 5
}end: {...}
- line: 16
- column: 8
}
}- name: "map"
}- init: null
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 628
- end: 816
loc: {...}
start: {...}
- line: 18
- column: 1
}end: {...}
- line: 26
- column: 3
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 634
- end: 815
loc: {...}
start: {...}
- line: 18
- column: 7
}end: {...}
- line: 26
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 634
- end: 649
loc: {...}
start: {...}
- line: 18
- column: 7
}end: {...}
- line: 18
- column: 22
}
}- name: "markerLocations"
}init: ArrayExpression {...}
- type: "ArrayExpression"
- start: 652
- end: 815
loc: {...}
start: {...}
- line: 18
- column: 25
}end: {...}
- line: 26
- column: 2
}
}elements: [...] (7)
ArrayExpression {...}
- type: "ArrayExpression"
- start: 656
- end: 675
loc: {...}
start: {...}
- line: 19
- column: 2
}end: {...}
- line: 19
- column: 21
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 657
- end: 664
loc: {...}
start: {...}
- line: 19
- column: 3
}end: {...}
- line: 19
- column: 10
}
}- value: 29.8283
- raw: "29.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 666
- end: 674
loc: {...}
start: {...}
- line: 19
- column: 12
}end: {...}
- line: 19
- column: 20
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 667
- end: 674
loc: {...}
start: {...}
- line: 19
- column: 13
}end: {...}
- line: 19
- column: 20
}
}- value: 96.5795
- raw: "96.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 679
- end: 698
loc: {...}
start: {...}
- line: 20
- column: 2
}end: {...}
- line: 20
- column: 21
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 680
- end: 687
loc: {...}
start: {...}
- line: 20
- column: 3
}end: {...}
- line: 20
- column: 10
}
}- value: 37.8283
- raw: "37.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 689
- end: 697
loc: {...}
start: {...}
- line: 20
- column: 12
}end: {...}
- line: 20
- column: 20
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 690
- end: 697
loc: {...}
start: {...}
- line: 20
- column: 13
}end: {...}
- line: 20
- column: 20
}
}- value: 90.5795
- raw: "90.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 702
- end: 722
loc: {...}
start: {...}
- line: 21
- column: 2
}end: {...}
- line: 21
- column: 22
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 703
- end: 710
loc: {...}
start: {...}
- line: 21
- column: 3
}end: {...}
- line: 21
- column: 10
}
}- value: 43.8283
- raw: "43.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 712
- end: 721
loc: {...}
start: {...}
- line: 21
- column: 12
}end: {...}
- line: 21
- column: 21
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 713
- end: 721
loc: {...}
start: {...}
- line: 21
- column: 13
}end: {...}
- line: 21
- column: 21
}
}- value: 102.5795
- raw: "102.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 726
- end: 744
loc: {...}
start: {...}
- line: 22
- column: 2
}end: {...}
- line: 22
- column: 20
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 727
- end: 732
loc: {...}
start: {...}
- line: 22
- column: 3
}end: {...}
- line: 22
- column: 8
}
}- value: 48.4
- raw: "48.40"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 734
- end: 743
loc: {...}
start: {...}
- line: 22
- column: 10
}end: {...}
- line: 22
- column: 19
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 735
- end: 743
loc: {...}
start: {...}
- line: 22
- column: 11
}end: {...}
- line: 22
- column: 19
}
}- value: 122.5795
- raw: "122.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 748
- end: 765
loc: {...}
start: {...}
- line: 23
- column: 2
}end: {...}
- line: 23
- column: 19
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 749
- end: 754
loc: {...}
start: {...}
- line: 23
- column: 3
}end: {...}
- line: 23
- column: 8
}
}- value: 43.6
- raw: "43.60"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 756
- end: 764
loc: {...}
start: {...}
- line: 23
- column: 10
}end: {...}
- line: 23
- column: 18
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 757
- end: 764
loc: {...}
start: {...}
- line: 23
- column: 11
}end: {...}
- line: 23
- column: 18
}
}- value: 79.5795
- raw: "79.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 769
- end: 789
loc: {...}
start: {...}
- line: 24
- column: 2
}end: {...}
- line: 24
- column: 22
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 770
- end: 777
loc: {...}
start: {...}
- line: 24
- column: 3
}end: {...}
- line: 24
- column: 10
}
}- value: 36.8283
- raw: "36.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 779
- end: 788
loc: {...}
start: {...}
- line: 24
- column: 12
}end: {...}
- line: 24
- column: 21
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 780
- end: 788
loc: {...}
start: {...}
- line: 24
- column: 13
}end: {...}
- line: 24
- column: 21
}
}- value: 100.5795
- raw: "100.5795"
}
}
]
} ArrayExpression {...}
- type: "ArrayExpression"
- start: 793
- end: 811
loc: {...}
start: {...}
- line: 25
- column: 2
}end: {...}
- line: 25
- column: 20
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 794
- end: 799
loc: {...}
start: {...}
- line: 25
- column: 3
}end: {...}
- line: 25
- column: 8
}
}- value: 38.4
- raw: "38.40"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 801
- end: 810
loc: {...}
start: {...}
- line: 25
- column: 10
}end: {...}
- line: 25
- column: 19
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 802
- end: 810
loc: {...}
start: {...}
- line: 25
- column: 11
}end: {...}
- line: 25
- column: 19
}
}- value: 122.5795
- raw: "122.5795"
}
}
]
}
]
}
}
]- kind: "const"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 820
- end: 860
loc: {...}
start: {...}
- line: 28
- column: 1
}end: {...}
- line: 28
- column: 41
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 826
- end: 859
loc: {...}
start: {...}
- line: 28
- column: 7
}end: {...}
- line: 28
- column: 40
}
}id: Identifier {...}
- type: "Identifier"
- start: 826
- end: 837
loc: {...}
start: {...}
- line: 28
- column: 7
}end: {...}
- line: 28
- column: 18
}
}- name: "initialView"
}init: ArrayExpression {...}
- type: "ArrayExpression"
- start: 840
- end: 859
loc: {...}
start: {...}
- line: 28
- column: 21
}end: {...}
- line: 28
- column: 40
}
}elements: [...] (2)
Literal {...}
- type: "Literal"
- start: 841
- end: 848
loc: {...}
start: {...}
- line: 28
- column: 22
}end: {...}
- line: 28
- column: 29
}
}- value: 39.8283
- raw: "39.8283"
} UnaryExpression {...}
- type: "UnaryExpression"
- start: 850
- end: 858
loc: {...}
start: {...}
- line: 28
- column: 31
}end: {...}
- line: 28
- column: 39
}
}- operator: "-"
- prefix: true
argument: Literal {...}
- type: "Literal"
- start: 851
- end: 858
loc: {...}
start: {...}
- line: 28
- column: 32
}end: {...}
- line: 28
- column: 39
}
}- value: 98.5795
- raw: "98.5795"
}
}
]
}
}
]- kind: "const"
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 862
- end: 1358
loc: {...}
start: {...}
- line: 29
- column: 1
}end: {...}
- line: 42
- column: 3
}
}id: Identifier {...}
- type: "Identifier"
- start: 871
- end: 880
loc: {...}
start: {...}
- line: 29
- column: 10
}end: {...}
- line: 29
- column: 19
}
}- name: "createMap"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 881
- end: 890
loc: {...}
start: {...}
- line: 29
- column: 20
}end: {...}
- line: 29
- column: 29
}
}- name: "container"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 892
- end: 1358
loc: {...}
start: {...}
- line: 29
- column: 31
}end: {...}
- line: 42
- column: 3
}
}body: [...] (3)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 897
- end: 969
loc: {...}
start: {...}
- line: 30
- column: 3
}end: {...}
- line: 30
- column: 75
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 901
- end: 968
loc: {...}
start: {...}
- line: 30
- column: 7
}end: {...}
- line: 30
- column: 74
}
}id: Identifier {...}
- type: "Identifier"
- start: 901
- end: 902
loc: {...}
start: {...}
- line: 30
- column: 7
}end: {...}
- line: 30
- column: 8
}
}- name: "m"
}init: CallExpression {...}
- type: "CallExpression"
- start: 905
- end: 968
loc: {...}
start: {...}
- line: 30
- column: 11
}end: {...}
- line: 30
- column: 74
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 905
- end: 952
loc: {...}
start: {...}
- line: 30
- column: 11
}end: {...}
- line: 30
- column: 58
}
}object: CallExpression {...}
- type: "CallExpression"
- start: 905
- end: 944
loc: {...}
start: {...}
- line: 30
- column: 11
}end: {...}
- line: 30
- column: 50
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 905
- end: 910
loc: {...}
start: {...}
- line: 30
- column: 11
}end: {...}
- line: 30
- column: 16
}
}object: Identifier {...}
- type: "Identifier"
- start: 905
- end: 906
loc: {...}
start: {...}
- line: 30
- column: 11
}end: {...}
- line: 30
- column: 12
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 907
- end: 910
loc: {...}
start: {...}
- line: 30
- column: 13
}end: {...}
- line: 30
- column: 16
}
}- name: "map"
}- computed: false
- optional: false
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 911
- end: 920
loc: {...}
start: {...}
- line: 30
- column: 17
}end: {...}
- line: 30
- column: 26
}
}- name: "container"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 922
- end: 943
loc: {...}
start: {...}
- line: 30
- column: 28
}end: {...}
- line: 30
- column: 49
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 923
- end: 941
loc: {...}
start: {...}
- line: 30
- column: 29
}end: {...}
- line: 30
- column: 47
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 923
- end: 935
loc: {...}
start: {...}
- line: 30
- column: 29
}end: {...}
- line: 30
- column: 41
}
}- name: "preferCanvas"
}value: Literal {...}
- type: "Literal"
- start: 937
- end: 941
loc: {...}
start: {...}
- line: 30
- column: 43
}end: {...}
- line: 30
- column: 47
}
}- value: true
- raw: "true"
}- kind: "init"
}
]
}
]- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 945
- end: 952
loc: {...}
start: {...}
- line: 30
- column: 51
}end: {...}
- line: 30
- column: 58
}
}- name: "setView"
}- computed: false
- optional: false
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 953
- end: 964
loc: {...}
start: {...}
- line: 30
- column: 59
}end: {...}
- line: 30
- column: 70
}
}- name: "initialView"
} Literal {...}
- type: "Literal"
- start: 966
- end: 967
loc: {...}
start: {...}
- line: 30
- column: 72
}end: {...}
- line: 30
- column: 73
}
}- value: 5
- raw: "5"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 974
- end: 1339
loc: {...}
start: {...}
- line: 31
- column: 4
}end: {...}
- line: 39
- column: 14
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 974
- end: 1338
loc: {...}
start: {...}
- line: 31
- column: 4
}end: {...}
- line: 39
- column: 13
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 974
- end: 1335
loc: {...}
start: {...}
- line: 31
- column: 4
}end: {...}
- line: 39
- column: 10
}
}object: CallExpression {...}
- type: "CallExpression"
- start: 974
- end: 1329
loc: {...}
start: {...}
- line: 31
- column: 4
}end: {...}
- line: 39
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 974
- end: 985
loc: {...}
start: {...}
- line: 31
- column: 4
}end: {...}
- line: 31
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 974
- end: 975
loc: {...}
start: {...}
- line: 31
- column: 4
}end: {...}
- line: 31
- column: 5
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 976
- end: 985
loc: {...}
start: {...}
- line: 31
- column: 6
}end: {...}
- line: 31
- column: 15
}
}- name: "tileLayer"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 992
- end: 1066
loc: {...}
start: {...}
- line: 32
- column: 5
}end: {...}
- line: 32
- 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: 1073
- end: 1324
loc: {...}
start: {...}
- line: 33
- column: 5
}end: {...}
- line: 38
- column: 6
}
}properties: [...] (3)
Property {...}
- type: "Property"
- start: 1082
- end: 1269
loc: {...}
start: {...}
- line: 34
- column: 7
}end: {...}
- line: 35
- column: 82
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1082
- end: 1093
loc: {...}
start: {...}
- line: 34
- column: 7
}end: {...}
- line: 34
- column: 18
}
}- name: "attribution"
}value: TemplateLiteral {...}
- type: "TemplateLiteral"
- start: 1095
- end: 1269
loc: {...}
start: {...}
- line: 34
- column: 20
}end: {...}
- line: 35
- column: 82
}
}- expressions: []
quasis: [...] (1)
TemplateElement {...}
- type: "TemplateElement"
- start: 1096
- end: 1268
loc: {...}
start: {...}
- line: 34
- column: 21
}end: {...}
- line: 35
- 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: 1278
- end: 1296
loc: {...}
start: {...}
- line: 36
- column: 7
}end: {...}
- line: 36
- column: 25
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1278
- end: 1288
loc: {...}
start: {...}
- line: 36
- column: 7
}end: {...}
- line: 36
- column: 17
}
}- name: "subdomains"
}value: Literal {...}
- type: "Literal"
- start: 1290
- end: 1296
loc: {...}
start: {...}
- line: 36
- column: 19
}end: {...}
- line: 36
- column: 25
}
}- value: "abcd"
- raw: "'abcd'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 1305
- end: 1316
loc: {...}
start: {...}
- line: 37
- column: 7
}end: {...}
- line: 37
- column: 18
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1305
- end: 1312
loc: {...}
start: {...}
- line: 37
- column: 7
}end: {...}
- line: 37
- column: 14
}
}- name: "maxZoom"
}value: Literal {...}
- type: "Literal"
- start: 1314
- end: 1316
loc: {...}
start: {...}
- line: 37
- column: 16
}end: {...}
- line: 37
- column: 18
}
}- value: 14
- raw: "14"
}- kind: "init"
}
]
}
]- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1330
- end: 1335
loc: {...}
start: {...}
- line: 39
- column: 5
}end: {...}
- line: 39
- column: 10
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1336
- end: 1337
loc: {...}
start: {...}
- line: 39
- column: 11
}end: {...}
- line: 39
- column: 12
}
}- name: "m"
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 1345
- end: 1354
loc: {...}
start: {...}
- line: 41
- column: 4
}end: {...}
- line: 41
- column: 13
}
}argument: Identifier {...}
- type: "Identifier"
- start: 1352
- end: 1353
loc: {...}
start: {...}
- line: 41
- column: 11
}end: {...}
- line: 41
- column: 12
}
}- name: "m"
}
}
]
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1362
- end: 1377
loc: {...}
start: {...}
- line: 44
- column: 1
}end: {...}
- line: 44
- column: 16
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1366
- end: 1376
loc: {...}
start: {...}
- line: 44
- column: 5
}end: {...}
- line: 44
- column: 15
}
}id: Identifier {...}
- type: "Identifier"
- start: 1366
- end: 1369
loc: {...}
start: {...}
- line: 44
- column: 5
}end: {...}
- line: 44
- column: 8
}
}- name: "eye"
}init: Literal {...}
- type: "Literal"
- start: 1372
- end: 1376
loc: {...}
start: {...}
- line: 44
- column: 11
}end: {...}
- line: 44
- column: 15
}
}- value: true
- raw: "true"
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1379
- end: 1396
loc: {...}
start: {...}
- line: 45
- column: 1
}end: {...}
- line: 45
- column: 18
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1383
- end: 1395
loc: {...}
start: {...}
- line: 45
- column: 5
}end: {...}
- line: 45
- column: 17
}
}id: Identifier {...}
- type: "Identifier"
- start: 1383
- end: 1388
loc: {...}
start: {...}
- line: 45
- column: 5
}end: {...}
- line: 45
- column: 10
}
}- name: "lines"
}init: Literal {...}
- type: "Literal"
- start: 1391
- end: 1395
loc: {...}
start: {...}
- line: 45
- column: 13
}end: {...}
- line: 45
- column: 17
}
}- value: true
- raw: "true"
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1400
- end: 1450
loc: {...}
start: {...}
- line: 47
- column: 1
}end: {...}
- line: 47
- column: 51
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1404
- end: 1449
loc: {...}
start: {...}
- line: 47
- column: 5
}end: {...}
- line: 47
- column: 50
}
}id: Identifier {...}
- type: "Identifier"
- start: 1404
- end: 1411
loc: {...}
start: {...}
- line: 47
- column: 5
}end: {...}
- line: 47
- column: 12
}
}- name: "toolbar"
}init: CallExpression {...}
- type: "CallExpression"
- start: 1414
- end: 1449
loc: {...}
start: {...}
- line: 47
- column: 15
}end: {...}
- line: 47
- column: 50
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1414
- end: 1423
loc: {...}
start: {...}
- line: 47
- column: 15
}end: {...}
- line: 47
- column: 24
}
}object: Identifier {...}
- type: "Identifier"
- start: 1414
- end: 1415
loc: {...}
start: {...}
- line: 47
- column: 15
}end: {...}
- line: 47
- column: 16
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 1416
- end: 1423
loc: {...}
start: {...}
- line: 47
- column: 17
}end: {...}
- line: 47
- column: 24
}
}- name: "control"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 1424
- end: 1448
loc: {...}
start: {...}
- line: 47
- column: 25
}end: {...}
- line: 47
- column: 49
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 1426
- end: 1446
loc: {...}
start: {...}
- line: 47
- column: 27
}end: {...}
- line: 47
- column: 47
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1426
- end: 1434
loc: {...}
start: {...}
- line: 47
- column: 27
}end: {...}
- line: 47
- column: 35
}
}- name: "position"
}value: Literal {...}
- type: "Literal"
- start: 1436
- end: 1446
loc: {...}
start: {...}
- line: 47
- column: 37
}end: {...}
- line: 47
- column: 47
}
}- value: "topright"
- raw: "'topright'"
}- kind: "init"
}
]
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1452
- end: 1473
loc: {...}
start: {...}
- line: 48
- column: 1
}end: {...}
- line: 48
- column: 22
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1456
- end: 1472
loc: {...}
start: {...}
- line: 48
- column: 5
}end: {...}
- line: 48
- column: 21
}
}id: Identifier {...}
- type: "Identifier"
- start: 1456
- end: 1472
loc: {...}
start: {...}
- line: 48
- column: 5
}end: {...}
- line: 48
- column: 21
}
}- name: "toolbarComponent"
}- init: null
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1475
- end: 1869
loc: {...}
start: {...}
- line: 49
- column: 1
}end: {...}
- line: 63
- column: 2
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1475
- end: 1869
loc: {...}
start: {...}
- line: 49
- column: 1
}end: {...}
- line: 63
- column: 2
}
}- operator: "="
left: MemberExpression {...}
- type: "MemberExpression"
- start: 1475
- end: 1488
loc: {...}
start: {...}
- line: 49
- column: 1
}end: {...}
- line: 49
- column: 14
}
}object: Identifier {...}
- type: "Identifier"
- start: 1475
- end: 1482
loc: {...}
start: {...}
- line: 49
- column: 1
}end: {...}
- line: 49
- column: 8
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 1483
- end: 1488
loc: {...}
start: {...}
- line: 49
- column: 9
}end: {...}
- line: 49
- column: 14
}
}- name: "onAdd"
}- computed: false
- optional: false
}right: ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 1491
- end: 1869
loc: {...}
start: {...}
- line: 49
- column: 17
}end: {...}
- line: 63
- column: 2
}
}- id: null
- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1492
- end: 1495
loc: {...}
start: {...}
- line: 49
- column: 18
}end: {...}
- line: 49
- column: 21
}
}- name: "map"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 1500
- end: 1869
loc: {...}
start: {...}
- line: 49
- column: 26
}end: {...}
- line: 63
- column: 2
}
}body: [...] (6)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1504
- end: 1538
loc: {...}
start: {...}
- line: 50
- column: 2
}end: {...}
- line: 50
- column: 36
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1508
- end: 1537
loc: {...}
start: {...}
- line: 50
- column: 6
}end: {...}
- line: 50
- column: 35
}
}id: Identifier {...}
- type: "Identifier"
- start: 1508
- end: 1511
loc: {...}
start: {...}
- line: 50
- column: 6
}end: {...}
- line: 50
- column: 9
}
}- name: "div"
}init: CallExpression {...}
- type: "CallExpression"
- start: 1514
- end: 1537
loc: {...}
start: {...}
- line: 50
- column: 12
}end: {...}
- line: 50
- column: 35
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1514
- end: 1530
loc: {...}
start: {...}
- line: 50
- column: 12
}end: {...}
- line: 50
- column: 28
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 1514
- end: 1523
loc: {...}
start: {...}
- line: 50
- column: 12
}end: {...}
- line: 50
- column: 21
}
}object: Identifier {...}
- type: "Identifier"
- start: 1514
- end: 1515
loc: {...}
start: {...}
- line: 50
- column: 12
}end: {...}
- line: 50
- column: 13
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 1516
- end: 1523
loc: {...}
start: {...}
- line: 50
- column: 14
}end: {...}
- line: 50
- column: 21
}
}- name: "DomUtil"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1524
- end: 1530
loc: {...}
start: {...}
- line: 50
- column: 22
}end: {...}
- line: 50
- column: 28
}
}- name: "create"
}- computed: false
- optional: false
}arguments: [...] (1)
Literal {...}
- type: "Literal"
- start: 1531
- end: 1536
loc: {...}
start: {...}
- line: 50
- column: 29
}end: {...}
- line: 50
- column: 34
}
}- value: "div"
- raw: "'div'"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1541
- end: 1611
loc: {...}
start: {...}
- line: 51
- column: 2
}end: {...}
- line: 54
- column: 5
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1541
- end: 1610
loc: {...}
start: {...}
- line: 51
- column: 2
}end: {...}
- line: 54
- column: 4
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 1541
- end: 1557
loc: {...}
start: {...}
- line: 51
- column: 2
}end: {...}
- line: 51
- column: 18
}
}- name: "toolbarComponent"
}right: NewExpression {...}
- type: "NewExpression"
- start: 1560
- end: 1610
loc: {...}
start: {...}
- line: 51
- column: 21
}end: {...}
- line: 54
- column: 4
}
}callee: Identifier {...}
- type: "Identifier"
- start: 1564
- end: 1574
loc: {...}
start: {...}
- line: 51
- column: 25
}end: {...}
- line: 51
- column: 35
}
}- name: "MapToolbar"
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 1575
- end: 1609
loc: {...}
start: {...}
- line: 51
- column: 36
}end: {...}
- line: 54
- column: 3
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 1580
- end: 1591
loc: {...}
start: {...}
- line: 52
- column: 3
}end: {...}
- line: 52
- column: 14
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1580
- end: 1586
loc: {...}
start: {...}
- line: 52
- column: 3
}end: {...}
- line: 52
- column: 9
}
}- name: "target"
}value: Identifier {...}
- type: "Identifier"
- start: 1588
- end: 1591
loc: {...}
start: {...}
- line: 52
- column: 11
}end: {...}
- line: 52
- column: 14
}
}- name: "div"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 1596
- end: 1605
loc: {...}
start: {...}
- line: 53
- column: 3
}end: {...}
- line: 53
- column: 12
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1596
- end: 1601
loc: {...}
start: {...}
- line: 53
- column: 3
}end: {...}
- line: 53
- column: 8
}
}- name: "props"
}value: ObjectExpression {...}
- type: "ObjectExpression"
- start: 1603
- end: 1605
loc: {...}
start: {...}
- line: 53
- column: 10
}end: {...}
- line: 53
- column: 12
}
}- properties: []
}- kind: "init"
}
]
}
]
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1615
- end: 1679
loc: {...}
start: {...}
- line: 56
- column: 2
}end: {...}
- line: 56
- column: 66
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 1615
- end: 1678
loc: {...}
start: {...}
- line: 56
- column: 2
}end: {...}
- line: 56
- column: 65
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1615
- end: 1635
loc: {...}
start: {...}
- line: 56
- column: 2
}end: {...}
- line: 56
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 1615
- end: 1631
loc: {...}
start: {...}
- line: 56
- column: 2
}end: {...}
- line: 56
- column: 18
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 1632
- end: 1635
loc: {...}
start: {...}
- line: 56
- column: 19
}end: {...}
- line: 56
- column: 22
}
}- name: "$on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 1636
- end: 1647
loc: {...}
start: {...}
- line: 56
- column: 23
}end: {...}
- line: 56
- column: 34
}
}- value: "click-eye"
- raw: "'click-eye'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 1649
- end: 1677
loc: {...}
start: {...}
- line: 56
- column: 36
}end: {...}
- line: 56
- column: 64
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
ObjectPattern {...}
- type: "ObjectPattern"
- start: 1650
- end: 1660
loc: {...}
start: {...}
- line: 56
- column: 37
}end: {...}
- line: 56
- column: 47
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 1652
- end: 1658
loc: {...}
start: {...}
- line: 56
- column: 39
}end: {...}
- line: 56
- column: 45
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1652
- end: 1658
loc: {...}
start: {...}
- line: 56
- column: 39
}end: {...}
- line: 56
- column: 45
}
}- name: "detail"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 1652
- end: 1658
loc: {...}
start: {...}
- line: 56
- column: 39
}end: {...}
- line: 56
- column: 45
}
}- name: "detail"
}
}
]
}
]body: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1665
- end: 1677
loc: {...}
start: {...}
- line: 56
- column: 52
}end: {...}
- line: 56
- column: 64
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 1665
- end: 1668
loc: {...}
start: {...}
- line: 56
- column: 52
}end: {...}
- line: 56
- column: 55
}
}- name: "eye"
}right: Identifier {...}
- type: "Identifier"
- start: 1671
- end: 1677
loc: {...}
start: {...}
- line: 56
- column: 58
}end: {...}
- line: 56
- column: 64
}
}- name: "detail"
}
}
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1682
- end: 1750
loc: {...}
start: {...}
- line: 57
- column: 2
}end: {...}
- line: 57
- column: 70
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 1682
- end: 1749
loc: {...}
start: {...}
- line: 57
- column: 2
}end: {...}
- line: 57
- column: 69
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1682
- end: 1702
loc: {...}
start: {...}
- line: 57
- column: 2
}end: {...}
- line: 57
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 1682
- end: 1698
loc: {...}
start: {...}
- line: 57
- column: 2
}end: {...}
- line: 57
- column: 18
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 1699
- end: 1702
loc: {...}
start: {...}
- line: 57
- column: 19
}end: {...}
- line: 57
- column: 22
}
}- name: "$on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 1703
- end: 1716
loc: {...}
start: {...}
- line: 57
- column: 23
}end: {...}
- line: 57
- column: 36
}
}- value: "click-lines"
- raw: "'click-lines'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 1718
- end: 1748
loc: {...}
start: {...}
- line: 57
- column: 38
}end: {...}
- line: 57
- column: 68
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
ObjectPattern {...}
- type: "ObjectPattern"
- start: 1719
- end: 1729
loc: {...}
start: {...}
- line: 57
- column: 39
}end: {...}
- line: 57
- column: 49
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 1721
- end: 1727
loc: {...}
start: {...}
- line: 57
- column: 41
}end: {...}
- line: 57
- column: 47
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1721
- end: 1727
loc: {...}
start: {...}
- line: 57
- column: 41
}end: {...}
- line: 57
- column: 47
}
}- name: "detail"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 1721
- end: 1727
loc: {...}
start: {...}
- line: 57
- column: 41
}end: {...}
- line: 57
- column: 47
}
}- name: "detail"
}
}
]
}
]body: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1734
- end: 1748
loc: {...}
start: {...}
- line: 57
- column: 54
}end: {...}
- line: 57
- column: 68
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 1734
- end: 1739
loc: {...}
start: {...}
- line: 57
- column: 54
}end: {...}
- line: 57
- column: 59
}
}- name: "lines"
}right: Identifier {...}
- type: "Identifier"
- start: 1742
- end: 1748
loc: {...}
start: {...}
- line: 57
- column: 62
}end: {...}
- line: 57
- column: 68
}
}- name: "detail"
}
}
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1753
- end: 1851
loc: {...}
start: {...}
- line: 58
- column: 2
}end: {...}
- line: 60
- column: 4
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 1753
- end: 1851
loc: {...}
start: {...}
- line: 58
- column: 2
}end: {...}
- line: 60
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1753
- end: 1773
loc: {...}
start: {...}
- line: 58
- column: 2
}end: {...}
- line: 58
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 1753
- end: 1769
loc: {...}
start: {...}
- line: 58
- column: 2
}end: {...}
- line: 58
- column: 18
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 1770
- end: 1773
loc: {...}
start: {...}
- line: 58
- column: 19
}end: {...}
- line: 58
- column: 22
}
}- name: "$on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 1774
- end: 1787
loc: {...}
start: {...}
- line: 58
- column: 23
}end: {...}
- line: 58
- column: 36
}
}- value: "click-reset"
- raw: "'click-reset'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 1789
- end: 1850
loc: {...}
start: {...}
- line: 58
- column: 38
}end: {...}
- line: 60
- column: 3
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 1795
- end: 1850
loc: {...}
start: {...}
- line: 58
- column: 44
}end: {...}
- line: 60
- column: 3
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1800
- end: 1846
loc: {...}
start: {...}
- line: 59
- column: 3
}end: {...}
- line: 59
- column: 49
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 1800
- end: 1846
loc: {...}
start: {...}
- line: 59
- column: 3
}end: {...}
- line: 59
- column: 49
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1800
- end: 1811
loc: {...}
start: {...}
- line: 59
- column: 3
}end: {...}
- line: 59
- column: 14
}
}object: Identifier {...}
- type: "Identifier"
- start: 1800
- end: 1803
loc: {...}
start: {...}
- line: 59
- column: 3
}end: {...}
- line: 59
- column: 6
}
}- name: "map"
}property: Identifier {...}
- type: "Identifier"
- start: 1804
- end: 1811
loc: {...}
start: {...}
- line: 59
- column: 7
}end: {...}
- line: 59
- column: 14
}
}- name: "setView"
}- computed: false
- optional: false
}arguments: [...] (3)
Identifier {...}
- type: "Identifier"
- start: 1812
- end: 1823
loc: {...}
start: {...}
- line: 59
- column: 15
}end: {...}
- line: 59
- column: 26
}
}- name: "initialView"
} Literal {...}
- type: "Literal"
- start: 1825
- end: 1826
loc: {...}
start: {...}
- line: 59
- column: 28
}end: {...}
- line: 59
- column: 29
}
}- value: 5
- raw: "5"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 1828
- end: 1845
loc: {...}
start: {...}
- line: 59
- column: 31
}end: {...}
- line: 59
- column: 48
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 1830
- end: 1843
loc: {...}
start: {...}
- line: 59
- column: 33
}end: {...}
- line: 59
- column: 46
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1830
- end: 1837
loc: {...}
start: {...}
- line: 59
- column: 33
}end: {...}
- line: 59
- column: 40
}
}- name: "animate"
}value: Literal {...}
- type: "Literal"
- start: 1839
- end: 1843
loc: {...}
start: {...}
- line: 59
- column: 42
}end: {...}
- line: 59
- column: 46
}
}- value: true
- raw: "true"
}- kind: "init"
}
]
}
]- optional: false
}
}
]
}
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 1855
- end: 1866
loc: {...}
start: {...}
- line: 62
- column: 2
}end: {...}
- line: 62
- column: 13
}
}argument: Identifier {...}
- type: "Identifier"
- start: 1862
- end: 1865
loc: {...}
start: {...}
- line: 62
- column: 9
}end: {...}
- line: 62
- column: 12
}
}- name: "div"
}
}
]
}
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1872
- end: 1991
loc: {...}
start: {...}
- line: 65
- column: 1
}end: {...}
- line: 70
- column: 3
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1872
- end: 1990
loc: {...}
start: {...}
- line: 65
- column: 1
}end: {...}
- line: 70
- column: 2
}
}- operator: "="
left: MemberExpression {...}
- type: "MemberExpression"
- start: 1872
- end: 1888
loc: {...}
start: {...}
- line: 65
- column: 1
}end: {...}
- line: 65
- column: 17
}
}object: Identifier {...}
- type: "Identifier"
- start: 1872
- end: 1879
loc: {...}
start: {...}
- line: 65
- column: 1
}end: {...}
- line: 65
- column: 8
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 1880
- end: 1888
loc: {...}
start: {...}
- line: 65
- column: 9
}end: {...}
- line: 65
- column: 17
}
}- name: "onRemove"
}- computed: false
- optional: false
}right: ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 1891
- end: 1990
loc: {...}
start: {...}
- line: 65
- column: 20
}end: {...}
- line: 70
- column: 2
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 1897
- end: 1990
loc: {...}
start: {...}
- line: 65
- column: 26
}end: {...}
- line: 70
- column: 2
}
}body: [...] (1)
IfStatement {...}
- type: "IfStatement"
- start: 1901
- end: 1987
loc: {...}
start: {...}
- line: 66
- column: 2
}end: {...}
- line: 69
- column: 3
}
}test: Identifier {...}
- type: "Identifier"
- start: 1904
- end: 1920
loc: {...}
start: {...}
- line: 66
- column: 5
}end: {...}
- line: 66
- column: 21
}
}- name: "toolbarComponent"
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 1922
- end: 1987
loc: {...}
start: {...}
- line: 66
- column: 23
}end: {...}
- line: 69
- column: 3
}
}body: [...] (2)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1927
- end: 1955
loc: {...}
start: {...}
- line: 67
- column: 3
}end: {...}
- line: 67
- column: 31
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 1927
- end: 1954
loc: {...}
start: {...}
- line: 67
- column: 3
}end: {...}
- line: 67
- column: 30
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1927
- end: 1952
loc: {...}
start: {...}
- line: 67
- column: 3
}end: {...}
- line: 67
- column: 28
}
}object: Identifier {...}
- type: "Identifier"
- start: 1927
- end: 1943
loc: {...}
start: {...}
- line: 67
- column: 3
}end: {...}
- line: 67
- column: 19
}
}- name: "toolbarComponent"
}property: Identifier {...}
- type: "Identifier"
- start: 1944
- end: 1952
loc: {...}
start: {...}
- line: 67
- column: 20
}end: {...}
- line: 67
- column: 28
}
}- name: "$destroy"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1959
- end: 1983
loc: {...}
start: {...}
- line: 68
- column: 3
}end: {...}
- line: 68
- column: 27
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1959
- end: 1982
loc: {...}
start: {...}
- line: 68
- column: 3
}end: {...}
- line: 68
- column: 26
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 1959
- end: 1975
loc: {...}
start: {...}
- line: 68
- column: 3
}end: {...}
- line: 68
- column: 19
}
}- name: "toolbarComponent"
}right: Literal {...}
- type: "Literal"
- start: 1978
- end: 1982
loc: {...}
start: {...}
- line: 68
- column: 22
}end: {...}
- line: 68
- column: 26
}
}- value: null
- raw: "null"
}
}
}
]
}- alternate: null
}
]
}
}
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 2207
- end: 2652
loc: {...}
start: {...}
- line: 74
- column: 1
}end: {...}
- line: 93
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 2216
- end: 2225
loc: {...}
start: {...}
- line: 74
- column: 10
}end: {...}
- line: 74
- column: 19
}
}- name: "bindPopup"
}- expression: false
- generator: false
- async: false
params: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 2226
- end: 2232
loc: {...}
start: {...}
- line: 74
- column: 20
}end: {...}
- line: 74
- column: 26
}
}- name: "marker"
} Identifier {...}
- type: "Identifier"
- start: 2234
- end: 2242
loc: {...}
start: {...}
- line: 74
- column: 28
}end: {...}
- line: 74
- column: 36
}
}- name: "createFn"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 2244
- end: 2652
loc: {...}
start: {...}
- line: 74
- column: 38
}end: {...}
- line: 93
- column: 2
}
}body: [...] (3)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2248
- end: 2267
loc: {...}
start: {...}
- line: 75
- column: 2
}end: {...}
- line: 75
- column: 21
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2252
- end: 2266
loc: {...}
start: {...}
- line: 75
- column: 6
}end: {...}
- line: 75
- column: 20
}
}id: Identifier {...}
- type: "Identifier"
- start: 2252
- end: 2266
loc: {...}
start: {...}
- line: 75
- column: 6
}end: {...}
- line: 75
- column: 20
}
}- name: "popupComponent"
}- init: null
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2270
- end: 2406
loc: {...}
start: {...}
- line: 76
- column: 2
}end: {...}
- line: 80
- column: 5
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2270
- end: 2405
loc: {...}
start: {...}
- line: 76
- column: 2
}end: {...}
- line: 80
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2270
- end: 2286
loc: {...}
start: {...}
- line: 76
- column: 2
}end: {...}
- line: 76
- column: 18
}
}object: Identifier {...}
- type: "Identifier"
- start: 2270
- end: 2276
loc: {...}
start: {...}
- line: 76
- column: 2
}end: {...}
- line: 76
- column: 8
}
}- name: "marker"
}property: Identifier {...}
- type: "Identifier"
- start: 2277
- end: 2286
loc: {...}
start: {...}
- line: 76
- column: 9
}end: {...}
- line: 76
- column: 18
}
}- name: "bindPopup"
}- computed: false
- optional: false
}arguments: [...] (1)
ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 2287
- end: 2404
loc: {...}
start: {...}
- line: 76
- column: 19
}end: {...}
- line: 80
- column: 3
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 2293
- end: 2404
loc: {...}
start: {...}
- line: 76
- column: 25
}end: {...}
- line: 80
- column: 3
}
}body: [...] (3)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2298
- end: 2338
loc: {...}
start: {...}
- line: 77
- column: 3
}end: {...}
- line: 77
- column: 43
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2302
- end: 2337
loc: {...}
start: {...}
- line: 77
- column: 7
}end: {...}
- line: 77
- column: 42
}
}id: Identifier {...}
- type: "Identifier"
- start: 2302
- end: 2311
loc: {...}
start: {...}
- line: 77
- column: 7
}end: {...}
- line: 77
- column: 16
}
}- name: "container"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2314
- end: 2337
loc: {...}
start: {...}
- line: 77
- column: 19
}end: {...}
- line: 77
- column: 42
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2314
- end: 2330
loc: {...}
start: {...}
- line: 77
- column: 19
}end: {...}
- line: 77
- column: 35
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 2314
- end: 2323
loc: {...}
start: {...}
- line: 77
- column: 19
}end: {...}
- line: 77
- column: 28
}
}object: Identifier {...}
- type: "Identifier"
- start: 2314
- end: 2315
loc: {...}
start: {...}
- line: 77
- column: 19
}end: {...}
- line: 77
- column: 20
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 2316
- end: 2323
loc: {...}
start: {...}
- line: 77
- column: 21
}end: {...}
- line: 77
- column: 28
}
}- name: "DomUtil"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 2324
- end: 2330
loc: {...}
start: {...}
- line: 77
- column: 29
}end: {...}
- line: 77
- column: 35
}
}- name: "create"
}- computed: false
- optional: false
}arguments: [...] (1)
Literal {...}
- type: "Literal"
- start: 2331
- end: 2336
loc: {...}
start: {...}
- line: 77
- column: 36
}end: {...}
- line: 77
- column: 41
}
}- value: "div"
- raw: "'div'"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2342
- end: 2379
loc: {...}
start: {...}
- line: 78
- column: 3
}end: {...}
- line: 78
- column: 40
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 2342
- end: 2378
loc: {...}
start: {...}
- line: 78
- column: 3
}end: {...}
- line: 78
- column: 39
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 2342
- end: 2356
loc: {...}
start: {...}
- line: 78
- column: 3
}end: {...}
- line: 78
- column: 17
}
}- name: "popupComponent"
}right: CallExpression {...}
- type: "CallExpression"
- start: 2359
- end: 2378
loc: {...}
start: {...}
- line: 78
- column: 20
}end: {...}
- line: 78
- column: 39
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2359
- end: 2367
loc: {...}
start: {...}
- line: 78
- column: 20
}end: {...}
- line: 78
- column: 28
}
}- name: "createFn"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2368
- end: 2377
loc: {...}
start: {...}
- line: 78
- column: 29
}end: {...}
- line: 78
- column: 38
}
}- name: "container"
}
]- optional: false
}
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 2383
- end: 2400
loc: {...}
start: {...}
- line: 79
- column: 3
}end: {...}
- line: 79
- column: 20
}
}argument: Identifier {...}
- type: "Identifier"
- start: 2390
- end: 2399
loc: {...}
start: {...}
- line: 79
- column: 10
}end: {...}
- line: 79
- column: 19
}
}- name: "container"
}
}
]
}
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2410
- end: 2649
loc: {...}
start: {...}
- line: 82
- column: 2
}end: {...}
- line: 92
- column: 5
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2410
- end: 2648
loc: {...}
start: {...}
- line: 82
- column: 2
}end: {...}
- line: 92
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2410
- end: 2419
loc: {...}
start: {...}
- line: 82
- column: 2
}end: {...}
- line: 82
- column: 11
}
}object: Identifier {...}
- type: "Identifier"
- start: 2410
- end: 2416
loc: {...}
start: {...}
- line: 82
- column: 2
}end: {...}
- line: 82
- column: 8
}
}- name: "marker"
}property: Identifier {...}
- type: "Identifier"
- start: 2417
- end: 2419
loc: {...}
start: {...}
- line: 82
- column: 9
}end: {...}
- line: 82
- column: 11
}
}- name: "on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 2420
- end: 2432
loc: {...}
start: {...}
- line: 82
- column: 12
}end: {...}
- line: 82
- column: 24
}
}- value: "popupclose"
- raw: "'popupclose'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 2434
- end: 2647
loc: {...}
start: {...}
- line: 82
- column: 26
}end: {...}
- line: 92
- column: 3
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 2440
- end: 2647
loc: {...}
start: {...}
- line: 82
- column: 32
}end: {...}
- line: 92
- column: 3
}
}body: [...] (1)
IfStatement {...}
- type: "IfStatement"
- start: 2445
- end: 2643
loc: {...}
start: {...}
- line: 83
- column: 3
}end: {...}
- line: 91
- column: 4
}
}test: Identifier {...}
- type: "Identifier"
- start: 2448
- end: 2462
loc: {...}
start: {...}
- line: 83
- column: 6
}end: {...}
- line: 83
- column: 20
}
}- name: "popupComponent"
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 2464
- end: 2643
loc: {...}
start: {...}
- line: 83
- column: 22
}end: {...}
- line: 91
- column: 4
}
}body: [...] (3)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2470
- end: 2495
loc: {...}
start: {...}
- line: 84
- column: 4
}end: {...}
- line: 84
- column: 29
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2474
- end: 2494
loc: {...}
start: {...}
- line: 84
- column: 8
}end: {...}
- line: 84
- column: 28
}
}id: Identifier {...}
- type: "Identifier"
- start: 2474
- end: 2477
loc: {...}
start: {...}
- line: 84
- column: 8
}end: {...}
- line: 84
- column: 11
}
}- name: "old"
}init: Identifier {...}
- type: "Identifier"
- start: 2480
- end: 2494
loc: {...}
start: {...}
- line: 84
- column: 14
}end: {...}
- line: 84
- column: 28
}
}- name: "popupComponent"
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2500
- end: 2522
loc: {...}
start: {...}
- line: 85
- column: 4
}end: {...}
- line: 85
- column: 26
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 2500
- end: 2521
loc: {...}
start: {...}
- line: 85
- column: 4
}end: {...}
- line: 85
- column: 25
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 2500
- end: 2514
loc: {...}
start: {...}
- line: 85
- column: 4
}end: {...}
- line: 85
- column: 18
}
}- name: "popupComponent"
}right: Literal {...}
- type: "Literal"
- start: 2517
- end: 2521
loc: {...}
start: {...}
- line: 85
- column: 21
}end: {...}
- line: 85
- column: 25
}
}- value: null
- raw: "null"
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2585
- end: 2637
loc: {...}
start: {...}
- line: 87
- column: 4
}end: {...}
- line: 89
- column: 12
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2585
- end: 2636
loc: {...}
start: {...}
- line: 87
- column: 4
}end: {...}
- line: 89
- column: 11
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2585
- end: 2595
loc: {...}
start: {...}
- line: 87
- column: 4
}end: {...}
- line: 87
- column: 14
}
}- name: "setTimeout"
}arguments: [...] (2)
ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 2596
- end: 2630
loc: {...}
start: {...}
- line: 87
- column: 15
}end: {...}
- line: 89
- column: 5
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 2602
- end: 2630
loc: {...}
start: {...}
- line: 87
- column: 21
}end: {...}
- line: 89
- column: 5
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 2609
- end: 2624
loc: {...}
start: {...}
- line: 88
- column: 5
}end: {...}
- line: 88
- column: 20
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 2609
- end: 2623
loc: {...}
start: {...}
- line: 88
- column: 5
}end: {...}
- line: 88
- column: 19
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2609
- end: 2621
loc: {...}
start: {...}
- line: 88
- column: 5
}end: {...}
- line: 88
- column: 17
}
}object: Identifier {...}
- type: "Identifier"
- start: 2609
- end: 2612
loc: {...}
start: {...}
- line: 88
- column: 5
}end: {...}
- line: 88
- column: 8
}
}- name: "old"
}property: Identifier {...}
- type: "Identifier"
- start: 2613
- end: 2621
loc: {...}
start: {...}
- line: 88
- column: 9
}end: {...}
- line: 88
- column: 17
}
}- name: "$destroy"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
]
}
} Literal {...}
- type: "Literal"
- start: 2632
- end: 2635
loc: {...}
start: {...}
- line: 89
- column: 7
}end: {...}
- line: 89
- column: 10
}
}- value: 500
- raw: "500"
}
]- optional: false
}leadingComments: [...] (1)
Line {...}
- type: "Line"
- value: " Wait to destroy until after the fadeout completes."
- start: 2527
- end: 2580
}
]
}
]
}- alternate: null
}
]
}
}
]- optional: false
}
}
]
}leadingComments: [...] (2)
Line {...}
- type: "Line"
- value: " Create a popup with a Svelte component inside it and handle removal when the popup is torn down."
- start: 1995
- end: 2094
} Line {...}
- type: "Line"
- value: " `createFn` will be called whenever the popup is being created, and should create and return the component."
- start: 2096
- end: 2205
}
]
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2656
- end: 2680
loc: {...}
start: {...}
- line: 95
- column: 1
}end: {...}
- line: 95
- column: 25
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2660
- end: 2679
loc: {...}
start: {...}
- line: 95
- column: 5
}end: {...}
- line: 95
- column: 24
}
}id: Identifier {...}
- type: "Identifier"
- start: 2660
- end: 2667
loc: {...}
start: {...}
- line: 95
- column: 5
}end: {...}
- line: 95
- column: 12
}
}- name: "markers"
}init: NewExpression {...}
- type: "NewExpression"
- start: 2670
- end: 2679
loc: {...}
start: {...}
- line: 95
- column: 15
}end: {...}
- line: 95
- column: 24
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2674
- end: 2677
loc: {...}
start: {...}
- line: 95
- column: 19
}end: {...}
- line: 95
- column: 22
}
}- name: "Map"
}- arguments: []
}
}
]- kind: "let"
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 2684
- end: 2897
loc: {...}
start: {...}
- line: 97
- column: 1
}end: {...}
- line: 103
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 2693
- end: 2703
loc: {...}
start: {...}
- line: 97
- column: 10
}end: {...}
- line: 97
- column: 20
}
}- name: "markerIcon"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2704
- end: 2709
loc: {...}
start: {...}
- line: 97
- column: 21
}end: {...}
- line: 97
- column: 26
}
}- name: "count"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 2711
- end: 2897
loc: {...}
start: {...}
- line: 97
- column: 28
}end: {...}
- line: 103
- column: 2
}
}body: [...] (2)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2715
- end: 2831
loc: {...}
start: {...}
- line: 98
- column: 2
}end: {...}
- line: 98
- column: 118
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2719
- end: 2830
loc: {...}
start: {...}
- line: 98
- column: 6
}end: {...}
- line: 98
- column: 117
}
}id: Identifier {...}
- type: "Identifier"
- start: 2719
- end: 2723
loc: {...}
start: {...}
- line: 98
- column: 6
}end: {...}
- line: 98
- column: 10
}
}- name: "html"
}init: TemplateLiteral {...}
- type: "TemplateLiteral"
- start: 2726
- end: 2830
loc: {...}
start: {...}
- line: 98
- column: 13
}end: {...}
- line: 98
- column: 117
}
}expressions: [...] (2)
MemberExpression {...}
- type: "MemberExpression"
- start: 2758
- end: 2777
loc: {...}
start: {...}
- line: 98
- column: 45
}end: {...}
- line: 98
- column: 64
}
}object: Identifier {...}
- type: "Identifier"
- start: 2758
- end: 2769
loc: {...}
start: {...}
- line: 98
- column: 45
}end: {...}
- line: 98
- column: 56
}
}- name: "markerIcons"
}property: Identifier {...}
- type: "Identifier"
- start: 2770
- end: 2777
loc: {...}
start: {...}
- line: 98
- column: 57
}end: {...}
- line: 98
- column: 64
}
}- name: "library"
}- computed: false
- optional: false
} Identifier {...}
- type: "Identifier"
- start: 2811
- end: 2816
loc: {...}
start: {...}
- line: 98
- column: 98
}end: {...}
- line: 98
- column: 103
}
}- name: "count"
}
]quasis: [...] (3)
TemplateElement {...}
- type: "TemplateElement"
- start: 2727
- end: 2756
loc: {...}
start: {...}
- line: 98
- column: 14
}end: {...}
- line: 98
- column: 43
}
}value: {...}
- raw: "<div class=\"map-marker\"><div>"
- cooked: "<div class=\"map-marker\"><div>"
}- tail: false
} TemplateElement {...}
- type: "TemplateElement"
- start: 2778
- end: 2809
loc: {...}
start: {...}
- line: 98
- column: 65
}end: {...}
- line: 98
- column: 96
}
}value: {...}
- raw: "</div><div class=\"marker-text\">"
- cooked: "</div><div class=\"marker-text\">"
}- tail: false
} TemplateElement {...}
- type: "TemplateElement"
- start: 2817
- end: 2829
loc: {...}
start: {...}
- line: 98
- column: 104
}end: {...}
- line: 98
- column: 116
}
}value: {...}
- raw: "</div></div>"
- cooked: "</div></div>"
}- tail: true
}
]
}
}
]- kind: "let"
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 2834
- end: 2894
loc: {...}
start: {...}
- line: 99
- column: 2
}end: {...}
- line: 102
- column: 5
}
}argument: CallExpression {...}
- type: "CallExpression"
- start: 2841
- end: 2893
loc: {...}
start: {...}
- line: 99
- column: 9
}end: {...}
- line: 102
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2841
- end: 2850
loc: {...}
start: {...}
- line: 99
- column: 9
}end: {...}
- line: 99
- column: 18
}
}object: Identifier {...}
- type: "Identifier"
- start: 2841
- end: 2842
loc: {...}
start: {...}
- line: 99
- column: 9
}end: {...}
- line: 99
- column: 10
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 2843
- end: 2850
loc: {...}
start: {...}
- line: 99
- column: 11
}end: {...}
- line: 99
- column: 18
}
}- name: "divIcon"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 2851
- end: 2892
loc: {...}
start: {...}
- line: 99
- column: 19
}end: {...}
- line: 102
- column: 3
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 2856
- end: 2860
loc: {...}
start: {...}
- line: 100
- column: 3
}end: {...}
- line: 100
- column: 7
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2856
- end: 2860
loc: {...}
start: {...}
- line: 100
- column: 3
}end: {...}
- line: 100
- column: 7
}
}- name: "html"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 2856
- end: 2860
loc: {...}
start: {...}
- line: 100
- column: 3
}end: {...}
- line: 100
- column: 7
}
}- name: "html"
}
} Property {...}
- type: "Property"
- start: 2865
- end: 2888
loc: {...}
start: {...}
- line: 101
- column: 3
}end: {...}
- line: 101
- column: 26
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2865
- end: 2874
loc: {...}
start: {...}
- line: 101
- column: 3
}end: {...}
- line: 101
- column: 12
}
}- name: "className"
}value: Literal {...}
- type: "Literal"
- start: 2876
- end: 2888
loc: {...}
start: {...}
- line: 101
- column: 14
}end: {...}
- line: 101
- column: 26
}
}- value: "map-marker"
- raw: "'map-marker'"
}- kind: "init"
}
]
}
]- optional: false
}
}
]
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 2902
- end: 3306
loc: {...}
start: {...}
- line: 106
- column: 1
}end: {...}
- line: 127
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 2911
- end: 2923
loc: {...}
start: {...}
- line: 106
- column: 10
}end: {...}
- line: 106
- column: 22
}
}- name: "createMarker"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 2924
- end: 2927
loc: {...}
start: {...}
- line: 106
- column: 23
}end: {...}
- line: 106
- column: 26
}
}- name: "loc"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 2929
- end: 3306
loc: {...}
start: {...}
- line: 106
- column: 28
}end: {...}
- line: 127
- column: 2
}
}body: [...] (5)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2933
- end: 2975
loc: {...}
start: {...}
- line: 107
- column: 2
}end: {...}
- line: 107
- column: 44
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2937
- end: 2974
loc: {...}
start: {...}
- line: 107
- column: 6
}end: {...}
- line: 107
- column: 43
}
}id: Identifier {...}
- type: "Identifier"
- start: 2937
- end: 2942
loc: {...}
start: {...}
- line: 107
- column: 6
}end: {...}
- line: 107
- column: 11
}
}- name: "count"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2945
- end: 2974
loc: {...}
start: {...}
- line: 107
- column: 14
}end: {...}
- line: 107
- column: 43
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2945
- end: 2954
loc: {...}
start: {...}
- line: 107
- column: 14
}end: {...}
- line: 107
- column: 23
}
}object: Identifier {...}
- type: "Identifier"
- start: 2945
- end: 2949
loc: {...}
start: {...}
- line: 107
- column: 14
}end: {...}
- line: 107
- column: 18
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 2950
- end: 2954
loc: {...}
start: {...}
- line: 107
- column: 19
}end: {...}
- line: 107
- column: 23
}
}- name: "ceil"
}- computed: false
- optional: false
}arguments: [...] (1)
BinaryExpression {...}
- type: "BinaryExpression"
- start: 2955
- end: 2973
loc: {...}
start: {...}
- line: 107
- column: 24
}end: {...}
- line: 107
- column: 42
}
}left: CallExpression {...}
- type: "CallExpression"
- start: 2955
- end: 2968
loc: {...}
start: {...}
- line: 107
- column: 24
}end: {...}
- line: 107
- column: 37
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2955
- end: 2966
loc: {...}
start: {...}
- line: 107
- column: 24
}end: {...}
- line: 107
- column: 35
}
}object: Identifier {...}
- type: "Identifier"
- start: 2955
- end: 2959
loc: {...}
start: {...}
- line: 107
- column: 24
}end: {...}
- line: 107
- column: 28
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 2960
- end: 2966
loc: {...}
start: {...}
- line: 107
- column: 29
}end: {...}
- line: 107
- column: 35
}
}- name: "random"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}- operator: "*"
right: Literal {...}
- type: "Literal"
- start: 2971
- end: 2973
loc: {...}
start: {...}
- line: 107
- column: 40
}end: {...}
- line: 107
- column: 42
}
}- value: 25
- raw: "25"
}
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 2978
- end: 3007
loc: {...}
start: {...}
- line: 108
- column: 2
}end: {...}
- line: 108
- column: 31
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 2982
- end: 3006
loc: {...}
start: {...}
- line: 108
- column: 6
}end: {...}
- line: 108
- column: 30
}
}id: Identifier {...}
- type: "Identifier"
- start: 2982
- end: 2986
loc: {...}
start: {...}
- line: 108
- column: 6
}end: {...}
- line: 108
- column: 10
}
}- name: "icon"
}init: CallExpression {...}
- type: "CallExpression"
- start: 2989
- end: 3006
loc: {...}
start: {...}
- line: 108
- column: 13
}end: {...}
- line: 108
- column: 30
}
}callee: Identifier {...}
- type: "Identifier"
- start: 2989
- end: 2999
loc: {...}
start: {...}
- line: 108
- column: 13
}end: {...}
- line: 108
- column: 23
}
}- name: "markerIcon"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3000
- end: 3005
loc: {...}
start: {...}
- line: 108
- column: 24
}end: {...}
- line: 108
- column: 29
}
}- name: "count"
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3010
- end: 3045
loc: {...}
start: {...}
- line: 109
- column: 2
}end: {...}
- line: 109
- column: 37
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3014
- end: 3044
loc: {...}
start: {...}
- line: 109
- column: 6
}end: {...}
- line: 109
- column: 36
}
}id: Identifier {...}
- type: "Identifier"
- start: 3014
- end: 3020
loc: {...}
start: {...}
- line: 109
- column: 6
}end: {...}
- line: 109
- column: 12
}
}- name: "marker"
}init: CallExpression {...}
- type: "CallExpression"
- start: 3023
- end: 3044
loc: {...}
start: {...}
- line: 109
- column: 15
}end: {...}
- line: 109
- column: 36
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3023
- end: 3031
loc: {...}
start: {...}
- line: 109
- column: 15
}end: {...}
- line: 109
- column: 23
}
}object: Identifier {...}
- type: "Identifier"
- start: 3023
- end: 3024
loc: {...}
start: {...}
- line: 109
- column: 15
}end: {...}
- line: 109
- column: 16
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 3025
- end: 3031
loc: {...}
start: {...}
- line: 109
- column: 17
}end: {...}
- line: 109
- column: 23
}
}- name: "marker"
}- computed: false
- optional: false
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 3032
- end: 3035
loc: {...}
start: {...}
- line: 109
- column: 24
}end: {...}
- line: 109
- column: 27
}
}- name: "loc"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 3037
- end: 3043
loc: {...}
start: {...}
- line: 109
- column: 29
}end: {...}
- line: 109
- column: 35
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3038
- end: 3042
loc: {...}
start: {...}
- line: 109
- column: 30
}end: {...}
- line: 109
- column: 34
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3038
- end: 3042
loc: {...}
start: {...}
- line: 109
- column: 30
}end: {...}
- line: 109
- column: 34
}
}- name: "icon"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3038
- end: 3042
loc: {...}
start: {...}
- line: 109
- column: 30
}end: {...}
- line: 109
- column: 34
}
}- name: "icon"
}
}
]
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3048
- end: 3283
loc: {...}
start: {...}
- line: 110
- column: 2
}end: {...}
- line: 124
- column: 5
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3048
- end: 3282
loc: {...}
start: {...}
- line: 110
- column: 2
}end: {...}
- line: 124
- column: 4
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3048
- end: 3057
loc: {...}
start: {...}
- line: 110
- column: 2
}end: {...}
- line: 110
- column: 11
}
}- name: "bindPopup"
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 3058
- end: 3064
loc: {...}
start: {...}
- line: 110
- column: 12
}end: {...}
- line: 110
- column: 18
}
}- name: "marker"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3066
- end: 3281
loc: {...}
start: {...}
- line: 110
- column: 20
}end: {...}
- line: 124
- column: 3
}
}- id: null
- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3067
- end: 3068
loc: {...}
start: {...}
- line: 110
- column: 21
}end: {...}
- line: 110
- column: 22
}
}- name: "m"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 3073
- end: 3281
loc: {...}
start: {...}
- line: 110
- column: 27
}end: {...}
- line: 124
- column: 3
}
}body: [...] (3)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3078
- end: 3155
loc: {...}
start: {...}
- line: 111
- column: 3
}end: {...}
- line: 116
- column: 6
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3082
- end: 3154
loc: {...}
start: {...}
- line: 111
- column: 7
}end: {...}
- line: 116
- column: 5
}
}id: Identifier {...}
- type: "Identifier"
- start: 3082
- end: 3083
loc: {...}
start: {...}
- line: 111
- column: 7
}end: {...}
- line: 111
- column: 8
}
}- name: "c"
}init: NewExpression {...}
- type: "NewExpression"
- start: 3086
- end: 3154
loc: {...}
start: {...}
- line: 111
- column: 11
}end: {...}
- line: 116
- column: 5
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3090
- end: 3101
loc: {...}
start: {...}
- line: 111
- column: 15
}end: {...}
- line: 111
- column: 26
}
}- name: "MarkerPopup"
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 3102
- end: 3153
loc: {...}
start: {...}
- line: 111
- column: 27
}end: {...}
- line: 116
- column: 4
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 3108
- end: 3117
loc: {...}
start: {...}
- line: 112
- column: 4
}end: {...}
- line: 112
- column: 13
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3108
- end: 3114
loc: {...}
start: {...}
- line: 112
- column: 4
}end: {...}
- line: 112
- column: 10
}
}- name: "target"
}value: Identifier {...}
- type: "Identifier"
- start: 3116
- end: 3117
loc: {...}
start: {...}
- line: 112
- column: 12
}end: {...}
- line: 112
- column: 13
}
}- name: "m"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 3123
- end: 3148
loc: {...}
start: {...}
- line: 113
- column: 4
}end: {...}
- line: 115
- column: 5
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3123
- end: 3128
loc: {...}
start: {...}
- line: 113
- column: 4
}end: {...}
- line: 113
- column: 9
}
}- name: "props"
}value: ObjectExpression {...}
- type: "ObjectExpression"
- start: 3130
- end: 3148
loc: {...}
start: {...}
- line: 113
- column: 11
}end: {...}
- line: 115
- column: 5
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3137
- end: 3142
loc: {...}
start: {...}
- line: 114
- column: 5
}end: {...}
- line: 114
- column: 10
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3137
- end: 3142
loc: {...}
start: {...}
- line: 114
- column: 5
}end: {...}
- line: 114
- column: 10
}
}- name: "count"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3137
- end: 3142
loc: {...}
start: {...}
- line: 114
- column: 5
}end: {...}
- line: 114
- column: 10
}
}- name: "count"
}
}
]
}- kind: "init"
}
]
}
]
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3163
- end: 3260
loc: {...}
start: {...}
- line: 118
- column: 3
}end: {...}
- line: 121
- column: 6
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3163
- end: 3259
loc: {...}
start: {...}
- line: 118
- column: 3
}end: {...}
- line: 121
- column: 5
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3163
- end: 3168
loc: {...}
start: {...}
- line: 118
- column: 3
}end: {...}
- line: 118
- column: 8
}
}object: Identifier {...}
- type: "Identifier"
- start: 3163
- end: 3164
loc: {...}
start: {...}
- line: 118
- column: 3
}end: {...}
- line: 118
- column: 4
}
}- name: "c"
}property: Identifier {...}
- type: "Identifier"
- start: 3165
- end: 3168
loc: {...}
start: {...}
- line: 118
- column: 5
}end: {...}
- line: 118
- column: 8
}
}- name: "$on"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 3169
- end: 3177
loc: {...}
start: {...}
- line: 118
- column: 9
}end: {...}
- line: 118
- column: 17
}
}- value: "change"
- raw: "'change'"
} ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3179
- end: 3258
loc: {...}
start: {...}
- line: 118
- column: 19
}end: {...}
- line: 121
- column: 4
}
}- id: null
- expression: false
- generator: false
- async: false
params: [...] (1)
ObjectPattern {...}
- type: "ObjectPattern"
- start: 3180
- end: 3188
loc: {...}
start: {...}
- line: 118
- column: 20
}end: {...}
- line: 118
- column: 28
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3181
- end: 3187
loc: {...}
start: {...}
- line: 118
- column: 21
}end: {...}
- line: 118
- column: 27
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3181
- end: 3187
loc: {...}
start: {...}
- line: 118
- column: 21
}end: {...}
- line: 118
- column: 27
}
}- name: "detail"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 3181
- end: 3187
loc: {...}
start: {...}
- line: 118
- column: 21
}end: {...}
- line: 118
- column: 27
}
}- name: "detail"
}
}
]
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 3193
- end: 3258
loc: {...}
start: {...}
- line: 118
- column: 33
}end: {...}
- line: 121
- column: 4
}
}body: [...] (2)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3199
- end: 3214
loc: {...}
start: {...}
- line: 119
- column: 4
}end: {...}
- line: 119
- column: 19
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3199
- end: 3213
loc: {...}
start: {...}
- line: 119
- column: 4
}end: {...}
- line: 119
- column: 18
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3199
- end: 3204
loc: {...}
start: {...}
- line: 119
- column: 4
}end: {...}
- line: 119
- column: 9
}
}- name: "count"
}right: Identifier {...}
- type: "Identifier"
- start: 3207
- end: 3213
loc: {...}
start: {...}
- line: 119
- column: 12
}end: {...}
- line: 119
- column: 18
}
}- name: "detail"
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3219
- end: 3253
loc: {...}
start: {...}
- line: 120
- column: 4
}end: {...}
- line: 120
- column: 38
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3219
- end: 3252
loc: {...}
start: {...}
- line: 120
- column: 4
}end: {...}
- line: 120
- column: 37
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3219
- end: 3233
loc: {...}
start: {...}
- line: 120
- column: 4
}end: {...}
- line: 120
- column: 18
}
}object: Identifier {...}
- type: "Identifier"
- start: 3219
- end: 3225
loc: {...}
start: {...}
- line: 120
- column: 4
}end: {...}
- line: 120
- column: 10
}
}- name: "marker"
}property: Identifier {...}
- type: "Identifier"
- start: 3226
- end: 3233
loc: {...}
start: {...}
- line: 120
- column: 11
}end: {...}
- line: 120
- column: 18
}
}- name: "setIcon"
}- computed: false
- optional: false
}arguments: [...] (1)
CallExpression {...}
- type: "CallExpression"
- start: 3234
- end: 3251
loc: {...}
start: {...}
- line: 120
- column: 19
}end: {...}
- line: 120
- column: 36
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3234
- end: 3244
loc: {...}
start: {...}
- line: 120
- column: 19
}end: {...}
- line: 120
- column: 29
}
}- name: "markerIcon"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3245
- end: 3250
loc: {...}
start: {...}
- line: 120
- column: 30
}end: {...}
- line: 120
- column: 35
}
}- name: "count"
}
]- optional: false
}
]- optional: false
}
}
]
}
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 3268
- end: 3277
loc: {...}
start: {...}
- line: 123
- column: 3
}end: {...}
- line: 123
- column: 12
}
}argument: Identifier {...}
- type: "Identifier"
- start: 3275
- end: 3276
loc: {...}
start: {...}
- line: 123
- column: 10
}end: {...}
- line: 123
- column: 11
}
}- name: "c"
}
}
]
}
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 3289
- end: 3303
loc: {...}
start: {...}
- line: 126
- column: 2
}end: {...}
- line: 126
- column: 16
}
}argument: Identifier {...}
- type: "Identifier"
- start: 3296
- end: 3302
loc: {...}
start: {...}
- line: 126
- column: 9
}end: {...}
- line: 126
- column: 15
}
}- name: "marker"
}
}
]
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 3310
- end: 3408
loc: {...}
start: {...}
- line: 129
- column: 1
}end: {...}
- line: 131
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 3319
- end: 3330
loc: {...}
start: {...}
- line: 129
- column: 10
}end: {...}
- line: 129
- column: 21
}
}- name: "createLines"
}- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 3333
- end: 3408
loc: {...}
start: {...}
- line: 129
- column: 24
}end: {...}
- line: 131
- column: 2
}
}body: [...] (1)
ReturnStatement {...}
- type: "ReturnStatement"
- start: 3337
- end: 3405
loc: {...}
start: {...}
- line: 130
- column: 2
}end: {...}
- line: 130
- column: 70
}
}argument: CallExpression {...}
- type: "CallExpression"
- start: 3344
- end: 3404
loc: {...}
start: {...}
- line: 130
- column: 9
}end: {...}
- line: 130
- column: 69
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3344
- end: 3354
loc: {...}
start: {...}
- line: 130
- column: 9
}end: {...}
- line: 130
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 3344
- end: 3345
loc: {...}
start: {...}
- line: 130
- column: 9
}end: {...}
- line: 130
- column: 10
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 3346
- end: 3354
loc: {...}
start: {...}
- line: 130
- column: 11
}end: {...}
- line: 130
- column: 19
}
}- name: "polyline"
}- computed: false
- optional: false
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 3355
- end: 3370
loc: {...}
start: {...}
- line: 130
- column: 20
}end: {...}
- line: 130
- column: 35
}
}- name: "markerLocations"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 3372
- end: 3403
loc: {...}
start: {...}
- line: 130
- column: 37
}end: {...}
- line: 130
- column: 68
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 3374
- end: 3387
loc: {...}
start: {...}
- line: 130
- column: 39
}end: {...}
- line: 130
- column: 52
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3374
- end: 3379
loc: {...}
start: {...}
- line: 130
- column: 39
}end: {...}
- line: 130
- column: 44
}
}- name: "color"
}value: Literal {...}
- type: "Literal"
- start: 3381
- end: 3387
loc: {...}
start: {...}
- line: 130
- column: 46
}end: {...}
- line: 130
- column: 52
}
}- value: "#E4E"
- raw: "'#E4E'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 3389
- end: 3401
loc: {...}
start: {...}
- line: 130
- column: 54
}end: {...}
- line: 130
- column: 66
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3389
- end: 3396
loc: {...}
start: {...}
- line: 130
- column: 54
}end: {...}
- line: 130
- column: 61
}
}- name: "opacity"
}value: Literal {...}
- type: "Literal"
- start: 3398
- end: 3401
loc: {...}
start: {...}
- line: 130
- column: 63
}end: {...}
- line: 130
- column: 66
}
}- value: 0.5
- raw: "0.5"
}- kind: "init"
}
]
}
]- optional: false
}
}
]
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3411
- end: 3428
loc: {...}
start: {...}
- line: 133
- column: 1
}end: {...}
- line: 133
- column: 18
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3415
- end: 3427
loc: {...}
start: {...}
- line: 133
- column: 5
}end: {...}
- line: 133
- column: 17
}
}id: Identifier {...}
- type: "Identifier"
- start: 3415
- end: 3427
loc: {...}
start: {...}
- line: 133
- column: 5
}end: {...}
- line: 133
- column: 17
}
}- name: "markerLayers"
}- init: null
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3430
- end: 3445
loc: {...}
start: {...}
- line: 134
- column: 1
}end: {...}
- line: 134
- column: 16
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3434
- end: 3444
loc: {...}
start: {...}
- line: 134
- column: 5
}end: {...}
- line: 134
- column: 15
}
}id: Identifier {...}
- type: "Identifier"
- start: 3434
- end: 3444
loc: {...}
start: {...}
- line: 134
- column: 5
}end: {...}
- line: 134
- column: 15
}
}- name: "lineLayers"
}- init: null
}
]- kind: "let"
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 3448
- end: 3884
loc: {...}
start: {...}
- line: 135
- column: 2
}end: {...}
- line: 157
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 3457
- end: 3466
loc: {...}
start: {...}
- line: 135
- column: 11
}end: {...}
- line: 135
- column: 20
}
}- name: "mapAction"
}- expression: false
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3467
- end: 3476
loc: {...}
start: {...}
- line: 135
- column: 21
}end: {...}
- line: 135
- column: 30
}
}- name: "container"
}
]body: BlockStatement {...}
- type: "BlockStatement"
- start: 3478
- end: 3884
loc: {...}
start: {...}
- line: 135
- column: 32
}end: {...}
- line: 157
- column: 2
}
}body: [...] (8)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3484
- end: 3511
loc: {...}
start: {...}
- line: 136
- column: 4
}end: {...}
- line: 136
- column: 31
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3484
- end: 3510
loc: {...}
start: {...}
- line: 136
- column: 4
}end: {...}
- line: 136
- column: 30
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3484
- end: 3487
loc: {...}
start: {...}
- line: 136
- column: 4
}end: {...}
- line: 136
- column: 7
}
}- name: "map"
}right: CallExpression {...}
- type: "CallExpression"
- start: 3490
- end: 3510
loc: {...}
start: {...}
- line: 136
- column: 10
}end: {...}
- line: 136
- column: 30
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3490
- end: 3499
loc: {...}
start: {...}
- line: 136
- column: 10
}end: {...}
- line: 136
- column: 19
}
}- name: "createMap"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3500
- end: 3509
loc: {...}
start: {...}
- line: 136
- column: 20
}end: {...}
- line: 136
- column: 29
}
}- name: "container"
}
]- optional: false
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3515
- end: 3534
loc: {...}
start: {...}
- line: 137
- column: 2
}end: {...}
- line: 137
- column: 21
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3515
- end: 3533
loc: {...}
start: {...}
- line: 137
- column: 2
}end: {...}
- line: 137
- column: 20
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3515
- end: 3528
loc: {...}
start: {...}
- line: 137
- column: 2
}end: {...}
- line: 137
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 3515
- end: 3522
loc: {...}
start: {...}
- line: 137
- column: 2
}end: {...}
- line: 137
- column: 9
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 3523
- end: 3528
loc: {...}
start: {...}
- line: 137
- column: 10
}end: {...}
- line: 137
- column: 15
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3529
- end: 3532
loc: {...}
start: {...}
- line: 137
- column: 16
}end: {...}
- line: 137
- column: 19
}
}- name: "map"
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3540
- end: 3569
loc: {...}
start: {...}
- line: 139
- column: 2
}end: {...}
- line: 139
- column: 31
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3540
- end: 3569
loc: {...}
start: {...}
- line: 139
- column: 2
}end: {...}
- line: 139
- column: 31
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3540
- end: 3552
loc: {...}
start: {...}
- line: 139
- column: 2
}end: {...}
- line: 139
- column: 14
}
}- name: "markerLayers"
}right: CallExpression {...}
- type: "CallExpression"
- start: 3555
- end: 3569
loc: {...}
start: {...}
- line: 139
- column: 17
}end: {...}
- line: 139
- column: 31
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3555
- end: 3567
loc: {...}
start: {...}
- line: 139
- column: 17
}end: {...}
- line: 139
- column: 29
}
}object: Identifier {...}
- type: "Identifier"
- start: 3555
- end: 3556
loc: {...}
start: {...}
- line: 139
- column: 17
}end: {...}
- line: 139
- column: 18
}
}- name: "L"
}property: Identifier {...}
- type: "Identifier"
- start: 3557
- end: 3567
loc: {...}
start: {...}
- line: 139
- column: 19
}end: {...}
- line: 139
- column: 29
}
}- name: "layerGroup"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
} ForOfStatement {...}
- type: "ForOfStatement"
- start: 3573
- end: 3681
loc: {...}
start: {...}
- line: 140
- column: 3
}end: {...}
- line: 143
- column: 4
}
}- await: false
left: VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3577
- end: 3589
loc: {...}
start: {...}
- line: 140
- column: 7
}end: {...}
- line: 140
- column: 19
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3581
- end: 3589
loc: {...}
start: {...}
- line: 140
- column: 11
}end: {...}
- line: 140
- column: 19
}
}id: Identifier {...}
- type: "Identifier"
- start: 3581
- end: 3589
loc: {...}
start: {...}
- line: 140
- column: 11
}end: {...}
- line: 140
- column: 19
}
}- name: "location"
}- init: null
}
]- kind: "let"
}right: Identifier {...}
- type: "Identifier"
- start: 3593
- end: 3608
loc: {...}
start: {...}
- line: 140
- column: 23
}end: {...}
- line: 140
- column: 38
}
}- name: "markerLocations"
}body: BlockStatement {...}
- type: "BlockStatement"
- start: 3610
- end: 3681
loc: {...}
start: {...}
- line: 140
- column: 40
}end: {...}
- line: 143
- column: 4
}
}body: [...] (2)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 3616
- end: 3647
loc: {...}
start: {...}
- line: 141
- column: 4
}end: {...}
- line: 141
- column: 35
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 3620
- end: 3646
loc: {...}
start: {...}
- line: 141
- column: 8
}end: {...}
- line: 141
- column: 34
}
}id: Identifier {...}
- type: "Identifier"
- start: 3620
- end: 3621
loc: {...}
start: {...}
- line: 141
- column: 8
}end: {...}
- line: 141
- column: 9
}
}- name: "m"
}init: CallExpression {...}
- type: "CallExpression"
- start: 3624
- end: 3646
loc: {...}
start: {...}
- line: 141
- column: 12
}end: {...}
- line: 141
- column: 34
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3624
- end: 3636
loc: {...}
start: {...}
- line: 141
- column: 12
}end: {...}
- line: 141
- column: 24
}
}- name: "createMarker"
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3637
- end: 3645
loc: {...}
start: {...}
- line: 141
- column: 25
}end: {...}
- line: 141
- column: 33
}
}- name: "location"
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3651
- end: 3676
loc: {...}
start: {...}
- line: 142
- column: 3
}end: {...}
- line: 142
- column: 28
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3651
- end: 3675
loc: {...}
start: {...}
- line: 142
- column: 3
}end: {...}
- line: 142
- column: 27
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3651
- end: 3672
loc: {...}
start: {...}
- line: 142
- column: 3
}end: {...}
- line: 142
- column: 24
}
}object: Identifier {...}
- type: "Identifier"
- start: 3651
- end: 3663
loc: {...}
start: {...}
- line: 142
- column: 3
}end: {...}
- line: 142
- column: 15
}
}- name: "markerLayers"
}property: Identifier {...}
- type: "Identifier"
- start: 3664
- end: 3672
loc: {...}
start: {...}
- line: 142
- column: 16
}end: {...}
- line: 142
- column: 24
}
}- name: "addLayer"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3673
- end: 3674
loc: {...}
start: {...}
- line: 142
- column: 25
}end: {...}
- line: 142
- column: 26
}
}- name: "m"
}
]- optional: false
}
}
]
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3687
- end: 3714
loc: {...}
start: {...}
- line: 145
- column: 2
}end: {...}
- line: 145
- column: 29
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3687
- end: 3713
loc: {...}
start: {...}
- line: 145
- column: 2
}end: {...}
- line: 145
- column: 28
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3687
- end: 3697
loc: {...}
start: {...}
- line: 145
- column: 2
}end: {...}
- line: 145
- column: 12
}
}- name: "lineLayers"
}right: CallExpression {...}
- type: "CallExpression"
- start: 3700
- end: 3713
loc: {...}
start: {...}
- line: 145
- column: 15
}end: {...}
- line: 145
- column: 28
}
}callee: Identifier {...}
- type: "Identifier"
- start: 3700
- end: 3711
loc: {...}
start: {...}
- line: 145
- column: 15
}end: {...}
- line: 145
- column: 26
}
}- name: "createLines"
}- arguments: []
- optional: false
}
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3720
- end: 3744
loc: {...}
start: {...}
- line: 147
- column: 2
}end: {...}
- line: 147
- column: 26
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3720
- end: 3743
loc: {...}
start: {...}
- line: 147
- column: 2
}end: {...}
- line: 147
- column: 25
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3720
- end: 3738
loc: {...}
start: {...}
- line: 147
- column: 2
}end: {...}
- line: 147
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 3720
- end: 3732
loc: {...}
start: {...}
- line: 147
- column: 2
}end: {...}
- line: 147
- column: 14
}
}- name: "markerLayers"
}property: Identifier {...}
- type: "Identifier"
- start: 3733
- end: 3738
loc: {...}
start: {...}
- line: 147
- column: 15
}end: {...}
- line: 147
- column: 20
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3739
- end: 3742
loc: {...}
start: {...}
- line: 147
- column: 21
}end: {...}
- line: 147
- column: 24
}
}- name: "map"
}
]- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3747
- end: 3769
loc: {...}
start: {...}
- line: 148
- column: 2
}end: {...}
- line: 148
- column: 24
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3747
- end: 3768
loc: {...}
start: {...}
- line: 148
- column: 2
}end: {...}
- line: 148
- column: 23
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3747
- end: 3763
loc: {...}
start: {...}
- line: 148
- column: 2
}end: {...}
- line: 148
- column: 18
}
}object: Identifier {...}
- type: "Identifier"
- start: 3747
- end: 3757
loc: {...}
start: {...}
- line: 148
- column: 2
}end: {...}
- line: 148
- column: 12
}
}- name: "lineLayers"
}property: Identifier {...}
- type: "Identifier"
- start: 3758
- end: 3763
loc: {...}
start: {...}
- line: 148
- column: 13
}end: {...}
- line: 148
- column: 18
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 3764
- end: 3767
loc: {...}
start: {...}
- line: 148
- column: 19
}end: {...}
- line: 148
- column: 22
}
}- name: "map"
}
]- optional: false
}
} ReturnStatement {...}
- type: "ReturnStatement"
- start: 3777
- end: 3881
loc: {...}
start: {...}
- line: 150
- column: 4
}end: {...}
- line: 156
- column: 6
}
}argument: ObjectExpression {...}
- type: "ObjectExpression"
- start: 3784
- end: 3880
loc: {...}
start: {...}
- line: 150
- column: 11
}end: {...}
- line: 156
- column: 5
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 3793
- end: 3874
loc: {...}
start: {...}
- line: 151
- column: 7
}end: {...}
- line: 155
- column: 5
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 3793
- end: 3800
loc: {...}
start: {...}
- line: 151
- column: 7
}end: {...}
- line: 151
- column: 14
}
}- name: "destroy"
}value: ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 3802
- end: 3874
loc: {...}
start: {...}
- line: 151
- column: 16
}end: {...}
- line: 155
- column: 5
}
}- id: null
- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 3808
- end: 3874
loc: {...}
start: {...}
- line: 151
- column: 22
}end: {...}
- line: 155
- column: 5
}
}body: [...] (3)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3815
- end: 3832
loc: {...}
start: {...}
- line: 152
- column: 5
}end: {...}
- line: 152
- column: 22
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3815
- end: 3831
loc: {...}
start: {...}
- line: 152
- column: 5
}end: {...}
- line: 152
- column: 21
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3815
- end: 3829
loc: {...}
start: {...}
- line: 152
- column: 5
}end: {...}
- line: 152
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 3815
- end: 3822
loc: {...}
start: {...}
- line: 152
- column: 5
}end: {...}
- line: 152
- column: 12
}
}- name: "toolbar"
}property: Identifier {...}
- type: "Identifier"
- start: 3823
- end: 3829
loc: {...}
start: {...}
- line: 152
- column: 13
}end: {...}
- line: 152
- column: 19
}
}- name: "remove"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3838
- end: 3851
loc: {...}
start: {...}
- line: 153
- column: 5
}end: {...}
- line: 153
- column: 18
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 3838
- end: 3850
loc: {...}
start: {...}
- line: 153
- column: 5
}end: {...}
- line: 153
- column: 17
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 3838
- end: 3848
loc: {...}
start: {...}
- line: 153
- column: 5
}end: {...}
- line: 153
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 3838
- end: 3841
loc: {...}
start: {...}
- line: 153
- column: 5
}end: {...}
- line: 153
- column: 8
}
}- name: "map"
}property: Identifier {...}
- type: "Identifier"
- start: 3842
- end: 3848
loc: {...}
start: {...}
- line: 153
- column: 9
}end: {...}
- line: 153
- column: 15
}
}- name: "remove"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 3857
- end: 3868
loc: {...}
start: {...}
- line: 154
- column: 5
}end: {...}
- line: 154
- column: 16
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 3857
- end: 3867
loc: {...}
start: {...}
- line: 154
- column: 5
}end: {...}
- line: 154
- column: 15
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 3857
- end: 3860
loc: {...}
start: {...}
- line: 154
- column: 5
}end: {...}
- line: 154
- column: 8
}
}- name: "map"
}right: Literal {...}
- type: "Literal"
- start: 3863
- end: 3867
loc: {...}
start: {...}
- line: 154
- column: 11
}end: {...}
- line: 154
- column: 15
}
}- value: null
- raw: "null"
}
}
}
]
}
}- kind: "init"
}
]
}
}
]
}
} LabeledStatement {...}
- type: "LabeledStatement"
- start: 4011
- end: 4123
loc: {...}
start: {...}
- line: 161
- column: 1
}end: {...}
- line: 167
- column: 2
}
}body: IfStatement {...}
- type: "IfStatement"
- start: 4014
- end: 4123
loc: {...}
start: {...}
- line: 161
- column: 4
}end: {...}
- line: 167
- column: 2
}
}test: LogicalExpression {...}
- type: "LogicalExpression"
- start: 4017
- end: 4036
loc: {...}
start: {...}
- line: 161
- column: 7
}end: {...}
- line: 161
- column: 26
}
}left: Identifier {...}
- type: "Identifier"
- start: 4017
- end: 4029
loc: {...}
start: {...}
- line: 161
- column: 7
}end: {...}
- line: 161
- column: 19
}
}- name: "markerLayers"
}- operator: "&&"
right: Identifier {...}
- type: "Identifier"
- start: 4033
- end: 4036
loc: {...}
start: {...}
- line: 161
- column: 23
}end: {...}
- line: 161
- column: 26
}
}- name: "map"
}
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 4038
- end: 4123
loc: {...}
start: {...}
- line: 161
- column: 28
}end: {...}
- line: 167
- column: 2
}
}body: [...] (1)
IfStatement {...}
- type: "IfStatement"
- start: 4042
- end: 4120
loc: {...}
start: {...}
- line: 162
- column: 2
}end: {...}
- line: 166
- column: 3
}
}test: Identifier {...}
- type: "Identifier"
- start: 4045
- end: 4048
loc: {...}
start: {...}
- line: 162
- column: 5
}end: {...}
- line: 162
- column: 8
}
}- name: "eye"
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 4050
- end: 4083
loc: {...}
start: {...}
- line: 162
- column: 10
}end: {...}
- line: 164
- column: 3
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 4055
- end: 4079
loc: {...}
start: {...}
- line: 163
- column: 3
}end: {...}
- line: 163
- column: 27
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 4055
- end: 4078
loc: {...}
start: {...}
- line: 163
- column: 3
}end: {...}
- line: 163
- column: 26
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 4055
- end: 4073
loc: {...}
start: {...}
- line: 163
- column: 3
}end: {...}
- line: 163
- column: 21
}
}object: Identifier {...}
- type: "Identifier"
- start: 4055
- end: 4067
loc: {...}
start: {...}
- line: 163
- column: 3
}end: {...}
- line: 163
- column: 15
}
}- name: "markerLayers"
}property: Identifier {...}
- type: "Identifier"
- start: 4068
- end: 4073
loc: {...}
start: {...}
- line: 163
- column: 16
}end: {...}
- line: 163
- column: 21
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 4074
- end: 4077
loc: {...}
start: {...}
- line: 163
- column: 22
}end: {...}
- line: 163
- column: 25
}
}- name: "map"
}
]- optional: false
}
}
]
}alternate: BlockStatement {...}
- type: "BlockStatement"
- start: 4089
- end: 4120
loc: {...}
start: {...}
- line: 164
- column: 9
}end: {...}
- line: 166
- column: 3
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 4094
- end: 4116
loc: {...}
start: {...}
- line: 165
- column: 3
}end: {...}
- line: 165
- column: 25
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 4094
- end: 4115
loc: {...}
start: {...}
- line: 165
- column: 3
}end: {...}
- line: 165
- column: 24
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 4094
- end: 4113
loc: {...}
start: {...}
- line: 165
- column: 3
}end: {...}
- line: 165
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 4094
- end: 4106
loc: {...}
start: {...}
- line: 165
- column: 3
}end: {...}
- line: 165
- column: 15
}
}- name: "markerLayers"
}property: Identifier {...}
- type: "Identifier"
- start: 4107
- end: 4113
loc: {...}
start: {...}
- line: 165
- column: 16
}end: {...}
- line: 165
- column: 22
}
}- name: "remove"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
]
}
}
]
}- alternate: null
}label: Identifier {...}
- type: "Identifier"
- start: 4011
- end: 4012
loc: {...}
start: {...}
- line: 161
- column: 1
}end: {...}
- line: 161
- column: 2
}
}- name: "$"
}leadingComments: [...] (2)
Line {...}
- type: "Line"
- value: " We could do these in the toolbar's click handler but this is an example"
- start: 3888
- end: 3962
} Line {...}
- type: "Line"
- value: " of modifying the map with reactive syntax."
- start: 3964
- end: 4009
}
]
} LabeledStatement {...}
- type: "LabeledStatement"
- start: 4127
- end: 4235
loc: {...}
start: {...}
- line: 169
- column: 1
}end: {...}
- line: 175
- column: 2
}
}body: IfStatement {...}
- type: "IfStatement"
- start: 4130
- end: 4235
loc: {...}
start: {...}
- line: 169
- column: 4
}end: {...}
- line: 175
- column: 2
}
}test: LogicalExpression {...}
- type: "LogicalExpression"
- start: 4133
- end: 4150
loc: {...}
start: {...}
- line: 169
- column: 7
}end: {...}
- line: 169
- column: 24
}
}left: Identifier {...}
- type: "Identifier"
- start: 4133
- end: 4143
loc: {...}
start: {...}
- line: 169
- column: 7
}end: {...}
- line: 169
- column: 17
}
}- name: "lineLayers"
}- operator: "&&"
right: Identifier {...}
- type: "Identifier"
- start: 4147
- end: 4150
loc: {...}
start: {...}
- line: 169
- column: 21
}end: {...}
- line: 169
- column: 24
}
}- name: "map"
}
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 4152
- end: 4235
loc: {...}
start: {...}
- line: 169
- column: 26
}end: {...}
- line: 175
- column: 2
}
}body: [...] (1)
IfStatement {...}
- type: "IfStatement"
- start: 4156
- end: 4232
loc: {...}
start: {...}
- line: 170
- column: 2
}end: {...}
- line: 174
- column: 3
}
}test: Identifier {...}
- type: "Identifier"
- start: 4159
- end: 4164
loc: {...}
start: {...}
- line: 170
- column: 5
}end: {...}
- line: 170
- column: 10
}
}- name: "lines"
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 4166
- end: 4197
loc: {...}
start: {...}
- line: 170
- column: 12
}end: {...}
- line: 172
- column: 3
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 4171
- end: 4193
loc: {...}
start: {...}
- line: 171
- column: 3
}end: {...}
- line: 171
- column: 25
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 4171
- end: 4192
loc: {...}
start: {...}
- line: 171
- column: 3
}end: {...}
- line: 171
- column: 24
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 4171
- end: 4187
loc: {...}
start: {...}
- line: 171
- column: 3
}end: {...}
- line: 171
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 4171
- end: 4181
loc: {...}
start: {...}
- line: 171
- column: 3
}end: {...}
- line: 171
- column: 13
}
}- name: "lineLayers"
}property: Identifier {...}
- type: "Identifier"
- start: 4182
- end: 4187
loc: {...}
start: {...}
- line: 171
- column: 14
}end: {...}
- line: 171
- column: 19
}
}- name: "addTo"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 4188
- end: 4191
loc: {...}
start: {...}
- line: 171
- column: 20
}end: {...}
- line: 171
- column: 23
}
}- name: "map"
}
]- optional: false
}
}
]
}alternate: BlockStatement {...}
- type: "BlockStatement"
- start: 4203
- end: 4232
loc: {...}
start: {...}
- line: 172
- column: 9
}end: {...}
- line: 174
- column: 3
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 4208
- end: 4228
loc: {...}
start: {...}
- line: 173
- column: 3
}end: {...}
- line: 173
- column: 23
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 4208
- end: 4227
loc: {...}
start: {...}
- line: 173
- column: 3
}end: {...}
- line: 173
- column: 22
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 4208
- end: 4225
loc: {...}
start: {...}
- line: 173
- column: 3
}end: {...}
- line: 173
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 4208
- end: 4218
loc: {...}
start: {...}
- line: 173
- column: 3
}end: {...}
- line: 173
- column: 13
}
}- name: "lineLayers"
}property: Identifier {...}
- type: "Identifier"
- start: 4219
- end: 4225
loc: {...}
start: {...}
- line: 173
- column: 14
}end: {...}
- line: 173
- column: 20
}
}- name: "remove"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
]
}
}
]
}- alternate: null
}label: Identifier {...}
- type: "Identifier"
- start: 4127
- end: 4128
loc: {...}
start: {...}
- line: 169
- column: 1
}end: {...}
- line: 169
- column: 2
}
}- name: "$"
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 4238
- end: 4301
loc: {...}
start: {...}
- line: 177
- column: 1
}end: {...}
- line: 179
- column: 3
}
}id: Identifier {...}
- type: "Identifier"
- start: 4247
- end: 4256
loc: {...}
start: {...}
- line: 177
- column: 10
}end: {...}
- line: 177
- column: 19
}
}- name: "resizeMap"
}- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 4259
- end: 4301
loc: {...}
start: {...}
- line: 177
- column: 22
}end: {...}
- line: 179
- column: 3
}
}body: [...] (1)
IfStatement {...}
- type: "IfStatement"
- start: 4264
- end: 4297
loc: {...}
start: {...}
- line: 178
- column: 3
}end: {...}
- line: 178
- column: 36
}
}test: Identifier {...}
- type: "Identifier"
- start: 4267
- end: 4270
loc: {...}
start: {...}
- line: 178
- column: 6
}end: {...}
- line: 178
- column: 9
}
}- name: "map"
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 4272
- end: 4297
loc: {...}
start: {...}
- line: 178
- column: 11
}end: {...}
- line: 178
- column: 36
}
}body: [...] (1)
ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 4274
- end: 4295
loc: {...}
start: {...}
- line: 178
- column: 13
}end: {...}
- line: 178
- column: 34
}
}expression: CallExpression {...}
- type: "CallExpression"
- start: 4274
- end: 4294
loc: {...}
start: {...}
- line: 178
- column: 13
}end: {...}
- line: 178
- column: 33
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 4274
- end: 4292
loc: {...}
start: {...}
- line: 178
- column: 13
}end: {...}
- line: 178
- column: 31
}
}object: Identifier {...}
- type: "Identifier"
- start: 4274
- end: 4277
loc: {...}
start: {...}
- line: 178
- column: 13
}end: {...}
- line: 178
- column: 16
}
}- name: "map"
}property: Identifier {...}
- type: "Identifier"
- start: 4278
- end: 4292
loc: {...}
start: {...}
- line: 178
- column: 17
}end: {...}
- line: 178
- 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