-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmap-image.js
44 lines (42 loc) · 1.1 KB
/
map-image.js
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
37
38
39
40
41
42
43
44
/**
* identify and use map image layers
*
* This example uses the identify widget, which adds popup
* templates to layers that don't get them by default.
*
* Currently only map-image layers are enhanced with
* a popup template but additional layers may be added.
*
*/
import Identify from 'can-arcgis/components/identify/identify';
export default {
title: 'Identifying map image layers',
mapOptions: {
basemap: 'gray-vector',
layers: [{
type: 'dynamic',
options: {
url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer',
sublayers: [{
id: 1,
visible: true
}, {
id: 0,
visible: true
}]
}
}]
},
viewOptions: {
center: [-117.4621, 33.8954],
zoom: 14
},
widgets: [{
type: 'esri',
position: 'bottom-left',
path: 'esri/widgets/LayerList',
parent: 'view'
}, {
Constructor: Identify
}]
};