Unexpected Token ILLEGAL

120 views
Skip to first unread message

joelr...@gmail.com

unread,
Jun 10, 2016, 9:40:37 PM6/10/16
to cesium-dev
/home/zphinx/Cesium/node_modules/request/node_modules/tough-cookie/lib/store.js:1
(function (exports, require, module, __filename, __dirname) { /*!
^^^

SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/zphinx/Cesium/node_modules/request/node_modules/tough-cookie/lib/cookie.js:35:13)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)


I was having trouble with the BING API and reinstalled Cesium. This time however I ran into a lot of errors when trying to run node server.js. After npm installing many modules I finally reached a deadend with the above error. Any advice?

Hannah Pinkos

unread,
Jun 13, 2016, 10:29:21 AM6/13/16
to cesium-dev, joelr...@gmail.com
Hello,

You shouldn't need to make any changes to Cesium to fix the Bing API maps.  See the response in this forum post: https://groups.google.com/d/msg/cesium-dev/UlB56Yn1WII/rq4MEzX5AwAJ
Once you have your key, you just need to add this line of code to your application: Cesium.BingMapsApi.defaultKey = 'my new key';

Best,

Hannah
Reply all
Reply to author
Forward
0 new messages