Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,17 +1,17 @@
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.extent');
goog.require('ol.layer.Tile');
goog.require('ol.proj');
goog.require('ol.source.OSM');
goog.require('ol.source.WMTS');
goog.require('ol.tilegrid.WMTS');
import _ol_Map_ from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import _ol_control_ from '../src/ol/control.js';
import _ol_extent_ from '../src/ol/extent.js';
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
import _ol_proj_ from '../src/ol/proj.js';
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
import _ol_source_WMTS_ from '../src/ol/source/WMTS.js';
import _ol_tilegrid_WMTS_ from '../src/ol/tilegrid/WMTS.js';
var projection = ol.proj.get('EPSG:3857');
var projection = _ol_proj_.get('EPSG:3857');
var projectionExtent = projection.getExtent();
var size = ol.extent.getWidth(projectionExtent) / 256;
var size = _ol_extent_.getWidth(projectionExtent) / 256;
var resolutions = new Array(14);
var matrixIds = new Array(14);
for (var z = 0; z < 14; ++z) {
@@ -20,15 +20,15 @@ for (var z = 0; z < 14; ++z) {
matrixIds[z] = z;
}
var map = new ol.Map({
var map = new _ol_Map_({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM(),
new _ol_layer_Tile_({
source: new _ol_source_OSM_(),
opacity: 0.7
}),
new ol.layer.Tile({
new _ol_layer_Tile_({
opacity: 0.7,
source: new ol.source.WMTS({
source: new _ol_source_WMTS_({
attributions: 'Tiles © <a href="https://services.arcgisonline.com/arcgis/rest/' +
'services/Demographics/USA_Population_Density/MapServer/">ArcGIS</a>',
url: 'https://services.arcgisonline.com/arcgis/rest/' +
@@ -37,8 +37,8 @@ var map = new ol.Map({
matrixSet: 'EPSG:3857',
format: 'image/png',
projection: projection,
tileGrid: new ol.tilegrid.WMTS({
origin: ol.extent.getTopLeft(projectionExtent),
tileGrid: new _ol_tilegrid_WMTS_({
origin: _ol_extent_.getTopLeft(projectionExtent),
resolutions: resolutions,
matrixIds: matrixIds
}),
@@ -48,12 +48,12 @@ var map = new ol.Map({
})
],
target: 'map',
controls: ol.control.defaults({
controls: _ol_control_.defaults({
attributionOptions: {
collapsible: false
}
}),
view: new ol.View({
view: new _ol_View_({
center: [-11158582, 4813697],
zoom: 4
})