糖果智能三维开发_金沙糖果派对游戏 糖果智能三维开发_金沙糖果派对游戏

BBIN糖果派对智能MG

倾斜摄影-源代码示例 运行 重置

<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
<link href='//huazhuang01.com:9000/bigemap-gl.js/v1.1.0/Widgets/widgets.css' rel='stylesheet'/>
<script src='//huazhuang01.com:9000/bigemap-gl.js/v1.1.0/bigemap-gl.js'></script>
<style>
body {
margin: 0;
padding: 0;
}
#container {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
</style>
<title>part_test</title>
</head>
<body>
<div id='container'></div>
<script>
bmgl.Config.HTTP_URL = '//huazhuang01.com:9000';
var viewer = new bmgl.Viewer('container', {mapId: 'bigemap.amap-satellite'});
var tilesets = new bmgl.BM3DTileset({ url:'/bmgl/data/osgb_house1/tileset.json'});
tilesets.readyPromise.then(function(tileset) {
viewer.scene.primitives.add(tileset);
var default_HeadingPitchRange = new bmgl.HeadingPitchRange(0.0, -0.5, tileset.boundingSphere.radius * 2.0);
viewer.zoomTo(tileset, default_HeadingPitchRange);
var cartographic = bmgl.Cartographic.fromCartesian(tileset.boundingSphere.center);
var delta_lng=0,delta_lat=0;
var surface = bmgl.Cartesian3.fromRadians(cartographic.longitude+delta_lng, cartographic.latitude+delta_lat, 0.0);
var offset = bmgl.Cartesian3.fromRadians(cartographic.longitude+delta_lng, cartographic.latitude+delta_lat,-40);
var translation = bmgl.Cartesian3.subtract(offset, surface, new bmgl.Cartesian3());
tileset.modelMatrix = bmgl.Matrix4.fromTranslation(translation);
}).otherwise(function(error) {
console.log(error);
});
</script>
</body>
</html>
源码
龙8手机游戏久赢国际登录平台龙八国际娱乐官方网址