Skip to content

Commit

Permalink
example on DE
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Jul 12, 2023
1 parent 11912dc commit 4fc82e1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions examples/DE.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en" style="height: 100%">

<head>
<meta name="viewport" content="maximum-scale=1.0, user-scalable=no" />
<title>Gridviz - example</title>
</head>

<body style="margin: 0; height: 100%; font-family: Arial, Helvetica, sans-serif; overflow: hidden">
<div id="viz-container" style="height: 100%; width: 100%"></div>

<script src="../dist/gridviz.js"></script>
<script>
let containerDiv = document.getElementById('viz-container')

new gviz.App(containerDiv)
.setGeoCenter({ x: 4301000, y: 2889000 })
.setZoomFactor(3)
.addTiledGridLayer(
'https://raw.githubusercontent.com/jgaffuri/tiledgrids/main/data/germany/heizung/100m/',
[
new gviz.CompositionStyle({
//x,y,Insg,fernw,etagen,zentral
color: {
fernw: 'purple',
zentral: 'yellow',
etagen: 'orange',
Insg: "gray"
},
type: () => 'piechart',
offsetAngle: () => 0,
}),
]
)
</script>
</body>

</html>

0 comments on commit 4fc82e1

Please sign in to comment.