Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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