On December 7th, 2022 we released the Mappedin iOS SDK v5. This short migration guide explains the steps needed to migrate from version 4.
- Mappedin iOS SDK is available from CocoaPods
- See the API reference for more details
MapView
Labels
Labels have been divided into two individual objects with their own methods.
// BeforemapView.labelAllLocations()
// AftermapView.floatingLabelManager.labelAllLocations()mapView.flatLabelManager.labelAllLocations()
Removed mapView.labelPolygon()
and mapView.removeAllLabels()
. Use mapView.floatingLabelManager
or mapView.flatLabelManager
instead
// BeforemapView.labelPolygon()
// AftermapView.floatingLabelManager.add()mapView.flatLabelManager.add()
// BeforemapView.removeAllLabels()
// AftermapView.floatingLabelManager.removeAll()mapView.flatLabelManager.removeAll()
Deprecated methods mapView.drawJourney()
and mapView.clearJourney()
have been removed.
// BeforemapView.drawJourney()mapView.clearJourney()
// AftermapView.journeyManager.draw()mapView.journeyManager.clear()
Camera Controls
- Removed
mapView.cameraControlsManager
. UsemapView.cameraManager
instead - Removed
mapView.Focus()
, usemapView.CameraManager.FocusOn
instead - Renamed
MPIOptions.FocusPadding
toMPIOptions.CameraPadding
BlueDot
Removed deprecated delegate.onBlueDotUpdated
event. Use delegate.onBlueDotPositionUpdate
and delegate.onBlueDotStateChange
to determine the state and position of BlueDot instead. All MPIBlueDot
members are available in the MPIBlueDotPositionUpdate
event.
// Beforedelegate.onBlueDotUpdated(blueDot: MPIBlueDot)
// Afterdelegate.onBlueDotPositionUpdate(update: MPIBlueDotPositionUpdate)
mapView.enableBlueDot
& mapView.disableBlueDot
have been removed. use mapView.blueDotManager
instead
// BeforemapView.enableBlueDot()mapView.disableBlueDot()
// AftermapView.blueDotManager.enable()mapView.blueDotManager.disable()
Data Objects
MPINode.map
now resolves to aMPIMap
instead of stringMPIPolygon.map
now resolves to aMPIMap
instead of stringMPILocation.categories
now contains an array ofMPICategory
objects instead of strings- Removed
MPILocation.color
property.