cesium编程入门(二)环境搭建

环境搭建

环境搭建 编译

node 安装

Node.js安装包及源码下载地址为:https://nodejs.org/en/download/

安装完成后,打开命令行,输入:node -v,如果结果为版本号,表明安装成功

 $ node -v
 v6.10.3

cnpm 设置

国内使用npm时有时速度很慢,推荐使用cnpm替代,使用方法和npm一样,链接:淘宝 NPM 镜像

$ npm install -g cnpm --registry=https://registry.npm.taobao.org
$ cnpm -v
cnpm@5.1.1 (/usr/local/lib/node_modules/cnpm/lib/parse_argv.js)
npm@5.3.0 (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/npm.js)
node@6.10.3 (/usr/local/bin/node)
npminstall@3.1.1 (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/index.js)
prefix=/usr/local
darwin x64 17.2.0
registry=http://registry.npm.taobao.org

Cesium代码

  1. 下载官方包 地址,由于总所周知的原因,速度很感人

  2. 百度云链接 密码: 9g73 版本1.40

  3. 如果想了解最新的进展可以直接克隆 github 上的代码 github地址
    注意有些特性在分支版本里面才有,

获取安装包之后

  1. 解压
  2. 打开命令行,进入当前目录
  3. 安装依赖,输入:cnpm install,等待安装完成,然后输入: node server.js
$ cd ./Cesium-1.40
$ cnpm install
 ...
 Installed 37 packages
 Linked 569 latest versions

$ node server.js
Cesium development server running locally.  Connect to http://localhost:8080/

打开浏览器,输入 http://localhost:8080/ (浏览器必须支持webgl,推荐使用chrome)
如果出现

4. 到这里,环境搭建完成。

推荐使用编辑器

如果单纯的学习如何使用的话,使用http://localhost:8080/Apps/Sandcastle/index.html应该就够了,如果要使用编辑器的话,推荐使用vscode
vscode插件提示了解一下:cesium编程中级(九)cesium工具篇-VS Code提示 ^_^.

使用说明

环境搭建好之后,输入 http://localhost:8080/ 有两个链接非常重要

Documentation

Sandcastle

Documentation

里面是Cesium的完整的API说明,里面可以找到:

  • 某一个模块的所有函数,属性
  • 部分效果截图
  • 部分函数,属性调用代码示例

缺点:搜索功能不够强大

Sandcastle

这个就厉害了,是一个沙盒,你可以在里面
+ 浏览当前版本的一些功能特性
+ 一个可运行的代码库
+ 新建一个页面,进行代码测试
+ 导出测试代码
+ …

推荐的学习方式

  1. 先浏览一遍沙盒里的所有示例,Cesium能做什么,做成什么样,心里有数
  2. 做自己需要的功能时,查找到相关示例代码,弄懂,最好浏览一遍用到的模块的API
  3. 如果是深入研究的话,就需要有对WebGL有更深层次的了解
  4. 用它做自己感兴趣的项目。。。

Cesium学习交流群:593764057

93 Responses

  1. Rjwxde说道:

    augmentin 625mg pill clavulanate generic buy clomiphene 100mg without prescription

  2. Rbtdzx说道:

    order escitalopram for sale oral fluoxetine 40mg order revia 50 mg generic

  3. Mowspr说道:

    furosemide sale doxycycline 100mg without prescription ventolin 4mg usa

  4. Qlnrsr说道:

    strattera 25mg uk order sertraline 50mg sale order sertraline generic

  5. Lzyvpl说道:

    order actigall without prescription buy urso tablets purchase zyrtec online cheap

  6. Pqzfki说道:

    buy azithromycin without prescription cost gabapentin 600mg buy gabapentin 100mg pills

  7. Egfhxq说道:

    best supplement for digestive issues acidity patch over the counter otc that helps flatulence

  8. Scvzkq说道:

    purchase prednisone pill purchase prednisone pills amoxicillin 250mg canada

  9. Yyzxuj说道:

    birth control patch order online where to buy volume pills best pills for semen volume

  10. Dpzkgt说道:

    order promethazine 25mg without prescription promethazine tablet ivermectin 6mg tablet for lice

  11. Zjiafs说道:

    do stomach ulcers cause constipation online uti treatment with insurance will tylenol help uti pain

  12. Kiysur说道:

    order duloxetine 20mg pills cymbalta 40mg pills provigil 100mg pill

  13. Hwaicu说道:

    where to buy fungus clear medication for herpes claim trueda blood pressure medications names alphabetical list

  14. Bkurtp说道:

    herpes medication without insurance boots inhalers over the counter best a1c best lowering drug

  15. Zxcjxh说道:

    generic medroxyprogesterone hydrochlorothiazide 25mg pill hydrochlorothiazide 25mg tablet

  16. Lxpjbm说道:

    new drug to quit smoking uk list of standaredc painkillers meds online without a prescription

  17. Ktlszz说道:

    buy cheap generic femara buy generic albenza for sale buy abilify 20mg

  18. Bbgxgc说道:

    uk sleeping pills website mayo clinic diet login natural weight loss pills

  19. Ettinm说道:

    buy minocin generic buy requip 1mg order ropinirole online

  20. Gjiwrj说道:

    prescription acne medications brand names buy clearasil adult acne medication order generic trileptal 600mg

  21. Bfanjz说道:

    cost catapres 0.1 mg purchase clonidine pill order generic tiotropium bromide

  22. Relcbd说道:

    rocaltrol for sale online how to buy fenofibrate tricor buy online

  23. Fhvsou说道:

    amoxicillin cost buy generic biaxin 500mg clarithromycin price

  24. Wvtvge说道:

    buy assignments gambling sites play online casino real money

  25. Zilbrm说道:

    my family essay writing essays to write about purchase cefixime pill

  26. Dxomzl说道:

    purchase aspirin online casino games hard rock casino online

  27. Cuhojb说道:

    cost trazodone 100mg trazodone 50mg sale buy clindamycin online

  28. Zysygb说道:

    order axetil online order robaxin pill buy methocarbamol

  29. Fzvgwd说道:

    order generic tadacip voltaren 50mg us oral indocin 75mg

  30. Pzjjmo说道:

    buy generic tamoxifen order budesonide generic budesonide allergy spray

  31. Spfiuk说道:

    buy retin medication tadalafil pills avana online buy

  32. Dljevh说道:

    buy generic clindamycin for sale order cleocin 150mg generic order sildenafil 100mg without prescription

  33. Vhnnle说道:

    purchase lamictal online order lamotrigine 200mg pills buy generic vermox 100mg

  34. Saujwp说道:

    buy metronidazole online generic cephalexin cephalexin 500mg canada

  35. Nlwehg说道:

    order aurogra 50mg pills buy estrace without a prescription order estradiol without prescription

  36. Oljcnw说道:

    oral fluconazole 100mg order generic diflucan 200mg cipro 500mg sale

  37. Xysdek说道:

    pay for research papers writing essays for money help with assignments australia

  38. Bjdrof说道:

    spironolactone 25mg oral order valacyclovir 1000mg without prescription order finasteride 5mg online

  39. Fcytyb说道:

    domperidone cost purchase tetracycline without prescription tetracycline 250mg pill

  40. Dyebvi说道:

    purchase flomax sale buy cheap generic simvastatin simvastatin price

  41. Myscby说道:

    order buspar without prescription order buspar amiodarone usa

  42. Flffef说道:

    order ranitidine sale meloxicam 7.5mg canada buy celebrex 100mg generic

  43. Qazffk说道:

    buy allopurinol no prescription allopurinol 100mg uk crestor 20mg pill

  44. Jxgszn说道:

    buy nexium without a prescription topiramate cheap topiramate 100mg uk

  45. Phyabt说道:

    purchase astelin for sale order astelin generic order avapro 300mg online

  46. Nxcwhf说道:

    pepcid 20mg pill order pepcid 40mg sale buy prograf without a prescription

  47. Afggrh说道:

    purchase orlistat generic order diltiazem generic purchase diltiazem online cheap

  48. Jggorq说道:

    order warfarin online cheap oral medex where to buy reglan without a prescription

  49. Lhmomn说道:

    nortriptyline 25mg price acetaminophen 500 mg drug buy paracetamol pills for sale

  50. Vkyrss说道:

    buy inderal pills buy generic propranolol over the counter order clopidogrel generic

  51. Rodneyorics说道:

    brillx официальный сайт вход
    https://brillx-kazino.com
    Предоставив широкий спектр игр и вариантов ставок, мы делаем ставку на то, что каждый игрок найдет что-то особенное для себя. Brillx Казино – это не просто место для азартных игр, это место, где рождаются легенды и судьбы переплетаются с риском.Не пропустите шанс испытать удачу на официальном сайте бриллкс казино. Это место, где мечты сбываются и желания оживают. Станьте частью азартного влечения, которое не знает границ. Вас ждут невероятные призы, захватывающие турниры и море адреналина.

  52. Cuyrwv说道:

    where can i buy alendronate buy colchicine 0.5mg generic nitrofurantoin 100 mg for sale

  53. Jfniai说道:

    glimepiride ca buy arcoxia cheap etoricoxib uk

  54. Zrffqd说道:

    baclofen 10mg drug purchase toradol generic cheap toradol

  55. Nermbg说道:

    loratadine 10mg cost claritin buy online order dapoxetine 60mg generic

  56. Wilbgc说道:

    order generic baclofen buy generic baclofen 10mg toradol pills

  57. Wbvxbu说道:

    phenytoin ca ditropan oral buy oxytrol pills

  58. Oyrces说道:

    aceon 8mg cheap cost allegra 120mg fexofenadine buy online

  59. Kxauyq说道:

    order vardenafil generic levitra tablet order tizanidine 2mg pills

  60. Fxtmjq说道:

    clomid over the counter imdur over the counter buy azathioprine 50mg for sale

  61. Tlwnxf说道:

    methylprednisolone 4mg oral purchase adalat online cheap triamcinolone 4mg usa

  62. Xkzvaq说道:

    free blackjack online clavulanate usa levothyroxine canada

  63. Hyyuqp说道:

    symmetrel online buy avlosulfon over the counter buy dapsone no prescription

  64. Rkkmtk说道:

    blackjack vegas free online games jackpot party casino buy stromectol online

  65. Tcorde说道:

    roulette online free slots casino best antihistamine pills

  66. Tibtsv说道:

    buy generic protonix online order pyridium sale pyridium 200 mg brand

  67. Ndtfit说道:

    money slots lasix cost furosemide over the counter

  68. Lxloap说道:

    order azipro online azipro 250mg tablet buy neurontin 600mg online

  69. Voajts说道:

    atorvastatin oral amlodipine 5mg pills where to buy amlodipine without a prescription

  70. Pjebhl说道:

    purchase accutane for sale accutane tablet order azithromycin 500mg pills

  71. Lbjoph说道:

    brand omnicef 300mg order prevacid generic buy lansoprazole without prescription

  72. Uwpnpy说道:

    buy provigil generic prednisone 5mg us buy prednisone 10mg online

  73. Vxfelk说道:

    buy generic cenforce 50mg naprosyn pill buy aralen 250mg without prescription

  74. Tvmcok说道:

    buy micardis cheap buy plaquenil tablets buy molnunat 200 mg generic

  75. Tmrzhw说道:

    cialis 5mg cost tadalafil for sale online cheap viagra sale

  76. Xwowll说道:

    premarin 600 mg uk buy viagra 50mg generic buy sildenafil 50mg pill

  77. Clkjwk说道:

    omeprazole 20mg drug buy metoprolol 100mg online lopressor 50mg ca

  78. Njcigu说道:

    buy cheap betahistine betahistine 16mg price buy probenecid generic

  79. Shktew说道:

    buy latanoprost for sale order exelon online cheap cost exelon 6mg

  80. Mnkylr说道:

    enalapril 5mg us buy cheap doxazosin lactulose sale

  81. Fqflys说道:

    mestinon 60 mg drug generic rizatriptan rizatriptan for sale

  82. Fmxkxm说道:

    cost ferrous sulfate 100mg order ferrous sulfate 100mg online order sotalol without prescription

  83. Fumvkb说道:

    prasugrel 10 mg for sale dramamine brand buy detrol 2mg generic

  84. Fpigat说道:

    buy etodolac paypal buy cilostazol for sale cilostazol 100mg cheap

  85. Ytfqio说道:

    fludrocortisone 100 mcg over the counter cheap imodium 2 mg buy generic imodium 2mg

  86. Tmcrmp说道:

    order duphaston 10mg online cheap buy dapagliflozin pills for sale empagliflozin 25mg canada

  87. Pqgxqj说道:

    melatonin 3 mg pill oral cerazette 0.075 mg danazol online buy

  88. Nvjdju说道:

    purchase dipyridamole generic how to get plendil without a prescription pravachol 10mg us

  89. Ldfdny说道:

    buy acarbose paypal precose 25mg uk fulvicin ca

  90. Krhypg说道:

    generic mintop over the counter ed pills where to buy over the counter ed pills

  91. Tohaer说道:

    order zaditor generic order geodon 80mg pills buy cheap generic tofranil

  92. Rwxxly说道:

    buy cialis 40mg online cheap sildenafil pill buy sildenafil generic

  93. Agntwp说道:

    order fenofibrate 160mg online buy fenofibrate 200mg generic buy fenofibrate 200mg

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

CAPTCHAis initialing...