Loading src/components/infoWindow.vue +3 −6 Original line number Diff line number Diff line /* vim: set softtabstop=2 shiftwidth=2 expandtab : */ <template> <div> <div ref="flyaway"> <!-- so named because it will fly away to another component --> <div ref="infoWindow"> <slot> </slot> </div> </div> Loading Loading @@ -51,12 +48,12 @@ export default mapElementFactory({ }, mounted() { const el = this.$refs.flyaway const el = this.$refs.infoWindow el.parentNode.removeChild(el) }, beforeCreate(options) { options.content = this.$refs.flyaway options.content = this.$refs.infoWindow if (this.$markerPromise) { delete options.position Loading src/main.js +1 −1 Original line number Diff line number Diff line import lazy from './utils/lazyValue' import { loadGMapApi } from './manager' import { loadGMapApi } from './load-google-maps' import { createApp } from 'vue' import Marker from './components/marker' import Polyline from './components/polyline' Loading Loading
src/components/infoWindow.vue +3 −6 Original line number Diff line number Diff line /* vim: set softtabstop=2 shiftwidth=2 expandtab : */ <template> <div> <div ref="flyaway"> <!-- so named because it will fly away to another component --> <div ref="infoWindow"> <slot> </slot> </div> </div> Loading Loading @@ -51,12 +48,12 @@ export default mapElementFactory({ }, mounted() { const el = this.$refs.flyaway const el = this.$refs.infoWindow el.parentNode.removeChild(el) }, beforeCreate(options) { options.content = this.$refs.flyaway options.content = this.$refs.infoWindow if (this.$markerPromise) { delete options.position Loading
src/main.js +1 −1 Original line number Diff line number Diff line import lazy from './utils/lazyValue' import { loadGMapApi } from './manager' import { loadGMapApi } from './load-google-maps' import { createApp } from 'vue' import Marker from './components/marker' import Polyline from './components/polyline' Loading