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.kenshimo.com:9000/bigemap.js/v2.1.0/bigemap.css' rel='stylesheet'/> <script src='http://www.kenshimo.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>正攝投影</title> </head> <body> <div id='map'></div> <script> // 軟件配置信息地址,軟件安裝完成之后使用本地地址,如:http://localhost:9000 BM.Config.HTTP_URL = 'http://www.kenshimo.com:9000'; //創建地圖 var map = BM.map('map', null, { center: [24.55182456970215, 113.71858215332031], zoom: 16, zoomControl: true,attributionControl:false }); //實例化航拍的圖 var offline=BM.tileLayer('bigemap.6gnogbxz'); //實例化谷歌衛星地圖 var google_satellite=BM.tileLayer('bigemap.arcgis-satellite'); //將兩個圖層添加在地圖上面 google_satellite.addTo(map); offline.addTo(map) </script> </body> </html>