SDKs · Flutter
Step 6 — Camera & gestures
Zoom limits, panning bounds, gestures and camera events.
UbHubMap(
options: options,
height: 480,
minZoom: 10,
maxZoom: 16, // 0-16; the basemap serves tiles up to 16
cameraBounds: const UbHubBounds(
southwest: GeoPoint(latitude: 47.86, longitude: 106.80),
northeast: GeoPoint(latitude: 47.98, longitude: 107.05),
),
rotateGesturesEnabled: false, // plus scroll/zoom/tilt/doubleClick/compass toggles
onCameraMove: (c) {},
onCameraIdle: (c) => debugPrint('settled at zoom ${c.zoom}'),
onReady: (controller) {
// controller.flyTo(point, zoom: 14), zoomIn(), zoomOut(), camera
},
);minZoom/maxZoom (0–16) and cameraBounds apply live. UbHubMapController has flyTo, zoomIn, zoomOut, camera, showInfoWindow and hideInfoWindow.