mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
code refactor
This commit is contained in:
+4
-8
@@ -62,17 +62,13 @@ export function createAmapInstance(mapHolder, mapContainer, options) {
|
||||
jogEnable: false
|
||||
});
|
||||
|
||||
AMap.plugin([
|
||||
'AMap.ToolBar'
|
||||
], function() {
|
||||
mapHolder.amapToolbar = new AMap.ToolBar({
|
||||
position: 'LT'
|
||||
});
|
||||
|
||||
amapInstance.addControl(mapHolder.amapToolbar);
|
||||
const amapToolbar = new AMap.ToolBar({
|
||||
position: 'LT'
|
||||
});
|
||||
amapInstance.addControl(amapToolbar);
|
||||
|
||||
mapHolder.amapInstance = amapInstance;
|
||||
mapHolder.amapToolbar = amapToolbar;
|
||||
mapHolder.inited = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user