Improve code quality

This commit is contained in:
Fawad Mirzad
2021-02-13 19:09:37 +01:00
parent 62595c2421
commit 6cb357d41e
6 changed files with 52 additions and 78 deletions

View File

@@ -1,5 +1,5 @@
import lazy from './utils/lazyValue'
import { loadGmapApi } from './manager'
import { loadGMapApi } from './manager'
import { createApp } from 'vue'
import Marker from './components/marker'
import Polyline from './components/polyline'
@@ -18,7 +18,7 @@ let GmapApi = null
// export everything
export {
loadGmapApi,
loadGMapApi,
Marker,
Polyline,
Polygon,
@@ -100,7 +100,7 @@ function makeGmapApiPromiseLazy(options) {
return new Promise((resolve, reject) => {
try {
window['vueGoogleMapsInit'] = resolve
loadGmapApi(options.load, options.loadCn)
loadGMapApi(options.load, options.loadCn)
} catch (err) {
reject(err)
}