Skip to content

Commit 9c194c9

Browse files
committed
update packages and example scene
1 parent 7604406 commit 9c194c9

File tree

4 files changed

+774
-855
lines changed

4 files changed

+774
-855
lines changed

main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import L from 'leaflet';
22
import Tangram from 'tangram';
3-
import leafletHash from './leaflet-hash.js';
3+
import leafletHash from 'leaflet-hash';
44

55
const map = L.map('map');
66

77
const layer = Tangram
88
.leafletLayer({
9-
// scene: 'scene.yaml',
9+
// scene: 'scene.yaml', // simple demo scene
1010
scene: {
1111
import: [
1212
'https://www.nextzen.org/carto/bubble-wrap-style/10/bubble-wrap-style.zip',
@@ -31,7 +31,6 @@ if (urlHash.length == 3) {
3131
}
3232

3333
map.setView(startLocation[0], startLocation[1]); // setView expects format ([lat, long], zoom)
34-
// map.setView([40.70531887544228, -74.00976419448853], 15);
3534

3635
// update hash on navigation - uses leaflet-hash.js
3736
const hash = new L.Hash(map);

0 commit comments

Comments
 (0)