Labels

Floating Labels

Mappedin iOS SDK automatically labels all locations when the map is initialized with Floating Labels. If you want to customize how the labels are displayed, the automatic labeling can be turned off in MPIOptions.ShowVenue.

showVenueOptions: MPIOptions.ShowVenue(
labelAllLocationsOnInit: false
)

You can customize properties such as the text and marker colors with a FloatingLabelAppearance -object.

More about customizing Floating Labels in the Mappedin Web SDK Guide

Flat Labels

To use Flat Labels, disable the labeling of all locations on initialization and call mapView.labelAllLocations in the onFirstMapLoaded -callback.

func onFirstMapLoaded() {
mapView?.labelAllLocations(options: MPIOptions.FlatLabelAllLocations())
}

More about customizing Flat Labels in the Mappedin Web SDK Guide

iOS Labels

Was this page helpful?