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