MapLoadingOverlayView
Opaque map-loading overlay shown over the map while the SDK is initializing or a property is being plotted. Touch-eating (clickable + focusable) so the user cannot interact with the half-plotted venue layers underneath.
Lives in sdk-map so any consumer that uses MapstedMapView can drop the overlay into their own activity layout without taking the app-template dependency. Default message is "Optimizing Map Data"; override via setMessage / setMessageRes for app-specific copy (e.g. "Sharing your location...").
Hidden by default. Toggle visibility from your plot lifecycle:
<com.mapsted.map.views.MapLoadingOverlayView
android:id="@+id/mapLoadingOverlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />mapLoadingOverlay.visibility = View.VISIBLE // before drawProperty
mapLoadingOverlay.visibility = View.GONE // after onPlottedBuildingsCompleteProperties
Functions
Reset the message back to the default "Optimizing Map Data" string.
Drop progress info and revert to the indeterminate spinner. Caller should invoke this on hide so the next show starts clean.
Replace the overlay message text. Default is "Optimizing Map Data".
Replace the overlay message via a string resource.
Switch to determinate progress mode. Replaces the spinner with a horizontal progress bar and appends "(N%)" to the overlay message. Pass {@code current = total} when work completes; the caller is expected to hide the overlay after that.
Override the progress-bar fill color (default: download_progress_green).
Override the progress-bar fill color via a resource.