Compass
            open class CompassViewPlugin(viewImplProvider: (Context) -> CompassViewImpl, fadeAnimator: ValueAnimator, mainHandler: Handler) : CompassSettingsBase, CompassPlugin
Content copied to clipboard
Concrete implementation of CompassPlugin.
Constructors
CompassViewPlugin
                          
                    Link copied to clipboard
                        fun CompassViewPlugin(viewImplProvider: (Context) -> CompassViewImpl = { CompassViewImpl(it) }, fadeAnimator: ValueAnimator = ValueAnimator.ofFloat(1f, 0f), mainHandler: Handler = Handler(Looper.getMainLooper()))
Content copied to clipboard
Types
Functions
add
                    Link copied to clipboard
                        open override fun addCompassClickListener(onClickListener: OnCompassClickListener)
Content copied to clipboard
Add an OnClick listener to the presenter.
bind
                          
                    Link copied to clipboard
                        open override fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View
Content copied to clipboard
Bind the ViewPlugin with current map context. This will create a View that will be added to the MapView.
get
                    Link copied to clipboard
                        initialize
                          
                    Link copied to clipboard
                        open override fun initialize()
Content copied to clipboard
Called when the plugin is first added to the map.
on
                    Link copied to clipboard
                        open override fun onCameraMove(lat: Double, lon: Double, zoom: Double, pitch: Double, bearing: Double, padding: DoubleArray)
Content copied to clipboard
Called whenever camera position changes. Could be invoked from any thread when map starts rendering.
on
                    Link copied to clipboard
                        open override fun onCompassClicked()
Content copied to clipboard
Invoked when the compass view is clicked.
on
                    Link copied to clipboard
                        open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)
Content copied to clipboard
Provides all map delegate instances.
on
                    Link copied to clipboard
                        Provides a view instances returned in bind after it's been added to the MapView.
remove
                    Link copied to clipboard
                        open override fun removeCompassClickListener(onClickListener: OnCompassClickListener)
Content copied to clipboard
Remove an OnClick listener from the presenter.
update
                    Link copied to clipboard
                        Properties
fadeWhenFacingNorth
                          
                    
                  Link copied to clipboard
                        marginBottom
                          
                    
                  Link copied to clipboard
                        marginLeft
                          
                    
                  Link copied to clipboard
                        marginRight
                          
                    
                  Link copied to clipboard
                        visibility
                          
                    
                  Link copied to clipboard