forked from srikanthlogic/tangrams-indic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhindi.html
134 lines (114 loc) · 3.25 KB
/
hindi.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!doctype html>
<!--
Tangram: real-time WebGL rendering for OpenStreetMap
http://github.com/tangrams/tangram
http://mapzen.com
-->
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Mapzen - Tangram powered Hindi Maps using Openstreetmap</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2/leaflet.css" />
<style>
@import url(https://fonts.googleapis.com/earlyaccess/notosansdevanagari.css);
body {
margin: 0px;
border: 0px;
padding: 0px;
font-family: 'Noto Sans Devanagari', Helvetica, sans-serif;
}
#map {
background: rgba(0, 0, 0, 0);
height: 100%;
width: 100%;
position: fixed;
}
.label {
width: auto;
/*margin-left: -100px;*/
position: absolute;
z-index: 500;
text-align: left;
margin: 0px;
background: #333;
opacity: 0.9;
padding: 2px;
visibility: hidden;
/*text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
/*word-wrap: break-word;*/
}
.label a {
color: white;
}
.label a:hover {
color: lightblue;
}
.labelInner {
padding: 3px 0px;
font-family:'Noto Sans Devanagari UI', Helvetica, sans-serif;
font-size: 16px;
color: white;
opacity: 2.0;
margin: 0px;
}
.labelLine {
/*border: 2px solid gold;*/
}
.labelLine:hover {
border: 2px solid gold;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
}
</style>
</head>
<body>
<div align="right" style="text-align:right;">
<select id="languageSel" onchange="ChangeLanguage()">
<option>Hindi</option>
<option>Telugu</option>
<option>Tamil</option>
<option>Malayalam</option>
<option>Bengali</option>
<option>Kannada</option>
<option>Odia</option>
<option>Gujarati</option>
<option>Punjabi</option>
<option>Marathi</option>
<option>Nepali</option>
</select>
</div>
<div align="center" style="text-align:center;">Openstreetmap Hindi Map</div>
<div class="label" id="popup"></div>
<div id="map"></div>
<!-- 3rd party libraries -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2/leaflet.js"></script>
<!-- bog-standard leaflet URL hash -->
<script src="lib/leaflet-hash.js"></script>
<!-- Keymaster handles keyboard input -->
<script src="lib/keymaster.js"></script>
<!-- Main tangram library -->
<script src="https://mapzen.com/tangram/0.6/tangram.min.js"></script>
<!-- Demo module -->
<script src="main.js"></script>
<!-- Adding a script block to post message to the parent container (think iframed demos) -->
<script type="text/javascript">
window.addEventListener("hashchange",function(){parent.postMessage(window.location.hash, "*")});
</script>
<!-- Mapzen map UI -->
<script src='https://mapzen.com/common/ui/mapzen-ui.min.js'></script>
<script>
MPZN.bug({
link: 'http://blog.srik.me/2016/09/24/tamil-web-maps/',
tweet: '#Hindi maps powered by @mapzen and @openstreetmaps #HindiMap',
repo: 'https://github.com/srikanthlogic/tangrams-indic'
});
</script>
</body>
</html>