Re-export source constructors from ol/source

This commit is contained in:
Tim Schaub
2018-04-23 17:34:10 -06:00
parent 311ab0eae1
commit a5d3e91f7d
36 changed files with 65 additions and 76 deletions

View File

@@ -3,9 +3,7 @@ import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import ImageLayer from '../src/ol/layer/Image.js';
import TileLayer from '../src/ol/layer/Tile.js';
import OSM from '../src/ol/source/OSM.js';
import RasterSource from '../src/ol/source/Raster.js';
import XYZ from '../src/ol/source/XYZ.js';
import {OSM, Raster, XYZ} from '../src/ol/source.js';
/**
@@ -108,7 +106,7 @@ const elevation = new XYZ({
transition: 0
});
const raster = new RasterSource({
const raster = new Raster({
sources: [elevation],
operationType: 'image',
operation: shade