BIGEMPA Js API示例中心
<!DOCTYPE html> <html> <head> <meta charset='UTF-8' /> <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/> <link href='http://www.euxamster.com:9000/bigemap.js/v2.1.0/bigemap.css' rel='stylesheet'/> <script src='http://www.euxamster.com:9000/bigemap.js/v2.1.0/bigemap.js'></script> <style> body { margin: 0; padding: 0; } #map { position: absolute; top: 0; bottom: 0; width: 100%; } </style> <title>航拍數(shù)據(jù)</title> </head> <body> <div id='map'></div> <script> // 軟件配置信息地址,軟件安裝完成之后使用本地地址,如:http://localhost:9000 BM.Config.HTTP_URL = 'http://www.euxamster.com:9000'; //創(chuàng)建地圖 var map = BM.map('map', null, { center: [23.039393450126127,113.48061370849608], zoom: 17, zoomControl: true,attributionControl:false }); //實(shí)例化航拍的圖 var offline=BM.tileLayer('bigemap.773nfa3w'); //實(shí)例化谷歌衛(wèi)星地圖 var google_satellite=BM.tileLayer('bigemap.zhongkexingtu'); //將兩個(gè)圖層添加在地圖上面 google_satellite.addTo(map); offline.addTo(map) </script> </body> </html>