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

showUserLocation not working on Nativescript-Vue #346

Open
KryptoBeard opened this issue Mar 4, 2020 · 3 comments
Open

showUserLocation not working on Nativescript-Vue #346

KryptoBeard opened this issue Mar 4, 2020 · 3 comments

Comments

@KryptoBeard
Copy link

I basically copied the sample, v4.4.1 . Everything else works fine, nothing happens though and no point is made on the map. TrackUser also isn't working, but I'm guessing that is because its not showing my location.

  <Mapbox
    row="1"
    v-if="locationFound"
    accessToken="REDACTED"
    mapStyle="mapbox://styles/mapbox/satellite-v9"
    :latitude="lat"
    :longitude="long"
    hideCompass="false"
    zoomLevel="16"
    showUserLocation="true"
    disableZoom="false"
    disableRotation="false"
    disableScroll="false"
    disableTilt="false"
    @mapReady="onMapReady($event)"
  ></Mapbox>

onMapReady function ...

onMapReady(args) {
  console.log('Map Ready')
  this.map = args.map;
  this.map.trackUser({
     mode: "FOLLOW_WITH_HEADING"
     animated: true
     });
}
@KryptoBeard KryptoBeard changed the title showUserLocation Not working on Nativescript-Vue showUserLocation not working on Nativescript-Vue Mar 4, 2020
@keithgulbro
Copy link

@KryptoBeard Please try again, it's working for me with Nativescript Vue after updating to the latest release. @Yermo has been kind enough to submit a massive update to this repo which resolves a lot of issues while offering boat loads more.

@KryptoBeard
Copy link
Author

KryptoBeard commented Apr 18, 2020

@keithgulbro @Yermo has the npm package been updated? Says 4.4.1 for me still

@Yermo
Copy link
Owner

Yermo commented Apr 18, 2020

@KryptoBeard It's still on my TODO list but I'd like to have some more people test the plugin if possible before I do that.

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

3 participants