Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 656 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 656 Bytes

elevation-profile-plugin

Elevation profile plugin for Origo. Shows profiles for linestrings that has z-dimension.

Example usage of Elevation profile as plugin

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
   }
  ]
 }
]