-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsampleMap.html
39 lines (34 loc) · 978 Bytes
/
sampleMap.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
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"
integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg=="
crossorigin=""></script>
<script src="Indiageo.json"></script>
<style>
#mapid {
width:820;
height:720px;
margin-left:350px;
padding:20px;
}
</style>
</head>
<body>
<div id="mapid"></div>
<script>
function mapstyle(feature) {
return{
fillColor:"#fff",
color:"#000",
weight:'1',
fillOpacity:1
};
}
var basicMap = L.map('mapid').setView([23.579732, 80.442383],5);
var jsonLayer = L.geoJSON(states,{style:mapstyle}).addTo(basicMap);
</script>
</body>
</html>