Skip to content

Commit

Permalink
Dreamview: double check BMap is init with content
Browse files Browse the repository at this point in the history
  • Loading branch information
unacao authored and xiaoxq committed Nov 8, 2019
1 parent f5d0779 commit 43e3cc2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion modules/dreamview/frontend/dist/3.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/dreamview/frontend/dist/3.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions modules/dreamview/frontend/dist/app.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/dreamview/frontend/dist/app.bundle.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class BaiduMapAdapter {
}

isInitialized() {
return this.map !== null;
return this.map !== null && Object.keys(this.map).length > 0;
}

loadMap(initPoint, divElementName) {
Expand Down

0 comments on commit 43e3cc2

Please sign in to comment.