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

Unable to use Camera without followUserLocation #41

Closed
alexiri opened this issue May 12, 2019 · 3 comments
Closed

Unable to use Camera without followUserLocation #41

alexiri opened this issue May 12, 2019 · 3 comments

Comments

@alexiri
Copy link
Contributor

alexiri commented May 12, 2019

I'd like to set the bounds of a map with the Camera component, but the Camera component doesn't seem to work unless you define followUserLocation like this:

<MapboxGL.Camera
  followUserLocation
...

Setting followUserLocation={false} stops the map from showing any tiles on Android, although things in SymbolLayer still seem to show up. Curiously, followUserLocation={true} also has the same behavior.

@mfazekas
Copy link
Contributor

@alexiri can you clarify your issue? A concrete example would be the best.

The FitBounds example doesn't use followUserLocation and it works:

https://github.com/react-native-mapbox/maps/blob/18fc03c73fb208612e2a6713fdefa489cb57163c/example/src/examples/FitBounds.js#L57-L61

@kristfal
Copy link
Member

kristfal commented Jun 6, 2019

Closing as issue is stale.

@kristfal kristfal closed this as completed Jun 6, 2019
@martinezguillaume
Copy link

martinezguillaume commented Jun 18, 2019

Same for the prop heading, it only works if I specify the prop followUserLocation to true

EDIT: same for pitch prop

I can modify these values only with the camera._setCamera function

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

4 participants