Rename _ol_source_OSM_ to OSM
This commit is contained in:
@@ -5,7 +5,7 @@ import ImageLayer from '../src/ol/layer/Image.js';
|
||||
import TileLayer from '../src/ol/layer/Tile.js';
|
||||
import {transform} from '../src/ol/proj.js';
|
||||
import Static from '../src/ol/source/ImageStatic.js';
|
||||
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
|
||||
import OSM from '../src/ol/source/OSM.js';
|
||||
import {register} from '../src/ol/proj/proj4.js';
|
||||
import proj4 from 'proj4';
|
||||
|
||||
@@ -20,7 +20,7 @@ var imageExtent = [0, 0, 700000, 1300000];
|
||||
var map = new Map({
|
||||
layers: [
|
||||
new TileLayer({
|
||||
source: new _ol_source_OSM_()
|
||||
source: new OSM()
|
||||
}),
|
||||
new ImageLayer({
|
||||
source: new Static({
|
||||
|
||||
Reference in New Issue
Block a user