소스 검색

fix 首页类方法修正

Jay 4 일 전
부모
커밋
9df5e29670
1개의 변경된 파일13개의 추가작업 그리고 9개의 파일을 삭제
  1. 13 9
      src/index.js

+ 13 - 9
src/index.js

@@ -11,9 +11,11 @@
  */
 
 import App from './view/App'
-import connectTestTool from './view/utils/connectTestTool'
-import CoordinateConversion from './view/utils/CoordinateConversion';
-import HistoryTrackControl from './view/utils/historyTrackControl';
+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';
 
 
 /*
@@ -55,8 +57,10 @@ window.CONFIG = JSON.parse(`{
 
 window.MAP_NAME = window.CONFIG.map_name;
 
+
 // // Create app
-// let app = new App({ el: 'root', id: 'swa3s5ex', url: "ws://121.42.8.157:19702" })
+// 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();
 // console.log(app)
 // app.init();
@@ -72,10 +76,10 @@ window.MAP_NAME = window.CONFIG.map_name;
 
 const BunnyBlitz = {
 	MAP: App,
+	MapUtil: MapUtil,
+	HisTrackControl: HisTrackCtrl,
+	LocationCard: LocationCard,
+	POI: POI,
 	connectTestTool: connectTestTool,
-	uploadMap: uploadMapData,
-	moveMarker: updateMarkerPos,
-	CoordinateConver: CoordinateConversion,
-	HisTrackControl: HistoryTrackControl,
 }
-export { BunnyBlitz }
+export { BunnyBlitz }