3D Web Map SDK
Isomaps maps in your website: 3D terrain, tracks with elevation profile and a 3D flyover, in one script tag.
Isomaps maps in your website: 3D terrain, tracks with elevation profile and a 3D flyover, in one script tag.
Tour du Mont-Blanc, day 1: Les Houches to Les Contamines. Hover the profile or the track.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Isomaps 3D Web Map SDK</title>
<link rel="stylesheet" href="https://cdn.iso-maps.com/sdk/web/0.3.1/isomaps-web-sdk.css">
<script src="https://cdn.iso-maps.com/sdk/web/0.3.1/isomaps-web-sdk.cdn.js"></script>
<style>
body { margin: 0; }
#map { height: 70vh; }
</style>
</head>
<body>
<div id="map"></div>
<div id="profile"></div>
<button id="fly">Flyover</button>
<script>
// Your API key, with this website in its "Allowed domains"
const map = new Isomaps.Map({
container: "map",
key: "YOUR_API_KEY",
style: "satellite",
terrain: true,
pitch: 60
});
map.loadTrack("my-hike.gpx").then(function (track) {
new Isomaps.ElevationProfile({ container: "profile", track: track });
document.getElementById("fly").onclick = function () {
map.flyover(track);
};
});
</script>
</body>
</html>