mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

moveBy returns PlatformException

Open David-Prelinger opened this issue 1 year ago • 4 comments

Code: mapboxMap.moveBy( ScreenCoordinate( x: 50, y: 70, ), MapAnimationOptions(), );

returns: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(0, Not available., null, null) #0 _AnimationManager.moveBy (package:mapbox_maps_flutter/src/pigeons/map_interfaces.dart:2326:7)

Version of package: 2.3.0 Platform: iOS

David-Prelinger avatar Nov 09 '24 17:11 David-Prelinger

Hi @David-Prelinger, this method is indeed not available on iOS platform.

evil159 avatar Nov 11 '24 10:11 evil159

Issue persists with moveby, rorateby, scaleby and pitchby methods too. Are you planning any fix ? Similar issues exists for a year ?

themumy10 avatar Nov 15 '24 16:11 themumy10

Hi @David-Prelinger, this method is indeed not available on iOS platform.

So why is this methods exist for flutter and throwing errors?

themumy10 avatar Nov 15 '24 16:11 themumy10

Would appreciate an update on this. At least add docu comments to the functions or throw comprehensible exceptions when on ios. On the latest library version the methods just fail silently.

flerovium11 avatar Jun 23 '25 19:06 flerovium11