Center Area
This example demonstrates how to center the map camera on geographic areas such as rectangles, circles, or polygons.
Live Demo
Overview
The example highlights the following features:
- Centering on rectangular areas
- Centering on circular areas
- Centering on polygon areas
- Automatic zoom adjustment to fit the area
Key Features
- Area Types: Support for rectangles, circles, and polygons
- Auto Zoom: Camera automatically adjusts to fit the area
- Smooth Animation: Animated transitions to area
- Flexible Positioning: Works with any geographic shape
Next Steps
- Center Coordinates - Center on a single point
- Draw Shapes - Draw geographic shapes
- Center Traffic - Focus on traffic areas