From fb7749a67eb3c0eeced7ae1c8c52975984e1fb6c Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Sun, 31 Dec 2017 10:54:11 +0800 Subject: [PATCH] fix bug --- drawMapGUI.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drawMapGUI.html b/drawMapGUI.html index 78373784..5505e776 100644 --- a/drawMapGUI.html +++ b/drawMapGUI.html @@ -438,8 +438,8 @@ editor.prototype.init = function(){ var p1 = editor.loadjs(mapsjsUrl).then(function(){ // 加载maps.js var maps_ = new maps(); //实例化maps - maps.init(); - return maps + maps_.init(); + return maps_ }); var p2 = editor.loadjs(iconsjsUrl) // 加载icons.js .then(function(){ // 实例化并获取icons