mapbox / mapbox-gl-native-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
217 stars 118 forks source link

flutter mapbox_gl : there is no zoom event #708

Open p3im4n opened 3 years ago

p3im4n commented 3 years ago

I am developing an asset tracking app in flutter with mapbox_gl I set zoom level in animateCamera function:

controller.animateCamera(CameraUpdate.newCameraPosition(CameraPosition( target: LatLng(carpos.latitude, carpos.longitude), zoom: zoom)));}

when the user changes zoom level with pinch gesture then I need to save zoom level in "zoom" variable to apply it in animateCamera function. but I didn't find any event which handles zooms events! (zoomstart,zoomend,zoomin,zoomout ,..)

Anteino commented 2 years ago

I am having the same issue. Any update on this?

p3im4n commented 2 years ago

I am having the same issue. Any update on this?

there was a trick !! I will answer u as soosm as possible...

Anteino commented 2 years ago

If you could I would highly appreciate it :)

delajose90 commented 2 years ago

Hi @p3im4n, did you already solve this? I'm also developing a tracking app and I need to handle the zoom events.