tuyen-vuduc / mapbox-maui

Mapbox library for MAUI
Other
35 stars 6 forks source link

Detect camera viewport change #21

Closed DincaAndrei2410 closed 3 weeks ago

DincaAndrei2410 commented 2 months ago

Expose an event that triggers when camera is moved to another location. The event could return a Bounds object that represents the coordinates for the box defined by camera new location

tuyen-vuduc commented 1 month ago

@DincaAndrei2410 Can you describe the use case with more details? If there is a ref to a native example, it'll be very great.

DincaAndrei2410 commented 1 month ago

For Android I've found this.

What we need to know is when user scrolls the map to another location for loading specific map feature linked to the new location

tuyen-vuduc commented 1 month ago

@DincaAndrei2410 Plz check out CameraChanged event and command to see if it fits your need.

Mapbox.Maui.11.5.0-alpha02

DincaAndrei2410 commented 1 month ago

Looks good, I've checked in on feat/sample-advanced-viewport-gestures.