Fix examples that use WebGLMap

This commit is contained in:
Tim Schaub
2018-11-04 19:49:34 -07:00
parent f6b838c635
commit c50b9b2c25
4 changed files with 9 additions and 4 deletions

View File

@@ -2,12 +2,17 @@ import Map from '../src/ol/Map.js';
import WebGLMap from '../src/ol/WebGLMap.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import WebGLTileLayer from '../src/ol/layer/WebGLTile.js';
import OSM from '../src/ol/source/OSM.js';
const layer = new TileLayer({
source: new OSM()
});
const webGLLayer = new WebGLTileLayer({
source: new OSM()
});
const view = new View({
center: [0, 0],
zoom: 1
@@ -21,6 +26,6 @@ const map1 = new Map({
const map2 = new WebGLMap({
target: 'webglMap',
layers: [layer],
layers: [webGLLayer],
view: view
});