@eturnity/eturnity_3d 0.0.10 → 1.0.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_3d",
3
3
  "private": false,
4
- "version": "0.0.10",
4
+ "version": "1.0.1",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -54,10 +54,10 @@ export default {
54
54
  // Create the map view and add it to your THREE scene
55
55
  this.three_map = new MapView(MapView.PLANAR, this.provider);
56
56
  this.three_map.rotateX(Math.PI / 2)
57
- //const coef=Math.cos(this.layoutSettings.layout_latitude*Math.PI/180)
58
- //this.three_map.scale.set(2*20015111.9287618*coef, 1, 2*20015111.9287618*coef);
59
- //var coords = UnitsUtils.datumsToSpherical(this.layoutSettings.layout_latitude, this.layoutSettings.layout_longitude)
60
- //this.three_map.position.set(-coords.x*coef,-coords.y*coef,0)
57
+ const coef=Math.cos(this.layoutSettings.layout_latitude*Math.PI/180)
58
+ this.three_map.scale.set(2*20015111.9287618*coef, 1, 2*20015111.9287618*coef);
59
+ var coords = UnitsUtils.datumsToSpherical(this.layoutSettings.layout_latitude, this.layoutSettings.layout_longitude)
60
+ this.three_map.position.set(-coords.x*coef,-coords.y*coef,0)
61
61
  this.scene.add(this.three_map)
62
62
  }else{
63
63
 
@@ -40,8 +40,7 @@ export async function hydrateData({ state, commit }, data) {
40
40
  commit('mutate_layoutSettings', layoutSetting)
41
41
  commit('mutate_module_texture_version_id', layoutSetting.module_texture_version_id)
42
42
  let layers=getLayers()
43
- console.log(layers,layoutSetting.map_layer)
44
- let selectedLayer=layers.find(layer=>layer.key==layoutSetting.map_layer)
43
+ let selectedLayer=layers.find(layer=>layer.key==layoutSetting.background_map_settings.layerKey)
45
44
  commit('mutate_selectedMapLayer', selectedLayer)
46
45
 
47
46
  //end of layoutSetting correction