Display a satellite map
Display a satellite raster baselayerx
33
1
2
<html lang="en">
3
<head>
4
<meta charset="utf-8">
5
<link rel="stylesheet" href="https://maps-sdk.trimblemaps.com/v4/trimblemaps-4.2.3.css">
6
<script src="https://maps-sdk.trimblemaps.com/v4/trimblemaps-4.2.3.js"></script>
7
<style>
8
body {
9
margin: 0;
10
}
11
#map {
12
position: absolute;
13
top: 0;
14
bottom: 0;
15
width: 100%;
16
}
17
</style>
18
</head>
19
<body>
20
<div id="map"></div>
21
<script>
22
TrimbleMaps.setAPIKey('YOUR_API_KEY_HERE');
23
const map = new TrimbleMaps.Map({
24
container: 'map',
25
zoom: 9,
26
center: [137.9150899566626, 36.25956997955441],
27
style: TrimbleMaps.Common.Style.SATELLITE,
28
region: 'ww',
29
});
30
</script>
31
</body>
32
</html>
33