-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapas-locais.php
53 lines (53 loc) · 1.61 KB
/
mapas-locais.php
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
<!DOCTYPE HTML>
<html>
<head>
<script src="http://localhost/mapas/v2/api.js"></script>
<script>
function initialize() {
var options = {
atmosphere: true,
sky: true,
center: [0, 0],
zoom: 5,
zooming:false
};
var earth = new WE.map('earth_div', options);
var sufix='%3fkey=R8rAisQ0L6EL1wW8JVYQ';
sufix='';
WE.tileLayer('http://localhost/mapas/marble/{z}/{x}/{y}.jpg'+sufix, {
minZoom: 0,
maxZoom: 5,
attribution: 'NASA'
}).addTo(earth);
}
</script>
<style type="text/css">
html, body{padding: 0; margin: 0;}
#earth_div{top: 0; right: 0; bottom: 0; left: 0;
position: absolute !important;
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(253,253,253)),
color-stop(0.15, rgb(253,253,253)),
color-stop(0.53, rgb(223,223,223)),
color-stop(0.56, rgb(255,255,255)),
color-stop(1, rgb(253,253,253))
);
background-image: -moz-linear-gradient(
center bottom,
rgb(253,253,253) 0%,
rgb(253,253,253) 15%,
rgb(223,223,223) 53%,
rgb(255,255,255) 56%,
rgb(253,253,253) 100%
);
}
</style>
<title>WebGL Earth API: Custom Tiles</title>
</head>
<body onload="initialize()">
<div id="earth_div"></div>
</body>
</html>