Rename _ol_source_TileWMS_ to TileWMS

This commit is contained in:
Tim Schaub
2018-01-08 15:55:53 -07:00
parent a18512d78c
commit 32ee149909
14 changed files with 61 additions and 61 deletions
+2 -2
View File
@@ -3,12 +3,12 @@ import View from '../src/ol/View.js';
import {defaults as defaultControls} from '../src/ol/control.js';
import ScaleLine from '../src/ol/control/ScaleLine.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
var layers = [
new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR',
+2 -2
View File
@@ -1,10 +1,10 @@
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
var wmsSource = new _ol_source_TileWMS_({
var wmsSource = new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {'LAYERS': 'ne:ne', 'TILED': true},
serverType: 'geoserver',
+4 -4
View File
@@ -7,7 +7,7 @@ import {get as getProjection} from '../src/ol/proj.js';
import {register} from '../src/ol/proj/proj4.js';
import OSM from '../src/ol/source/OSM.js';
import TileImage from '../src/ol/source/TileImage.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
import _ol_source_WMTS_ from '../src/ol/source/WMTS.js';
import XYZ from '../src/ol/source/XYZ.js';
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
@@ -72,7 +72,7 @@ layers['osm'] = new TileLayer({
});
layers['wms4326'] = new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
crossOrigin: '',
params: {
@@ -84,7 +84,7 @@ layers['wms4326'] = new TileLayer({
});
layers['wms21781'] = new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
attributions: '© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>',
crossOrigin: 'anonymous',
@@ -135,7 +135,7 @@ for (var i = 0, ii = resolutions.length; i < ii; ++i) {
}
layers['states'] = new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
crossOrigin: '',
params: {'LAYERS': 'topp:states'},
+3 -3
View File
@@ -4,7 +4,7 @@ import View from '../src/ol/View.js';
import {circular as circularPolygon} from '../src/ol/geom/Polygon.js';
import TileLayer from '../src/ol/layer/Tile.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
import VectorSource from '../src/ol/source/Vector.js';
var vectorLayer4326 = new VectorLayer({
@@ -18,7 +18,7 @@ var vectorLayer3857 = new VectorLayer({
var map4326 = new Map({
layers: [
new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR',
@@ -39,7 +39,7 @@ var map4326 = new Map({
var map3857 = new Map({
layers: [
new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {
'LAYERS': 'ne:NE1_HR_LC_SR_W_DR',
+3 -3
View File
@@ -5,7 +5,7 @@ import ScaleLine from '../src/ol/control/ScaleLine.js';
import TileLayer from '../src/ol/layer/Tile.js';
import {addProjection, addCoordinateTransforms, transform} from '../src/ol/proj.js';
import _ol_proj_Projection_ from '../src/ol/proj/Projection.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
// By default OpenLayers does not know about the EPSG:21781 (Swiss) projection.
@@ -44,7 +44,7 @@ var extent = [420000, 30000, 900000, 350000];
var layers = [
new TileLayer({
extent: extent,
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions: '© <a href="http://www.geo.admin.ch/internet/geoportal/' +
@@ -58,7 +58,7 @@ var layers = [
}),
new TileLayer({
extent: extent,
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions: '© <a href="http://www.geo.admin.ch/internet/geoportal/' +
+2 -2
View File
@@ -4,7 +4,7 @@ import * as _ol_extent_ from '../src/ol/extent.js';
import TileLayer from '../src/ol/layer/Tile.js';
import {get as getProjection} from '../src/ol/proj.js';
import OSM from '../src/ol/source/OSM.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
@@ -25,7 +25,7 @@ var layers = [
source: new OSM()
}),
new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {'LAYERS': 'topp:states', 'TILED': true},
serverType: 'geoserver',
+2 -2
View File
@@ -4,12 +4,12 @@ import ImageLayer from '../src/ol/layer/Image.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_proj_Projection_ from '../src/ol/proj/Projection.js';
import ImageWMS from '../src/ol/source/ImageWMS.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
var layers = [
new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
attributions: '© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>',
crossOrigin: 'anonymous',
+2 -2
View File
@@ -2,7 +2,7 @@ import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import OSM from '../src/ol/source/OSM.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
var layers = [
@@ -10,7 +10,7 @@ var layers = [
source: new OSM()
}),
new TileLayer({
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/ne/wms',
params: {'LAYERS': 'ne:ne_10m_admin_0_countries', 'TILED': true},
serverType: 'geoserver'
+2 -2
View File
@@ -2,7 +2,7 @@ import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import OSM from '../src/ol/source/OSM.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
var layers = [
@@ -11,7 +11,7 @@ var layers = [
}),
new TileLayer({
extent: [-13884991, 2870341, -7455066, 6338219],
source: new _ol_source_TileWMS_({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/wms',
params: {'LAYERS': 'topp:states', 'TILED': true},
serverType: 'geoserver',
+2 -2
View File
@@ -4,7 +4,7 @@ import * as _ol_extent_ from '../src/ol/extent.js';
import TileLayer from '../src/ol/layer/Tile.js';
import {transformExtent} from '../src/ol/proj.js';
import Stamen from '../src/ol/source/Stamen.js';
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
import TileWMS from '../src/ol/source/TileWMS.js';
function threeHoursAgo() {
return new Date(Math.round(Date.now() / 3600000) * 3600000 - 3600000 * 3);
@@ -23,7 +23,7 @@ var layers = [
}),
new TileLayer({
extent: extent,
source: new _ol_source_TileWMS_({
source: new TileWMS({
attributions: ['Iowa State University'],
url: 'https://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi',
params: {'LAYERS': 'nexrad-n0r-wmst'}