import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import TileLayer from '../src/ol/layer/Tile.js'; import {fromLonLat} from '../src/ol/proj.js'; import OSM from '../src/ol/source/OSM.js'; import TileJSON from '../src/ol/source/TileJSON.js'; const map = new Map({ layers: [ new TileLayer({ source: new OSM() }), new TileLayer({ source: new TileJSON({ url: 'https://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.json?secure', crossOrigin: 'anonymous', // this layer has transparency, so do not fade tiles: transition: 0 }) }) ], target: 'map', view: new View({ center: fromLonLat([-77.93255, 37.9555]), zoom: 7 }) });