|
@@ -15,7 +15,7 @@ import LocationCard from './view/common/LocationCard';
|
|
|
import POI from './view/common/POI';
|
|
|
import HisTrackCtrl from './view/utils/historyTrackControl';
|
|
|
import MapUtil from './view/utils/MapUtil';
|
|
|
-import connectTestTool from './view/utils/connectTestTool'
|
|
|
+import connectTestTool from './view/utils/connectTestTool';
|
|
|
|
|
|
|
|
|
/*
|
|
@@ -30,7 +30,7 @@ window.UNUSABLE_ICONS = new Set();
|
|
|
// .then(configTxt => {
|
|
|
// console.log(configTxt)
|
|
|
// window.CONFIG = JSON.parse(configTxt);
|
|
|
-// window.EDITOR_NAME = window.CONFIG.editor_name;
|
|
|
+// window.MAP_NAME = window.CONFIG.map_name;
|
|
|
|
|
|
// // Create app
|
|
|
// new App();
|
|
@@ -41,7 +41,7 @@ window.UNUSABLE_ICONS = new Set();
|
|
|
// });
|
|
|
|
|
|
window.CONFIG = JSON.parse(`{
|
|
|
- "editor_name": "飞兔地图",
|
|
|
+ "map_name": "BunnyBlitzMap",
|
|
|
"hash": "GIT_HASH",
|
|
|
"data_min_zoom": 18,
|
|
|
"map_initial_zoom": 18,
|
|
@@ -55,10 +55,10 @@ window.CONFIG = JSON.parse(`{
|
|
|
"always_authenticated": false
|
|
|
}`);
|
|
|
|
|
|
-window.EDITOR_NAME = window.CONFIG.editor_name;
|
|
|
+window.MAP_NAME = window.CONFIG.map_name;
|
|
|
|
|
|
|
|
|
-// Create app
|
|
|
+// // Create app
|
|
|
// let app = new App({ el: 'root', id: 'swa3s5ex', url:"ws://121.42.8.157:19702", origin: [39.62413679, 118.16254283] })
|
|
|
|
|
|
// // new App({ el: 'root' }).init();
|
|
@@ -76,10 +76,10 @@ window.EDITOR_NAME = window.CONFIG.editor_name;
|
|
|
|
|
|
const BunnyBlitz = {
|
|
|
MAP: App,
|
|
|
- connectTestTool: connectTestTool,
|
|
|
MapUtil: MapUtil,
|
|
|
HisTrackControl: HisTrackCtrl,
|
|
|
LocationCard: LocationCard,
|
|
|
POI: POI,
|
|
|
+ connectTestTool: connectTestTool,
|
|
|
}
|
|
|
export { BunnyBlitz }
|