This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.js
57 lines (57 loc) · 1.64 KB
/
map.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
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Created by regan_sarwas on 7/8/14.
* Replaced GINA BDL with Esri Imagery 7/10/17.
* Update the URL to the building footprints on 11/26/2018.
*/
var NPMap = {
center: {
lat: 62,
lng: -152
},
div: 'map',
overlays: [
{
cluster: true,
popup: {
title: '{{FMSS_Id}}',
description: '<p>{{Desc}}</p>' +
'<table>' +
'<tr><td class="att_name">Park Id</td><td>{{Park_Id}}</td></tr>' +
'<tr><td class="att_name">Occupant</td><td>{{Occupant}}</td></tr>' +
'<tr><td class="att_name">Cost</td><td>{{Cost}}</td></tr>' +
'<tr><td class="att_name">Size</td><td>{{Size}}</td></tr>' +
'<tr><td class="att_name">Acquired</td><td>{{Year}}</td></tr>' +
'<tr><td class="att_name">Status</td><td>{{Status}}</td></tr>' +
'</table>',
media:[{
type:"fmss",
id:"Photo_Id"
}]
},
styles: {
point: {
'marker-symbol': 'warehouse'
}
},
tooltip: '{{FMSS_Id}}',
type: 'csv',
url: 'data/buildings.csv'
}
,{
type:'arcgisserver',
opacity: 0.5,
tiled: false,
minZoom:15,
url: 'https://akrgis.nps.gov:6443/arcgis/rest/services//AKR/Building_Footprints/MapServer'
}
,{
type: 'arcgisserver',
opacity: 1.0,
tiled: true,
url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
minZoom:15
}
],
zoom: 5,
maxZoom: 20
};