@eturnity/eturnity_3d 7.10.2 → 7.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsconfig.json +8 -0
- package/package.json +1 -1
- package/src/helper/threeMixin.js +14 -6
- package/src/utils/constants.js +16 -0
package/jsconfig.json
ADDED
package/package.json
CHANGED
package/src/helper/threeMixin.js
CHANGED
|
@@ -5,6 +5,7 @@ import { CustomProvider } from './customProvider'
|
|
|
5
5
|
import getLayers from '../utils/layers'
|
|
6
6
|
import materialMixin from './materialMixin'
|
|
7
7
|
import renderMixin from './renderMixin'
|
|
8
|
+
import { MAP_LAYER_TYPE } from '../utils/constants'
|
|
8
9
|
export default {
|
|
9
10
|
data() {
|
|
10
11
|
return {
|
|
@@ -159,18 +160,25 @@ export default {
|
|
|
159
160
|
this.setSelectedMapLayer(null)
|
|
160
161
|
|
|
161
162
|
if (this.selectedMapLayer === null) {
|
|
162
|
-
|
|
163
|
+
let selectedLayer = null
|
|
164
|
+
for (let i = 0; i < this.layers.length; i++) {
|
|
165
|
+
const layer = this.layers[i]
|
|
163
166
|
if (
|
|
164
167
|
this.globalProjectProperties &&
|
|
165
|
-
|
|
168
|
+
layer.key === this.globalProjectProperties.map_type
|
|
166
169
|
) {
|
|
167
|
-
|
|
170
|
+
selectedLayer = layer
|
|
171
|
+
break
|
|
168
172
|
}
|
|
169
173
|
}
|
|
170
|
-
}
|
|
171
174
|
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
if (!selectedLayer) {
|
|
176
|
+
selectedLayer = this.layers.find(
|
|
177
|
+
(layer) => layer.key === MAP_LAYER_TYPE.GOOGLE_SATELLITE
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
this.setSelectedMapLayer(selectedLayer)
|
|
174
182
|
}
|
|
175
183
|
},
|
|
176
184
|
render() {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const MAP_LAYER_TYPE = {
|
|
2
|
+
SWISSTOPO_SATELLITE: 'swisstopoLayer_swissimage',
|
|
3
|
+
SWISSTOPO_MAP: 'swisstopoLayer_pixelkarte',
|
|
4
|
+
SWISSTOPO_SOLAR_ROOF: 'swisstopoLayer_solarenergie_roof',
|
|
5
|
+
SWISSTOPO_SOLAR_FACADE: 'swisstopoLayer_solarenergie_fassade',
|
|
6
|
+
OPENSTREET_MAP: 'openStreetMapLayer',
|
|
7
|
+
GOOGLE_TERRAIN: 'googleLayerTerrain',
|
|
8
|
+
GOOGLE_ROAD: 'googleLayerRoadmap',
|
|
9
|
+
GOOGLE_SATELLITE: 'googleLayer',
|
|
10
|
+
BASEMAP_ROAD: 'baseMapLayer',
|
|
11
|
+
BASEMAP_SATELLITE: 'baseMapLayerStreetNumber',
|
|
12
|
+
IGN_SATELLITE: 'ignSpainLayer_pnoa_image',
|
|
13
|
+
IGN_ROAD: 'ignSpainLayer_map',
|
|
14
|
+
BKG_SATELLITE: 'bkgHexagonGermanyLayer',
|
|
15
|
+
GEOPORTAL_SATELLITE: 'geoportail_fr_wmts_ortho_layer'
|
|
16
|
+
}
|