顯示源代碼
                粒子 汽車運行
                 開發文檔
                            <!DOCTYPE html>
                <html lang="en">
                
                <head>
                    <meta charset="UTF-8">
                    <meta name="viewport" content="width=device-width, initial-scale=1.0">
                    <title>Document</title>
                    <link  rel='stylesheet' />
                    <script src='http://ua.bigemap.com:30081/bmsdk/bigemap-gl.js/v1.1.0/bigemap-gl.js'></script>
                    <script src='./templates/bmgl-header.js'></script>
                </head>
                <style>
                    * {
                        margin: 0;
                        padding: 0;
                    }
                
                    #container {
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        width: 100%;
                    }
                
                    #toolbar {
                        position: absolute;
                        background-color: white;
                        opacity: .8;
                    }
                </style>
                
                <body>
                    <div id="container" class="fullSize">
                        <div id="slider"></div>
                    </div>
                    <div id="loadingOverlay">
                        <h1>Loading...</h1>
                    </div>
                    <div id="toolbar"></div>
                
                </body>
                <script>
                
                    bmgl.Config.HTTP_URL = 'http://ua.bigemap.com:30081/bmsdk/';
                    var viewer = new bmgl.Viewer("container", {
                        shouldAnimate: true,
                        mapId: 'bigemap.dc-satellite',
                    });
                
                    var statusDisplay = document.createElement("div");
                    var fuelDisplay = document.createElement("div");
                    var czmlPath = "/offline_data/";
                    var vehicleEntity;
                
                    // Add a blank CzmlDataSource to hold our multi-part entity/entities.
                    var dataSource = new bmgl.CzmlDataSource();
                    viewer.dataSources.add(dataSource);
                
                    // This demo shows how a single path can be broken up into several CZML streams.
                    var partsToLoad = [
                        {
                            url: "MultipartVehicle_part1.czml",
                            range: [0, 4000],
                            requested: false,
                            loaded: false,
                        }
                    ];
                
                    function updateStatusDisplay() {
                        var msg = "";
                        partsToLoad.forEach(function (part) {
                            msg += part.url + " - ";
                            if (part.loaded) {
                                msg += "Loaded.<br/>";
                            } else if (part.requested) {
                                msg += "Loading now...<br/>";
                            } else {
                                msg += "Not needed yet.<br/>";
                            }
                        });
                        statusDisplay.innerHTML = msg;
                    }
                
                    // Helper function to mark a part as requested, and process it into the dataSource.
                    function processPart(part) {
                        part.requested = true;
                        updateStatusDisplay();
                        dataSource.process(czmlPath + part.url).then(function () {
                            part.loaded = true;
                            updateStatusDisplay();
                
                            // Follow the vehicle with the camera.
                            if (!viewer.trackedEntity) {
                                viewer.trackedEntity = vehicleEntity = dataSource.entities.getById(
                                    "Vehicle"
                                );
                            }
                        });
                    }
                
                    // Load the first part up front.
                    processPart(partsToLoad[0]);
                
                    // Load a new section before the clock naturally gets there.
                    // Note this can't predict when a user may fast-forward to it.
                    var preloadTimeInSeconds = 100;
                
                    viewer.clock.onTick.addEventListener(function (clock) {
                        // This example uses time offsets from the start to identify which parts need loading.
                        var timeOffset = bmgl.JulianDate.secondsDifference(
                            clock.currentTime,
                            clock.startTime
                        );
                
                        // Filter the list of parts to just the ones that need loading right now.
                        // Then, process each part that needs loading.
                        partsToLoad
                            .filter(function (part) {
                                return (
                                    !part.requested &&
                                    timeOffset >= part.range[0] - preloadTimeInSeconds &&
                                    timeOffset <= part.range[1]
                                );
                            })
                            .forEach(function (part) {
                                processPart(part);
                            });
                
                        if (vehicleEntity) {
                            var fuel = vehicleEntity.properties.fuel_remaining.getValue(
                                clock.currentTime
                            );
                            if (bmgl.defined(fuel)) {
                                fuelDisplay.textContent = "Fuel: " + fuel.toFixed(2) + " gal";
                            }
                        }
                    });
                
                    // Add a reset button, for convenience.
                    Sandcastle.addToolbarButton("Reset demo", function () {
                        // Put things back to the starting position.
                        viewer.clock.currentTime = viewer.clock.startTime;
                        viewer.clock.shouldAnimate = true;
                
                        partsToLoad.forEach(function (part) {
                            part.requested = false;
                            part.loaded = false;
                        });
                
                        dataSource.entities.removeAll();
                        processPart(partsToLoad[0]);
                    });
                
                    // Show the status display below the reset button.
                    statusDisplay.style.background = "rgba(42, 42, 42, 0.7)";
                    statusDisplay.style.padding = "5px 10px";
                    document.getElementById("toolbar").appendChild(statusDisplay);
                
                    // Show a multi-part custom property being read from CZML.
                    fuelDisplay.style.background = "rgba(42, 42, 42, 0.7)";
                    fuelDisplay.style.padding = "5px 10px";
                    fuelDisplay.style.marginTop = "5px";
                    document.getElementById("toolbar").appendChild(fuelDisplay); 
                </script>
                
                </html>                                                                                                                                                                                            
                主站蜘蛛池模板: 被弄出白浆喷水了视频| 久久五月精品中文字幕| 色老板在线视频一区二区| 国模吧一区二区三区精品视频| 久久久久夜夜夜精品国产| 欧美多人野外伦交| 免费在线观看毛片| 蜜臀AV在线播放| 国产特级毛片aaaaaa高潮流水| 99国产欧美久久久精品| 成人午夜性a级毛片免费| 久久精品国产亚洲av无码麻豆| 永久免费无码网站在线观看| 午夜精品久久久久久毛片| 鲤鱼乡太大了坐不下去| 国产精品爆乳奶水无码视频| tstye.cn| 把英语课代表按在地上c网站| 五月综合色婷婷在线观看| 欧美黑人巨大xxxxx| 免费看又黄又无码的网站| 蜜中蜜3在线观看视频| 国产精品99久久免费观看| 99re这里有免费视频精品| 很黄很污的视频网站| 久久久久久影视| 欧美日韩国产精品自在自线| 日本免费网站视频www区| 日本成aⅴ人片日本伦| 国产AV日韩A∨亚洲AV电影| 久久久精品久久久久三级| 国内女人喷潮完整视频| yy11111光电影院手机版| 无人在线观看视频高清视频8| 久草电影在线观看| 欧美国产日韩1区俺去了| 亚洲精品第一国产综合野| 精品xxxxxbbbb欧美中文| 四虎AV永久在线精品免费观看| 香蕉污视频在线观看| 国产激情电影综合在线看|