From 12bcab9d9489e56a26c93f61c1b1004ca5d356a3 Mon Sep 17 00:00:00 2001 From: Patrick <patrick.wuerstle@gmx.de> Date: Thu, 19 Nov 2020 10:58:22 +0100 Subject: [PATCH] add mobile support --- vcm/config_mobile.json | 2 +- vcm/templates/story/virtualcitystory.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vcm/config_mobile.json b/vcm/config_mobile.json index a2a3e3dc5..3e56fd82f 100644 --- a/vcm/config_mobile.json +++ b/vcm/config_mobile.json @@ -1653,7 +1653,7 @@ "url": "./datasource-data/41f773d4-3e2d-4c5d-b857-ca1d9f919199", "type": "vcs.vcm.layer.cesium.Terrain", "datasourceId": "ERmRsCpzxYgZW3iia", - "activeOnStartup": true, + "activeOnStartup": false, "exclusive": false, "requestVertexNormals": true, "hiddenObjectIds": [], diff --git a/vcm/templates/story/virtualcitystory.js b/vcm/templates/story/virtualcitystory.js index 595db31a0..8b790fdd5 100644 --- a/vcm/templates/story/virtualcitystory.js +++ b/vcm/templates/story/virtualcitystory.js @@ -132,7 +132,8 @@ vcs.vcm.Framework.getInstance().subscribe("MAP_LOADED", function() { }); var framework = vcs.vcm.Framework.getInstance(); -vcs.vcm.Framework.loadConfig("config.json"); +framework.isMobile() ? vcs.vcm.Framework.loadConfig("config_mobile.json") : vcs.vcm.Framework.loadConfig("config.json") +// vcs.vcm.Framework.loadConfig("config.json"); loadStoryConfig("templates/items.json", function(data) { console.log(data); globalActions = data.actions; -- GitLab