{"action":"closed","issue":{"url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1360","repository_url":"https://api.github.com/repos/TerriaJS/terriajs","labels_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1360/labels{/name}","comments_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1360/comments","events_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1360/events","html_url":"https://github.com/TerriaJS/terriajs/issues/1360","id":137717904,"number":1360,"title":"Error when loading Cesium map after update to 1.18","user":{"login":"keattang","id":10136423,"avatar_url":"https://avatars.githubusercontent.com/u/10136423?v=3","gravatar_id":"","url":"https://api.github.com/users/keattang","html_url":"https://github.com/keattang","followers_url":"https://api.github.com/users/keattang/followers","following_url":"https://api.github.com/users/keattang/following{/other_user}","gists_url":"https://api.github.com/users/keattang/gists{/gist_id}","starred_url":"https://api.github.com/users/keattang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keattang/subscriptions","organizations_url":"https://api.github.com/users/keattang/orgs","repos_url":"https://api.github.com/users/keattang/repos","events_url":"https://api.github.com/users/keattang/events{/privacy}","received_events_url":"https://api.github.com/users/keattang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-01T23:19:31Z","updated_at":"2016-03-03T01:06:05Z","closed_at":"2016-03-03T01:06:05Z","body":"I'm getting a silent error where the globe and base map don't load. As far as I can tell its unrelated to my build but it would be good to get someone else to confirm whether they have a successful build.\r\n\r\nThe error occurs here because `encoding` is undefined:\r\nhttps://github.com/TerriaJS/cesium/blob/c1af4a31e0db438fc95564b43aa26994f70989dd/Source/Core/TerrainEncoding.js#L320\r\n\r\nAnd originates here: https://github.com/TerriaJS/terriajs/blob/90e346fc3750e9c005633a8ec9feb8729676fde8/lib/Models/Cesium.js#L156\r\n\r\nWhat seems to be happening is that the `createVerticesFromHeightmap` web worker is not attaching the `encoding` property to the result it returns. \r\n\r\nThis is the stack trace I get when manually calling `encoding.quantization` from the developer console. You can reach this point by turning on `Pause on caught exceptions` and loading switching between `3D Terrain` and `3D Smooth`.\r\n```\r\nUncaught TypeError: Cannot read property 'quantization' of undefined(…)\r\nTerrainEncoding.clone @ TerrainEncoding.js:194\r\n(anonymous function) @ HeightmapTerrainData.js:84\r\n(anonymous function) @ when.js:196\r\n(anonymous function) @ when.js:297\r\nprocessQueue @ when.js:647\r\n_resolve @ when.js:333\r\npromiseResolve @ when.js:359\r\ncompleteTask @ TaskProcessor.js:46\r\nworker.onmessage @ TaskProcessor.js:91\r\n_worker.onmessage @ Cesium.js:157\r\n```\r\n\r\nAnyone have an idea on what might be causing this?\r\n"}}