Skip to content

Commit

Permalink
update packages and example scene
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Jan 5, 2020
1 parent 7604406 commit 9c194c9
Show file tree
Hide file tree
Showing 4 changed files with 774 additions and 855 deletions.
5 changes: 2 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import L from 'leaflet';
import Tangram from 'tangram';
import leafletHash from './leaflet-hash.js';
import leafletHash from 'leaflet-hash';

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

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

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

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

0 comments on commit 9c194c9

Please sign in to comment.