Sample Code for OpenLayers
x
var url = "https://profsmythe.blogspot.com/2015/06/how-to-track-peoples-location-in-omegle.html"
1
2
<html lang="en">
3
4
<head>
5
<link rel="stylesheet" href="https://openlayers.org/en/v6.1.1/css/ol.css" type="text/css">
6
<style>
7
.map {
8
height: 400px;
9
width: 100%;
10
}
11
12
.ol-popup {
13
position: absolute;
14
min-width: 180px;
15
background-color: white;
16
-webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
17
filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
18
padding: 15px;
19
border-radius: 10px;
20
border: 1px solid #ccc;
21
bottom: 12px;
22
left: -50px;
23
}
24
25
.ol-popup:after,
26
.ol-popup:before {
27
top: 100%;
28
border: solid transparent;
29
content: " ";
30
height: 0;
31
width: 0;
32
position: absolute;
33
pointer-events: none;
34
}
35
36
.ol-popup:after {
37
border-top-color: white;
38
border-width: 10px;
39
left: 48px;
40
margin-left: -10px;
41
}
42
43
.ol-popup:before {
44
border-top-color: #cccccc;
45
border-width: 11px;
46
left: 48px;
47
margin-left: -11px;
48
}
49
50
.ol-popup-closer {
51
text-decoration: none;