Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Map Location Update with External Coordinates Source #12037

Closed
rohit-aq opened this issue May 31, 2018 · 7 comments
Closed

Map Location Update with External Coordinates Source #12037

rohit-aq opened this issue May 31, 2018 · 7 comments
Labels
iOS Mapbox Maps SDK for iOS

Comments

@rohit-aq
Copy link

Platform: iOS
Mapbox SDK version: 4.0.2

Steps to trigger behavior

  1. Prepare a CLLocation object with latitude, longitude and course
  2. Update mapview's location manager by the location object created

Expected behavior

Map should navigate to the updated location

Actual behavior

Map goes to updated location and comes back to its original source as if it's getting the location update form Core Location as well.

@fabian-guerra fabian-guerra added the iOS Mapbox Maps SDK for iOS label Jun 1, 2018
@fabian-guerra
Copy link
Contributor

Hi, @rohit-aq. Thank you for using Mapbox. Are you overriding the MGLMapview.locationManager? or are you using a different method to pass you CLLocation object?

@rohit-aq
Copy link
Author

rohit-aq commented Jun 1, 2018 via email

@fabian-guerra
Copy link
Contributor

Hi, @rohit-aq. MGLMapview.locationManager is not a public property you could use. You may want to take a look at this ongoing PR #12013 tho.

This is not a bug. I am going to close this ticket.

@rohit-aq
Copy link
Author

rohit-aq commented Jun 1, 2018 via email

@bsudekum
Copy link

bsudekum commented Jun 5, 2018

Hi @rohit-aq,

For the navigation sdk, we're doing a few hacks to make the location manager public. This is a necessary evil so we can simulate routes. Can you check out this guide I just put together? mapbox/mapbox-navigation-ios#1470

@rohit-aq
Copy link
Author

rohit-aq commented Jun 5, 2018

So is there a way we can provide Mapbox map coordinates from external source and still get the same effect as it shows with the default location manager. I am having hard time finding anything that moves and rotate the puck same way if the coordinates are from an external source say API and not form CLLocationManager. What is the workaround here?

@enjoybeta
Copy link

Poking around for a solution to use third part location. But according to the status of #12013 , seems it's still not implemented into stable release yet? @fabian-guerra

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

4 participants