Elevation profile plugin for Origo. Shows profiles for linestrings that has z-dimension.
Add .css and .js-files (after origo.js) and then config:
index.html:
<link href="plugin/elevation-profile.css" rel="stylesheet">
<script src="plugin/elevation-profile.min.js"></script>
var origo = Origo('index.json');
origo.on('load', function(viewer) {
var ep = ElevationProfile(viewer);
viewer.addComponent(ep);
});
index.json:
"layers": [
{
"name": "profile-layer",
"attributes": [
{
"showProfile": true
}
]
}
]