Show User's Location aka. Blue Dot
Implementing a Position Provider
class PositionProvider : MPPositionProviderprivate val mUpdateListeners = ArrayList<OnPositionUpdateListener>()
private var mLatestPosition: MPPositionResultInterface? = null
private var mPositionProducer : Timer? = null
private val mWhiteHouseBounds = MPLatLngBounds(MPLatLng(38.897545509875954, -77.03687635385639), MPLatLng(38.89779861672662, -77.03623597646553))override fun addOnPositionUpdateListener(updateListener: OnPositionUpdateListener) {
mUpdateListeners.add(updateListener)
}
override fun removeOnPositionUpdateListener(updateListener: OnPositionUpdateListener) {
mUpdateListeners.remove(updateListener)
}Integrating with MapsIndoors SDK
Styling the Blue Dot
Last updated
Was this helpful?