Skip to content

origo-map/elevation-profile-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Shows elevation profiles of lines with z-dimension

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published