vue / cli3 incorporated cesium

 

vue / cli3 incorporated cesium

 

  Beginning with the introduction of webpack binding vue vue; As a result of various bug, Gaolebantian. Finally, ask the Friends of the base, the scaffolding was found vue · simple and efficient method, requires only a few lines of code can easily get it!

A, vue After building project, directly introduced in the public file folder cesium, and then introduced in the index.html widgets.css; cesium.js introduced at the bottom of the body

  As shown below:

  

 Second, add the following two lines of code in your introduction of cesium vue file.

 

 Display of results as follows:

 

 After that, according to individual needs, adjust the size and the location of the hidden page gizmo.

 

If there are places do not understand, please add our group study and discussion together. Study group: 854 184 700

 

 

 

Guess you like

Origin www.cnblogs.com/yaosusu/p/11987332.html