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) -> BoolParameters
idThe unique identifier of the POI.
animatedWhether the transition should be animated. Defaults to
true.zoomThe desired zoom level. Defaults to
defaultZoom.Return Value
trueif 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) -> BoolParameters
poiThe PointOfInterest to center the map on.
animatedWhether the transition should be animated. Defaults to
true.zoomThe desired zoom level. Defaults to
defaultZoom.Return Value
trueif the map was successfully centered,falseotherwise. -
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) -> BoolParameters
poiThe
PointOfInterestto select.shouldCenterWhether to center the map on the selected POI. Defaults to
true.animatedWhether to animate the map movement to the selected POI. Defaults to
true.zoomThe desired zoom level. Defaults to
defaultZoom.Return Value
trueif the POI was successfully selected,falseotherwise. -
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) -> BoolParameters
idThe unique identifier of the POI to select.
shouldCenterWhether to center the map on the selected POI. Defaults to
true.animatedWhether to animate the map movement to the selected POI. Defaults to
true.zoomThe desired zoom level. Defaults to
defaultZoom.Return Value
trueif the POI was successfully selected,falseotherwise. Afalsereturn value might indicate that the POI with the given ID was not found, or that an error occurred during the selection process.
View on GitHub