Navigation
navigateToLatLong
Pan & zoom the map to a WGS84 coordinate.
Parameters:
| Field | Type | Required | Description | 
|---|---|---|---|
| latitude | number | Yes | WGS84 latitude (y). | 
| longitude | number | Yes | WGS84 longitude (x). | 
| zoom | number | Yes | Target zoom level. | 
Usage:
control.navigateToLatLong(-31.9505, 115.8575, 14);
navigateToExtent
Fit the map to the provided bounding box.
Parameters:
| Field | Type | Required | Description | 
|---|---|---|---|
| minLatitude | number | Yes | Minimum (south) latitude bound. | 
| minLongitude | number | Yes | Minimum (west) longitude bound. | 
| maxLatitude | number | Yes | Maximum (north) latitude bound. | 
| maxLongitude | number | Yes | Maximum (east) longitude bound. | 
Usage:
control.navigateToExtent(-32.2, 115.7, -31.8, 116.05);
navigateToAddress
Center on a previously retrieved address search result.
Parameters:
| Field | Type | Required | Description | 
|---|---|---|---|
| item | SearchResult | Yes | Result object returned by searchAddresses(). | 
Usage:
// Search for an address then navigate to it
const [first] = await control.searchAddresses('752 North Lake Rd');
await control.navigateToAddress(first);
note
- If the result contains an intrinsic zoom level it will be applied; otherwise a default fit/zoom is chosen.
 
navigateToRegion
Center on a previously retrieved region (e.g., suburb, state, admin boundary).
Parameters:
| Field | Type | Required | Description | 
|---|---|---|---|
| item | SearchResult | Yes | Result object returned by searchRegions(). | 
Usage:
const regions = await control.searchRegions('Perth');
await control.navigateToRegion(regions[0]);
note
- Automatically fits the region's bounding geometry / extent.
 
navigateToFeature
Center on (or fit to) a previously retrieved feature (e.g., a feature result from a feature or layer search).
Parameters:
| Field | Type | Required | Description | 
|---|---|---|---|
| item | SearchResult | Yes | Result from searchFeatures() / searchLayers(). | 
Usage:
const features = await control.searchFeatures('Hospital');
await control.navigateToFeature(features[0]);
note
- If the feature has a geometry with an area the map will fit its bounds; for point features it will center & apply an appropriate zoom.