0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cesiumから地球を非表示にする

Posted at

はじめに

CesiumはWebGLを利用し、3D表現が可能なライブラリです。

Cesiumから地球を非表示にする

Cesiumはデフォルトの状態で地球儀上にBing Mapsが表示されています。
地理院地図.png
※ Bing Mapsを表示するとライセンス違反になる恐れがある為、地理院地図を表示しています。

この地球儀を非表示にします。


var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
scene.globe.show = false;

実行すると地球儀が非表示になります。
地球儀非表示.png

Boxs形状を配置してみます。


var blueBox = viewer.entities.add({
    name : 'Blue box',
    position: Cesium.Cartesian3.fromDegrees(142.358360,43.7623010, 0),
    box : {
        dimensions : new Cesium.Cartesian3(10.0, 10.0, 10.0),
	material : Cesium.Color.BLUE
    }
});
viewer.zoomTo(blueBox);

実行するとBoxs形状が表示されます。
Boxs.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?