Skip to content

haninge-geodata/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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.7%
  • CSS 43.3%