Transformed
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.layer.Image');
|
||||
goog.require('ol.layer.Tile');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.ImageWMS');
|
||||
goog.require('ol.source.TileWMS');
|
||||
import _ol_Map_ from '../src/ol/Map.js';
|
||||
import _ol_View_ from '../src/ol/View.js';
|
||||
import _ol_layer_Image_ from '../src/ol/layer/Image.js';
|
||||
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
|
||||
import _ol_proj_Projection_ from '../src/ol/proj/Projection.js';
|
||||
import _ol_source_ImageWMS_ from '../src/ol/source/ImageWMS.js';
|
||||
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
|
||||
|
||||
|
||||
var layers = [
|
||||
new ol.layer.Tile({
|
||||
source: new ol.source.TileWMS({
|
||||
new _ol_layer_Tile_({
|
||||
source: new _ol_source_TileWMS_({
|
||||
attributions: '© <a href="http://www.geo.admin.ch/internet/geoportal/' +
|
||||
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>',
|
||||
crossOrigin: 'anonymous',
|
||||
@@ -20,8 +20,8 @@ var layers = [
|
||||
url: 'https://wms.geo.admin.ch/'
|
||||
})
|
||||
}),
|
||||
new ol.layer.Image({
|
||||
source: new ol.source.ImageWMS({
|
||||
new _ol_layer_Image_({
|
||||
source: new _ol_source_ImageWMS_({
|
||||
attributions: '© <a href="http://www.geo.admin.ch/internet/geoportal/' +
|
||||
'en/home.html">National parks / geo.admin.ch</a>',
|
||||
crossOrigin: 'anonymous',
|
||||
@@ -37,15 +37,15 @@ var layers = [
|
||||
// projection object. Requesting tiles only needs the code together with a
|
||||
// tile grid of Cartesian coordinates; it does not matter how those
|
||||
// coordinates relate to latitude or longitude.
|
||||
var projection = new ol.proj.Projection({
|
||||
var projection = new _ol_proj_Projection_({
|
||||
code: 'EPSG:21781',
|
||||
units: 'm'
|
||||
});
|
||||
|
||||
var map = new ol.Map({
|
||||
var map = new _ol_Map_({
|
||||
layers: layers,
|
||||
target: 'map',
|
||||
view: new ol.View({
|
||||
view: new _ol_View_({
|
||||
center: [660000, 190000],
|
||||
projection: projection,
|
||||
zoom: 9
|
||||
|
||||
Reference in New Issue
Block a user