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.bigemap.com:9000/bigemap.js/v2.1.0/bigemap.css' rel='stylesheet'/> <script src='http://www.bigemap.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.bigemap.com:9000'; //创建地图 var map = BM.map('map', null, { center: [23.039393450126127,113.48061370849608], zoom: 17, zoomControl: true,attributionControl:false }); //实例化航拍的图 var offline=BM.tileLayer('bigemap.773nfa3w'); //实例化谷歌卫星地图 var google_satellite=BM.tileLayer('bigemap.zhongkexingtu'); //将两个图层添加在地图上面 google_satellite.addTo(map); offline.addTo(map) </script> </body> </html>