顯示源代碼
                3D行政區域
                 開發文檔
                                                                    <!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), // 設置位置
                            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>                                                                                                                                                                                                                                                                                                                                                
                主站蜘蛛池模板: 精品日韩欧美国产一区二区| 亚洲一区免费视频| 黑人巨大精品欧美一区二区免费| 最新视频-88av| 国产aⅴ激情无码久久久无码| ol丝袜高跟秘书在线观看视频| 日韩精品亚洲人成在线观看| 亚洲色图欧美另类| 老司机精品在线| 国产成人爱片免费观看视频 | 亚洲国产成人91精品| 粗大的内捧猛烈进出视频| 国产免费久久精品久久久| 一区二区三区中文字幕| 曰批全过程免费视频在线观看无码 | 大学生a级毛片免费观看| 在线播放一区二区| 亚洲小视频在线播放| 精品国产一区二区三区免费 | 深夜福利视频网站| 四虎影院免费视频| 麻豆av一区二区三区| 国产精品后入内射日本在线观看| a级毛片黄免费a级毛片| 欧美午夜电影在线观看| 国产免费观看视频| 1024手机在线播放视频| 天天影视综合网| 久草网视频在线| 欧美精品色视频| 国产丝袜制服在线| 99久久精品费精品国产一区二区 | 精品国产AV色欲果冻传媒| 国产午夜亚洲精品国产| rbd奴隷色の女教师4| 日本xxxxx在线观看| 亚洲精品短视频| 精品无人区乱码1区2区| 国产福利1000| 中国毛片在线观看| 日韩免费观看的一级毛片|