顯示源代碼
                3D行政區(qū)域
                 開發(fā)文檔
                                                                    <!DOCTYPE html>
                
                <html>
                <head>
                    <meta charset='UTF-8'/>
                    <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
                    <link  rel='stylesheet'/>
                    <script src='http://ua.bigemap.com:30081/bmsdk/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%;
                        }
                        .bmgl-widget-credits{display:none}
                    </style>
                    <title>part_test</title>
                </head>
                <body>
                <div id='container'></div>
                
                <script>
                        bmgl.Config.HTTP_URL = 'http://ua.bigemap.com:30081/bmsdk/';
                    var viewer = new bmgl.Viewer('container', {
                        mapId:'bigemap.dc-satellite',
                    });
                    viewer.BMWidget.screenSpaceEventHandler.removeInputAction(bmgl.ScreenSpaceEventType.LEFT_CLICK);
                    
                    var promise = bmgl.GeoJsonDataSource.load('/Public/offline/chad/510000.geojson');
                    promise.then(function(dataSource) {
                        viewer.dataSources.add(dataSource);
                        //Get the array of entities
                        var entities = dataSource.entities.values;
                        var colorHash = {};
                        for (var i = 0; i < entities.length; i++) {
                            //For each entity, create a random color based on the state name.
                            //Some states have multiple entities, so we store the color in a
                            //hash so that we use the same color for the entire state.
                            var entity = entities[i];
                            var name = entity.name;
                            var color = colorHash[name];
                            if (!color) {
                                color = bmgl.Color.fromRandom({
                                    alpha:1,
                                });
                                colorHash[name] = color;
                            }
                            //Set the polygon material to our random color.
                            entity.polygon.material = color;
                            //Remove the outlines.
                            entity.polygon.outline = false;
                            //Extrude the polygon based on the state's population.  Each entity
                            //stores the properties for the GeoJSON feature it was created from
                            //Since the population is a huge number, we divide by 50.
                            entity.polygon.extrudedHeight = Math.floor(Math.random()*60000+10000);
                        }
                        viewer.camera.flyTo({
                            destination: bmgl.Cartesian3.fromDegrees(98.435314, 19.960521, 1500000.0), // 設(shè)置位置
                            orientation: {
                              heading: bmgl.Math.toRadians(20.0), // 方向
                              pitch: bmgl.Math.toRadians(-50.0),// 傾斜角度
                              roll: bmgl.Math.toRadians(-20.0)
                            }
                        });
                    }).otherwise(function(error){
                        //Display any errrors encountered while loading.
                        window.alert(error);
                    });
                </script>
                </body>
                </html>                                                                                                                                                                                                                                                                                                                                                
                主站蜘蛛池模板: 精品久久伦理中文字幕| 18禁裸男晨勃露j毛免费观看| 极品丰满美女国模冰莲大尺度| 内地女星风流艳史肉之| 黑人精品videos亚洲人| 在线日韩av永久免费观看| 久久99国产精品久久99| 欧美亚洲国产激情一区二区 | 欧美日韩国产一区二区三区在线观看| 四虎影视884a精品国产四虎| 四虎成年永久免费网站| 在线观看中文字幕国产| 两性午夜欧美高清做性| 日韩在线中文字幕| 亚洲日本va在线观看| 男性gay黄免费网站| 国产aⅴ一区二区三区| 日本a免费观看| 国产麻豆交换夫妇| zztt668.su黑料不打烊| 无码精品人妻一区二区三区影院| 亚洲av日韩综合一区久热| 欧美视频www| 免费一级毛片在线播放不收费 | 久久精品国产亚洲一区二区 | 国产欧美精品区一区二区三区| 99久久精品国产一区二区蜜芽| 成人a一级试看片| 久久精品a亚洲国产v高清不卡| 欧美又黄又嫩大片a级| 亚洲网站免费观看| 精品久久一区二区| 国产99视频在线| 韩国理论福利片午夜| 国产精品91av| 五月天在线婷婷| 亚洲丝袜第一页| 天堂√在线中文最新版| 一级毛片成人午夜| 日日噜噜噜夜夜爽爽狠狠视频| 久久综合精品国产二区无码|