forked from aaronlidman/osmly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeped_pt.html
96 lines (93 loc) · 2.96 KB
/
deped_pt.html
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctype html>
<html>
<head>
<title>DepEd Schools Import</title>
<meta charset='utf-8'>
<link rel="stylesheet" href="dist/osmly.min.css" />
<script src="dist/libs.min.js"></script>
<script src="dist/osmly.js"></script>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
var region = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
117.316,
4.70631
],
[
117.316,
20.7867
],
[
126.582,
20.7867
],
[
126.582,
4.70631
],
[
117.316,
4.70631
]
]
]
}
}
]
};
var config = {
title: 'Verify School Location',
instructions: '\
<ul>\
<li>Verify School Location.</li>\
<li>Pay attention to the tags, especially the \'name\' tag.</li>\
<li>It\'s possible the data is out of date or just wrong; report problems accordingly.</li>\
<li>White features are other OSM features there to help you. You can\'t edit them here but clicking them provides more information. If you know they\'re wrong, go to osm.org and fix them.</li>\
</ul>',
db: 'http://52.74.49.58:8000/?db=/home/ubuntu/osmly/server/deped_schools_test_data',
origin: [120.9863, 14.4872],
zoom: 10,
usePropertyAsTag: ['name','ref:deped','addr:village','addr:city'],
appendTag: {'amenity': 'school'},
context: {
leisure: ['park', 'nature_reserve', 'stadium', 'pitch'],
landuse: ['cemetery', 'recreation_ground'],
amenity: ['college', 'kindergarten', 'school', 'university', 'library', 'townhall'],
highway: ['residential', 'tertiary', 'primary','secondary','service','trunk','unclassified','track']
},
contextStyle:{
color: '#FFFFFF',
fillOpacity: 0.2,
weight: 2.5,
opacity: 1
},
problems: ['no school here', 'already mapped', 'imagery too poor', 'too difficult'],
changesetTags: {
'source': 'DepEd Schools Database',
'source_ref': 'http://deped.gov.ph',
'import': 'yes'
},
renameProperty: {
'School Name': 'name',
'ID': 'ref:deped',
'Municipality': 'addr:city',
'Baranggay': 'addr:village',
'Province': 'addr:state'
},
region: region
};
osmly.go(config);
</script>
</body>
</html>