phegman / vue-mapbox-gl

A Vue.js component for Mapbox GL JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

map-mouse-move is never run

JWDobken opened this issue · comments

The popup shown here works excelent! But running the exact code, the mouse-over does not work.

<mapbox 
    id="map"
    ref="map"
    access-token="pk.eyJ1Ijoiandkb2JrZW4iLCJhIjoiY2ppMDZvNDZxMDRueDNxcWJuamltZzRvdCJ9.bERPBWM1BXJmMwHI0Uv5-w"
    :map-options="mapOptions"
    @map-mouse-move="mapMouseMoved">
...
methods: {
  ...
  mapMouseMoved(map, e) {
    console.log('moved!')
  },
  ...

I included the @map-mouse-move="mapMouseMoved" in the mapbox component but the method mapMouseMoved is never run.

aaaah... the syntax is @map-mousemove="mapMouseMoved"> instead of @map-mouse-move="mapMouseMoved">

@phegman et al. this is a great repo, so much thanks!!!