MapPointOfInterestManaging
public protocol MapPointOfInterestManaging : PointOfInterestManaging
-
Declaration
Swift
static var defaultZoom: Double { get set }
-
centerToPOI(id:
Default implementationanimated: zoom: ) Centers the map view to a specific Point of Interest (POI).
Default Implementation
Declaration
Swift
func centerToPOI(id: Int, animated: Bool, zoom: Double) -> Bool
Parameters
id
The unique identifier of the POI.
animated
Whether the transition should be animated. Defaults to
true
.zoom
The desired zoom level. Defaults to
defaultZoom
.Return Value
true
if the centering operation was successful, false otherwise (e.g., if the POI with the given ID does not exist). -
centerToPOI(_:
Default implementationanimated: zoom: ) Centers the map view to a specific Point of Interest (POI).
Default Implementation
Declaration
Swift
func centerToPOI(_ poi: PointOfInterest, animated: Bool, zoom: Double) -> Bool
Parameters
poi
The PointOfInterest to center the map on.
animated
Whether the transition should be animated. Defaults to
true
.zoom
The desired zoom level. Defaults to
defaultZoom
.Return Value
true
if the map was successfully centered,false
otherwise. -
selectPOI(_:
Default implementationshouldCenter: animated: zoom: ) Selects a Point of Interest (POI).
Default Implementation
Declaration
Swift
func selectPOI(_ poi: PointOfInterest, shouldCenter: Bool, animated: Bool, zoom: Double) -> Bool
Parameters
poi
The
PointOfInterest
to select.shouldCenter
Whether to center the map on the selected POI. Defaults to
true
.animated
Whether to animate the map movement to the selected POI. Defaults to
true
.zoom
The desired zoom level. Defaults to
defaultZoom
.Return Value
true
if the POI was successfully selected,false
otherwise. -
selectPOI(id:
Default implementationshouldCenter: animated: zoom: ) Selects a Point of Interest (POI) with the given ID.
Default Implementation
Declaration
Swift
func selectPOI(id: Int, shouldCenter: Bool, animated: Bool, zoom: Double) -> Bool
Parameters
id
The unique identifier of the POI to select.
shouldCenter
Whether to center the map on the selected POI. Defaults to
true
.animated
Whether to animate the map movement to the selected POI. Defaults to
true
.zoom
The desired zoom level. Defaults to
defaultZoom
.Return Value
true
if the POI was successfully selected,false
otherwise. Afalse
return value might indicate that the POI with the given ID was not found, or that an error occurred during the selection process.