Experimental
Experimental
Returns the current boolean value whether the map should be set when the user pans over it.
if(mapView.DynamicFocus && mapView.DynamicFocus.setMapOnUserInteraction) {
mapView.DynamicFocus.setMapOnUserInteraction = false;
}
Experimental
Controls whether the map should be set when the user pans over to it.
if (mapView.DynamicFocus) {
mapView.DynamicFocus.setMapOnUserInteraction = false;
}
Experimental
Force Dynamic Focus to evaluate and set the current map based on camera position.
// Animate the camera to focus on a building
await mapView.Camera.focusOn({
polygons: venue.locations.find(l => l.name === 'Building')?.polygons,
});
// Force Dynamic Focus update
mapView.DynamicFocus?.update();
API to dynamically set the map focus as you pan over map groups. Dynamic Focus can be enabled when initializing the MapView with base map set in TMapViewOptions
Example