Map Control
Constructors
Link copied to clipboard
Creates a MapControl instance without having a Google Map object available Use setGoogleMap to set the GoogleMap object and its parent view
Types
Link copied to clipboard
Floor tiles supported sizes (in pixels) Note that tile sizes depend on the Solution set (it is not mandatory for all MapsIndoors solutions to support all tile sizes)
Link copied to clipboard
Functions
Link copied to clipboard
Adds a custom display rule
fun addDisplayRule(locationDisplayRule: LocationDisplayRule, onResultReadyListener: OnResultReadyListener)
Content copied to clipboard
Adds a new display rule
Link copied to clipboard
Adds a new set of custom display rules
fun addDisplayRules(displayRuleList: List<LocationDisplayRule>, onResultReadyListener: OnResultReadyListener)
Content copied to clipboard
Add rules needed to display locations correctly.
Link copied to clipboard
fun addOnCameraIdleListener(onCameraIdleListener: GoogleMap.OnCameraIdleListener)
Content copied to clipboard
Adds a callback that's invoked when camera movement has ended.
Link copied to clipboard
fun addOnCameraMoveCanceledListener(onCameraMoveCanceledListener: GoogleMap.OnCameraMoveCanceledListener)
Content copied to clipboard
Adds a callback that's invoked when camera motion is stopped or interrupted by a new type of animation.
Link copied to clipboard
fun addOnCameraMoveListener(onCameraMoveListener: GoogleMap.OnCameraMoveListener)
Content copied to clipboard
Adds a callback that's invoked repeatedly while the camera is in motion.
Link copied to clipboard
fun addOnCameraMoveStartedListener(onCameraMoveStartedListener: GoogleMap.OnCameraMoveStartedListener)
Content copied to clipboard
Adds a callback that's invoked when the camera starts moving or the reason for camera motion has changed.
Link copied to clipboard
Binds MapControl to the given GoogleMap and view objects
Link copied to clipboard
Call this to deselect a location previously selected with selectLocation
Link copied to clipboard
Disables live data on a specific domainType
Link copied to clipboard
@AnyThread
Content copied to clipboard
@AnyThread
Content copied to clipboard
@AnyThread
Content copied to clipboard
@AnyThread
Content copied to clipboard
@AnyThread
Content copied to clipboard
@AnyThread
Content copied to clipboard
@AnyThread
Content copied to clipboard
@AnyThread
Content copied to clipboard
Use this method to display temporary locations, not points of interests location.
Link copied to clipboard
Enables/disables POI area highlighting Enabled by default
Link copied to clipboard
Enables or disables the FloorSelectorInterface, i.e.
Link copied to clipboard
Enables live data on a specific domain and uses MapsIndoors standard graphic implementation
fun enableLiveData(domainType: String, onLiveLocationUpdateListener: OnLiveLocationUpdateListener)
Content copied to clipboard
Enables live data on a specific domain
Link copied to clipboard
Get the selected area's fill color
Link copied to clipboard
Get the selected area's stroke color
Link copied to clipboard
Get the selected area's stroke width
Link copied to clipboard
Get the zoom level a selected area will start showing
Link copied to clipboard
Returns the current visible Building (the one having the viewport's center/target within its bounding box or closest to any of its contour)
Link copied to clipboard
Link copied to clipboard
Returns the current selected floor index
Link copied to clipboard
Get the current user position (blue dot) object
Link copied to clipboard
Gets the default LocationDisplayRule
Link copied to clipboard
@Nullable
@AnyThread
Content copied to clipboard
Gets the LocationDisplayRule currently being used by the given MPLocation
Gets the LocationDisplayRule with the given type (name)
Link copied to clipboard
Gets the full list of LocationDisplayRule, if available
Link copied to clipboard
@Nullable
@AnyThread
Content copied to clipboard
Gets the LocationDisplayRules currently being used by the given MPLocations
Link copied to clipboard
Get the floor selector control object.
Link copied to clipboard
Get a MPLocation by marker reference.
Link copied to clipboard
Gets the current map style of MapsIndoors tiles
Link copied to clipboard
Gets a list of available map styles
Link copied to clipboard
Gets the Map View bottom padding
Link copied to clipboard
Gets the Map View right padding
Link copied to clipboard
Gets the Map View left padding
Link copied to clipboard
Gets the Map View top padding
Link copied to clipboard
Get the position indicator (user location icon)
Link copied to clipboard
Get the current user position (blue dot) object
Link copied to clipboard
Gets the last search result object count
Link copied to clipboard
Get the search results from the last call to any of the displaySearchResults() methods
Link copied to clipboard
@UiThread
Content copied to clipboard
Initializes MapControl
Link copied to clipboard
Returns the current state of the current FloorSelectorInterface.
Link copied to clipboard
Checks if location area highlight is enabled
Link copied to clipboard
Checks whether position tracking is enabled or not
Link copied to clipboard
Returns the current visibility state of the user location icon (blue dot)
Link copied to clipboard
Call this method from the parent Activity/Fragment's corresponding method.
Link copied to clipboard
Call this method from the parent Activity/Fragment's corresponding method.
Link copied to clipboard
Call this method from the parent Activity/Fragment's corresponding method.
Link copied to clipboard
Forces a map update
Link copied to clipboard
fun removeOnCameraIdleListener(onCameraIdleListener: GoogleMap.OnCameraIdleListener)
Content copied to clipboard
Removes the callback added with addOnCameraIdleListener
Link copied to clipboard
fun removeOnCameraMoveCanceledListener(onCameraMoveCanceledListener: GoogleMap.OnCameraMoveCanceledListener)
Content copied to clipboard
Removes the callback added with addOnCameraMoveCanceledListener
Link copied to clipboard
fun removeOnCameraMoveListener(onCameraMoveListener: GoogleMap.OnCameraMoveListener)
Content copied to clipboard
Removes the callback added with addOnCameraMoveListener
Link copied to clipboard
fun removeOnCameraMoveStartedListener(onCameraMoveStartedListener: GoogleMap.OnCameraMoveStartedListener)
Content copied to clipboard
Removes the callback added with addOnCameraMoveStartedListener
Link copied to clipboard
Sets the display rule of the given MPLocation to its default one (set from the CMS)
Sets the display rule of the given MPLocation set to their default one (set from the CMS)
Link copied to clipboard
Sets the current visible floor to the given z-index one For floor names/z-index pairs check the value returned by getFloorHashMap
Link copied to clipboard
@UiThread
Content copied to clipboard
@UiThread
Content copied to clipboard
@UiThread
Content copied to clipboard
Selects the given MPLocation.
Link copied to clipboard
fun setBuildingOutlineShowingZoomLevel(buildingOutlineShowingZoomLevel: Int)
Content copied to clipboard
Sets the zoom level from which the building outline should be rendered
Link copied to clipboard
Sets the building outline color
Link copied to clipboard
Sets a caching scheme for tiles Options:
- TILE_CACHESCHEME_NONE: No caching. this is the default setting
- TILE_CACHESCHEME_TEMPORARY: Keeps tiles in a memory cache. Keeps tiles while the app is running
- TILE_CACHESCHEME_PERSISTENT: Write tiles to files and keeps them while the app is installed
- TILE_CACHESCHEME_OFFLINE: Extract tiles from a zip package at startup
Link copied to clipboard
Sets the selected area's fill color
Link copied to clipboard
Sets the selected area's stroke color
Link copied to clipboard
@UiThread
Content copied to clipboard
Sets the selected area's stroke width
Link copied to clipboard
Sets the zoom level a selected area will start showing
Link copied to clipboard
Manually sets the user ("blue dot") position
Link copied to clipboard
Sets the default LocationDisplayRuleThe default display settings used by MPMapControl to display a location.
Link copied to clipboard
@AnyThread
Content copied to clipboard
Sets a LocationDisplayRule on a single MPLocationThis display rule takes precedence over more general displayrules like the type-display-rule
@AnyThread
Content copied to clipboard
Sets a LocationDisplayRule on given MPLocation set This display rule takes precedence over more general displayrules like the type-display-rule
@AnyThread
Content copied to clipboard
Sets a LocationDisplayRule on the given MPLocationThis display rule takes precedence over more general display rules like the type-display-rule
@AnyThread
Content copied to clipboard
Sets a LocationDisplayRule on the given MPLocation set This display rule takes precedence over more general display rules like the type-display-rule
Link copied to clipboard
Overwrites the display rules default icon size Applies only to those display rules that don't specify the size
Link copied to clipboard
Overwrites the label's max char length on ALL display rules
Link copied to clipboard
Replaces the embedded FloorSelector with the given custom one.
Link copied to clipboard
@UiThread
Content copied to clipboard
Sets the Google Map and its parent view
Link copied to clipboard
A convenience setInfoWindowAdapter wrapper
Link copied to clipboard
fun setLocationClusterImageAdapter(locationClusterImageAdapter: MPLocationClusterImageAdapter)
Content copied to clipboard
Sets the given MPLocationClusterImageAdapter handler
Link copied to clipboard
Enables/disables marker clustering At the moment, invoking this method once MapControl.init() has been called, has no effect
Link copied to clipboard
Enables/disables marker hiding on icon overlap This method enables/disables hiding icons when colliding with others
Link copied to clipboard
open fun setMapLabelFont( typeface: Typeface, color: Int, showHalo: Boolean)
Content copied to clipboard
Changes the font of the maps marker labels
Link copied to clipboard
Changes the text size of the maps marker labels
Link copied to clipboard
Sets padding on the map
Link copied to clipboard
Sets the map style for MapsIndoors tiles
Link copied to clipboard
fun setOnCurrentBuildingChangedListener(onBuildingFoundAtCameraTargetListener: OnBuildingFoundAtCameraTargetListener)
Content copied to clipboard
Receive notifications when the current building changes The current building can be retrieved using getCurrentBuilding
Link copied to clipboard
fun setOnCurrentVenueChangedListener(@Nullable onVenueFoundAtCameraTargetListener: OnVenueFoundAtCameraTargetListener)
Content copied to clipboard
Receive notifications when the map camera target enters a Venue (its boundaries)
Link copied to clipboard
fun setOnFloorUpdateListener(onFloorUpdateListener: OnFloorUpdateListener)
Content copied to clipboard
Set up a listener object to catch floor changes made by either the user or the positioning service
Link copied to clipboard
fun setOnLocationClusterClickListener(onLocationClusterClickListener: OnLocationClusterClickListener)
Content copied to clipboard
Sets the given OnLocationClusterClickListener handler
Link copied to clipboard
fun setOnLocationSelectedListener(onLocationSelectedListener: OnLocationSelectedListener)
Content copied to clipboard
Sets a listener for when a location gets selected (programmatically or user-triggered)
Link copied to clipboard
Set the map click listener.
Link copied to clipboard
fun setOnMapLongClickListener(onMapLongClickListener: OnMapLongClickListener)
Content copied to clipboard
Sets the long map click listener.
Link copied to clipboard
fun setOnMarkerClickListener(onMarkerClickListener: GoogleMap.OnMarkerClickListener)
Content copied to clipboard
Set the marker click listener.
Link copied to clipboard
fun setOnMarkerDragListener(onMarkerDragListener: GoogleMap.OnMarkerDragListener)
Content copied to clipboard
Set the marker drag listener.
Link copied to clipboard
fun setOnMarkerInfoWindowClickListener(onInfoWindowClickListener: GoogleMap.OnInfoWindowClickListener)
Content copied to clipboard
Set the marker info window click listener.
Link copied to clipboard
fun setOnMarkerInfoWindowCloseListener(onMarkerInfoWindowCloseListener: GoogleMap.OnInfoWindowCloseListener)
Content copied to clipboard
Set the marker info window click listener.
Link copied to clipboard
fun setOnMarkerInfoWindowLongClickListener(onMarkerInfoWindowLongClickListener: GoogleMap.OnInfoWindowLongClickListener)
Content copied to clipboard
Set the marker info window long click listener.
Link copied to clipboard
Link copied to clipboard
Enable fade-in effect on MapsIndoors tiles.
Link copied to clipboard
Set the indoor floor tile-size for rendering.
Link copied to clipboard
When in tracking mode, sets the camera's tilt to the given one
Link copied to clipboard
@UiThread
Content copied to clipboard
Sets the "my location" marker's (aka blue dot) icon using the given LocationDisplayRule
Link copied to clipboard
Enables the rendering of the Building on focus's floor outline
Link copied to clipboard
Enables/disables the info window on user-selected locations The info window is shown by default when the user selects a location (by tapping on it)
Link copied to clipboard
Renders the icon set with setUserLocationIconFromDisplayRule at the last known user position on the map
Link copied to clipboard
Content copied to clipboard
Enables/disables user position tracking (camera following the blue-dot marker)
Link copied to clipboard
Unbinds MapControl from the current GoogleMap and view it's attached to
Link copied to clipboard
Updates the blue dot, whatever its status is