It’s possible to set constraints on the view, so that users remain within certain boundaries while they’re navigating the map. To constrain the user navigation on the map, you can use these constraints:

If you use both a scale constraint and a bounds constraint, the two constraints may conflict. For example, you set the 'maxScale' constraint to a country level scale, and you also set the bounds constraint to the bounds of a city. In such a case, MapNavigator respects the bounds constraint, but not the maxScale constraint. To prevent such inconsistencies, use either the bounds constraint or the scale constraint to restrict the zooming behavior of the map.

These constraints apply only when you are manipulating the map using MapNavigatorMapNavigatorMapNavigator. They don’t apply when you are manipulating the camera directly using Map::setCameraMap::setCameraMap::setCamera. When you are manipulating the camera directly, it’s the responsibility of the camera manipulation code to implement camera constraints.