Labels

Floating Labels

Mappedin Android 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.

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.flatLabelsManager.labelAllLocations() in the onFirstMapLoaded callback.

func onFirstMapLoaded() { mapView.flatLabelsManager.labelAllLocations(MPIOptions.FlatLabelAllLocations())
}

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

More about customizing Flat Labels in the Mappedin Web SDK Guide

Android v5 - Flat Labels

Was this page helpful?