spaceMAP - API documentation
This documentation contains description for public part of spaceMAP API (3D map).
Main core component of spaceMAP library is SpaceMap.Viewer. Above is minimal code for embed space map in HTML page.
<!DOCTYPE html>
<html lang="en">
<head>
<style>
#space {
width: 600px;
height: 600px;
}
</style>
<script src="http://spacemap.cz/v1.0/api/three.min.js"></script>
<script src="http://spacemap.cz/v1.0/api/spacemap.min.js"></script>
</head>
<body>
<div id="space"></div>
<script>
var project = {
extent: [-567600,-1084000,-554400,-1071900],
zoom: 9,
tileData: 'http://spacemap.cz/resources/data/sumperk/',
tileTextures: {
background: {
tileUrl: 'http://spacemap.cz/resources/textures/sumperk/orto_256/'
}
}
};
var spaceMapViewer = new SpaceMap.Viewer({containerId: 'space'});
spaceMapViewer.initLicense(
'demo', 'demo1', {},
function(response) {
spaceMapViewer.initProject(project);
// here put your code working with library, now is library initialized
}
);
</script>
</body>
</html>