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', 'bigemap.zhongkexingtu', { center: [22.906279484467223,114.10481473882101], zoom: 16, zoomControl: true,attributionControl:false }); //实例化旅游的图 var offline=BM.tileLayer('bigemap.4axbqvwm'); offline.addTo(map) </script> </body> </html>