map-ir/mapir-react-native-sdk

All the mapbox methods not working.

c0mm4nDer opened this issue · 8 comments

Hi.
This issue are really disappointing!
All the methods like 'flyTo', 'moveTo', 'zoomTo' and so on are undefined!
Please for fix this issue, upgrade your "@mapbox/react-native-mapbox-gl" to version 6.1.4 or higher, as soon as you can.

hamid commented

same problems.
Please fix it. I need flyTo method.

Our component was upgraded to ver2.0.5 and "@mapbox/react-native-mapbox-gl" is 7.0.0. Please upgrade sdk!

@ReyhaneMasumi I think you are super busy and you haven't enough time for check this issue.

PLEASE install mapir-mapbox with:
npm install mapir-mapbox
then check MapView.js file with your repo.

plz check with your master branch.

Fortunately there is no difference!
https://github.com/map-ir/mapir-mapbox/blob/ver2.0.0/javascript/components/MapView.js

Can you find flyTo method in there?!

As you can see as a warning message, flyTo is deprecated in <Mapir/> component! So you can use <Mapir.Camera/> component! https://github.com/map-ir/mapir-mapbox/blob/master/docs/Camera.md

As you can see as a warning message, flyTo is deprecated in <Mapir/> component! So you can use <Mapir.Camera/> component! https://github.com/map-ir/mapir-mapbox/blob/master/docs/Camera.md

You're right, but ref property has some problem. So I Add custom ref property to mapir-react-native-sdk/components/Camera.js.

Anyway <Mapir.Camera/> component worked @ReyhaneMasumi thanks.