Skip to content

Commit 5357cef

Browse files
committed
Updates
1 parent eacc759 commit 5357cef

16 files changed

+916
-413
lines changed

example/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010

1111
<body>
1212
<!-- Load data.json every 5 seconds -->
13-
PROVIDER
14-
<js-provider id="provider" path="data.json" interval="5"></js-provider>
13+
<div>
14+
PROVIDER
15+
<js-provider id="provider" interval="5"></js-provider>
16+
<js-button disabled textTransform="uppercase" onClick="console.log('click');">Reload</js-button>
17+
</div>
1518

16-
<!-- This is the object -->
17-
MODEL
18-
<js-geo-feature id="model" provider="provider"></js-geo-feature>
19+
TABLE
20+
<js-table-body id="table"></js-table-body>
1921
</body>
2022

2123
</html>

example/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Components
44
import '../src/core/core';
5-
import '../src/geojson/geojson';
5+
import '../src/element/element';
66

77
// Other
88
import './esbuild';

example/load.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
import { FeatureModel } from "../src/geojson/FeatureModel";
12

23
window.addEventListener('load', () => {
3-
// TODO
4+
const provider = document.querySelector('#provider');
5+
const table = document.querySelector('#table');
6+
table.model = new FeatureModel(provider);
7+
provider.path = 'data.json';
48
});

0 commit comments

Comments
 (0)