- npm updates

- Vienna Model Arae (other base extent and ima sizes)
This commit is contained in:
Arno Kaimbacher 2021-02-02 18:28:33 +01:00
parent f16a6cec49
commit cbe8a316eb
6 changed files with 95 additions and 92 deletions

View file

@ -12,23 +12,8 @@ export class BasemapControl extends Control {
constructor(title, options) {
super(title, options);
util.setOptions(this, options);
// for (var i in baseLayers) {
// this._addLayer(baseLayers[i], i);
// }
}
// onAdd(map) {
// super.onAdd(map);
// let basemaps = this.basemaps = map.basemaps;
// this._initBasemapHtml(basemaps.services);
// }
}
// onAdd(map) {
// this._mainMap = map;

View file

@ -15,14 +15,14 @@ import { TextureLoader } from 'three/src/loaders/TextureLoader';
export class DemLayer extends Layer {
images = [{
"width": 904,
"width": 407, //904,
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/export",
"height": 509,
"height": 549, //509
"bboxSR": 3034
}, {
"width": 904,
"width": 407,
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/export",
"height": 509,
"height": 549,
"bboxSR": 3034
}
];

View file

@ -105,7 +105,7 @@ export class GridLayer extends Layer {
}
buildY(size, divisions, constant) {
let step = size / divisions;
let step = this._round(size / divisions, 4);
let vertices = [];
for (let k = this._map.y.min; k <= this._map.y.max; k = k + step) {
@ -186,7 +186,7 @@ export class GridLayer extends Layer {
}
let ySize = this._map.width;
let yStep = ySize / divisions;
let yStep = this._round(ySize / divisions, 4);
for (let k = this._map.y.min; k <= this._map.y.max; k = k + yStep) {
let yCoordinate = (k % 1 != 0) ? this._round(k, 2) : k;
let info = { a: yCoordinate, size: yStep, axis: "y", color: 0x3ad29f, cl: "green-label", h: 0.6, centroid: [[this._map.x.min, k, this.gridBottomZ]] };

File diff suppressed because one or more lines are too long