在线免费看污_亚洲视频在线免费观看_91精品国产电影_久久国产亚洲_久久四虎影院_亚洲欧美a_国产精品一区二区三

BIGEMPA Js API示例中心

線段漸變色源代碼展示

代碼編輯區 運行 下載 還原
<!DOCTYPE html>

<html>
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="initial-scale=1,maximum-scale=1,user-scalable=no"
    />
    <!--
        以下CSS地址請在安裝軟件了替換成本地的地址
        CSS地址請使用:
        http://localhost:9000/bigemap.js/v2.1.0/bigemap.css
        軟件下載地址 http://www.euxamster.com/reader/download/detail201802017.html
    -->
    <link
      href="http://www.euxamster.com:9000/bigemap.js/v2.1.0/bigemap.css"
      rel="stylesheet"
    />
    <link
      href="https://cdn.bootcss.com/Buttons/2.0.0/css/buttons.min.css"
      rel="stylesheet"
    />

    <!--
        JS地址請使用:
        http://localhost:9000/bigemap.js/v2.1.0/bigemap.js
    -->
    <script src="http://www.euxamster.com:9000/bigemap.js/v2.1.0/bigemap.js"></script>
    <script src="http://www.euxamster.com/Public/offline/js/line_canvas_bigemap.js"></script>
    <script src="http://www.euxamster.com/Public/offline/js/linecolor_coords.js"></script>
    <style>
      body {
        margin: 0;
        padding: 0;
      }

      #map {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100%;
      }
      .tool {
        position: absolute;
        z-index: 10;
        right: 10px;
        top: 40px;
      }
    </style>
    <title>Google Map Streets</title>
  </head>

  <body>
    <div id="map"></div>
    <p class="tool">
      <button
        id="satellite"
        onclick="showF()"
        class="button button-tiny button-rounded button-primary"
        href="javascript:void (0);"
      >
        線段顯示
      </button>
      <button
        id="street"
        onclick="hideF()"
        class="button button-tiny button-rounded button-primary"
        href="javascript:void (0);"
      >
        線段隱藏
      </button>
      <button
        id="street"
        onclick="setLatLng()"
        class="button button-tiny button-rounded button-primary"
        href="javascript:void (0);"
      >
        重新設置經緯度
      </button>
    </p>
    <script>
      // 軟件配置信息地址,軟件安裝完成之后使用本地地址,如:http://localhost:9000
      BM.Config.HTTP_URL = "http://www.euxamster.com:9000";
      // 在ID為map的元素中實例化一個地圖,并設置地圖的ID號為 bigemap.baidu-map,ID號程序自動生成,無需手動配置,并設置地圖的投影為百度地圖 ,中心點,默認的級別和顯示級別控件
      var map = BM.map("map", "bigemap.zhongkexingtu", {
        center: [0, 0],
        zoom: 2,
        zoomControl: true,
        attributionControl: false,
      });

      // coords示例坐標
      //線段的坐標點
      var latlngs = [
        [30, 102.68, 150],
        [33, 108.43, 200],
        [37.04, 118.2, 300],
      ];

      var hotlineLayer = BM.hotline(coords, {
        //根據自身數據設置對應的min max
        min: 150,
        max: 300,
        //根據min/max自定計算對應的比例  相對于的顏色
        palette: {
          0.0: "white",
          0.5: "green",
          0.8: "yellow",
          1.0: "red",
        },
        weight: 5, //寬度
        outlineColor: "pink", //外框的顏色】
        outlineWidth: 3, //外框寬度
      }).addTo(map);

      //事件文檔
      //   http://www.euxamster.com/offlinemaps/api/#interactive-layer-event
      //點擊事件
      hotlineLayer.on("click", (e) => {
        // e.target 線段的實例對象
      });

      //鼠標移動事件
      hotlineLayer.on("mousemove", (e) => {
        // e.target 線段的實例對象
      });

      //線段顯示
      function showF() {
        hotlineLayer.addTo(map);
      }

      //線段刪除
      function hideF() {
        hotlineLayer.remove();
      }

      function setLatLng() {
        //設置樣式
        hotlineLayer.setStyle({
          palette: {
            0.0: "white",
            0.5: "green",
            0.8: "yellow",
            1.0: "blue",
          },
          weight: 5, //寬度
          outlineColor: "red", //外框的顏色】
          outlineWidth: 1, //外框寬度
        });

            //設置經緯度
        hotlineLayer.setLatLngs(latlngs);
      }

      map.fitBounds(hotlineLayer.getBounds());
    </script>
  </body>
</html>
            
主站蜘蛛池模板: 久久久久久久久久毛片精品美女 | 男女曰逼视频 | 热re99久久精品国产99热 | 国产小视频免费在线观看 | 久久久久久综合对白国产 | 亚洲va韩国va欧美va | 欧美日本在线播放 | 亚洲欧美日韩不卡 | 三级网站免费看 | 国产第一页福利 | 国产精品人伦久久 | 免费一级毛片一级毛片aa | 国产区cosplay在线观看 | 国产成人99久久亚洲综合精品 | 妹天堂动漫| 九九久久精品这里久久网 | 在线日本色 | 天天干人人 | 久草资源视频 | 99久久国产综合色 | 日韩一区二区视频 | 99精品在免费线视频 | 亚洲日韩视频免费观看 | 日本aaaa视频 | 激情小说激情图片 | 欧美操片在线观看 | 免费日本黄色片 | 久久九九热视频 | 日日摸夜夜爽夜夜爽出水 | 欧美做暖小视频xo免费 | 色视频在线观看免费 | 日本高清不卡在线 | xxxx色| 天天骑天天干 | 99热这里只有精品国产99 | 人人看人人模 | 国产精品成人久久久久久久 | 久久久久国产午夜 | 99re这里只有精品国产精品 | 欧洲乱码专区一区二区三区四区 | 在线观看亚洲免费视频 |