Commit 01eee584 authored by Fawad Mirzad's avatar Fawad Mirzad
Browse files

Improve code

parent 402a03b8
Loading
Loading
Loading
Loading
+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>
@@ -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
+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'