Repository navigation
Expand file tree
/
Copy pathKML.html
More file actions
66 lines (53 loc) · 1.81 KB
/
Copy pathKML.html
File metadata and controls
66 lines (53 loc) · 1.81 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title> Style Polygons from KML </title>
<!-- Include the style sheet for the ThinkGeo VectorMap.js library from our CDN. -->
<link rel="stylesheet" href="https://cdn.thinkgeo.com/vectormap-js/2.0.2/vectormap.css">
<!-- Define some custom styles for the UI of our sample page. -->
<style>
#map {
width: 100%;
height: 100%;
background: #aac7ee;
}
.ol-control:hover {
background-color: unset;
}
.ol-control:focus {
outline: unset !important;
}
.ol-full-screen {
right: unset;
left: 0.5em;
top: 5.5em;
background-color: unset
}
.ol-full-screen button {
height: 1.2em !important;
width: 1.2em !important;
font-size: 1.5em !important;
cursor: pointer;
margin: 0px !important;
background-color: #fff !important;
color: #2d3c4d !important;
border: solid 1px #ccc !important;
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
border-radius: 0 0 2px 2px;
}
.ol-full-screen button:hover {
background-color: #eee !important;
}
</style>
</head>
<body>
<!-- This <div> is the container into which our map control will be loaded. -->
<div id="map"></div>
<!-- Include the latest version of ThinkGeo's VectorMap.js library from our CDN. -->
<script src="https://cdn.thinkgeo.com/vectormap-js/2.0.2/vectormap.js"></script>
<script src="../js/KML.js"></script>
</body>
</html>