mirror of
https://github.com/mapillary/mapillary-js.git
synced 2025-12-08 17:35:55 +00:00
48 lines
1.2 KiB
HTML
48 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>MapillaryJS UMD</title>
|
|
<link rel="icon" href="data:," />
|
|
<meta charset="utf-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, user-scalable=no"
|
|
/>
|
|
|
|
<link rel="stylesheet" href="../../dist/mapillary.css" />
|
|
<script src="../../dist/mapillary.js"></script>
|
|
<script src="../../doc/.access-token/token.umd.js"></script>
|
|
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
.viewer {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
const { Viewer } = mapillary;
|
|
|
|
const container = document.createElement("div");
|
|
container.classList.add("viewer");
|
|
document.body.append(container);
|
|
|
|
const viewer = new Viewer({
|
|
accessToken,
|
|
component: { cover: false },
|
|
container,
|
|
imageId: "780299919518360",
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|