Camera flyTo, *To methods are gone after fresh install.
See original GitHub issueI’m on RN 0.59.x
I just installed v 7.0.0 of this library.
Last week camera.flyTo(coordinates)
would do what it should.
Now I just get camera.flyTo
is not a function and undefined .
I changed nothing on my end and just reinstalled this library.
I looked into the library code… ios/RCTMGL/RCTMGLCamera.h
has no reference at all to any kind of flyTo method. In fact, MANY of the camera methods defined in the ios API are just… not there.
What am I missing here? What has changed?
As a side note, it was working on Android last week, now it is a black screen.
This is really worrying as I’m about to launch an app that heavily relies on this library.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Camera flyTo, *To methods are gone after fresh install. #271
I'm on RN 0.59.x I just installed v 7.0.0 of this library. Last week camera.flyTo(coordinates) would do what it should.
Read more >Camera issues after fresh install - Microsoft Community
I've been having problems using my camera after i reset my computer and reinstalled ... by uninstalling all camera related drivers and installing...
Read more >API Reference | Mapbox GL JS
The Map object is the map on your page. It lets you access methods and properties for interacting with the map's style and...
Read more >Viewer - Cesium Documentation
Flies the camera to the provided entity, entities, or data source. If the data source is still in the process of loading or...
Read more >User Manual - DJI Mini 3 Pro
Fly to their mobile device when using DJI RC-N1 remote controller. The Android version of DJI Fly is compatible with Android v6.0 and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok. The solution was to clean the metro haste map and cache.
I manually deleted everything related to metro in
$TMPDIR
and then did
npm cache clean --force
I guess metro was remembering the old version of mapboxgl regardless of how much upgrades and downgrades and uninstalls and installs i did.
@mfazekas
According to the package.json everything is up to date, but camera.flyTo does not work on either android or ios.
I can see it defined in
./javascript/components/Camera.js
flyTo(coordinates, animationDuration = 2000) ...
and my camera reference, when logged, shows an instance of Camera.
But none of those methods are available.