Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach InfoWindow to Polyline #141

Open
kieranwild opened this issue Mar 12, 2018 · 0 comments
Open

Attach InfoWindow to Polyline #141

kieranwild opened this issue Mar 12, 2018 · 0 comments

Comments

@kieranwild
Copy link

kieranwild commented Mar 12, 2018

I can't seem to attached an InfoWindow to a Polyline:

<template>
  <section class="section">
      <gmap-map
        v-bind:center="center"
        v-bind:zoom="12"
        style="width: 800px; height:500px">
          <gmap-polyline 
           v-bind:path.sync="path"  
           v-bind:options="{ strokeColor:'#008000',  suppressInfoWindows: false}">
             <gmap-info-window>Test InfoWindow text ! </gmap-info-window>
           </gmap-polyline>
      </gmap-map>
  </section>
</template>
<script>
  export default {
    data () {
      return { 
        center: {lat: 55.915655, lng: -4.744502},
        path: [
          {lat: 55.9352001, lng: -4.7766924 },
          {lat: 55.9358131, lng: -4.7770143 },
          {lat: 55.9361256, lng: -4.7767353 },
          {lat: 55.9366784, lng: -4.7739458 },
          {lat: 55.9371231, lng: -4.7731304 },
          {lat: 55.9377481, lng: -4.7727227 }
          ]
          }
      }
    }  
</script>

The Info-Window is not showing up on the map or in Chrome Vue dev tools. I have tried it just as info-window . I am missing something obvious?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant