Floating Labels
Mappedin SDK for Android 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 Mappedin JS 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(MPIOptions.FlatLabelAllLocations())
}
More about customizing Flat Labels in the Mappedin Mappedin JS Guide