Cesium column -Billboard loaded Gif images

Cesium is designed for three-dimensional map of the Earth and world-class open source JavaScript. It provides a development kit based on the JavaScript language, user-friendly Web applications to quickly build a zero Virtual Earth plug-in, and in performance, precision, and multi-platform rendering quality, ease of use have quality assurance.

Some time ago, in some exchange group saw a friend of mine asked how to load Gif picture Billboard, exactly, on Github has a similar effect cases , however reluctantly, case packing package to Cesium source inside, and Cesium version too old, so study a little, based on libgif-js made a case load of Billboard Gif picture sharing to a friend in need.

Renderings

of the original GIF image

The code amount is relatively small, direct share

var div = document.createElement("div");
var img = document.createElement("img");
div.appendChild(img);
img.src = "cheering_minions.gif";
 
img.onload = () => {
var rub = new SuperGif({
gif: img
});
……

For more details, see the following article in the link :

Article link

Interested in this column, you can focus on a wave

Guess you like

Origin www.cnblogs.com/giserhome/p/11784077.html