Map Surface
            class MapSurface @JvmOverloads() constructor(context: Context, surface: Surface, mapInitOptions: MapInitOptions) : MapPluginProviderDelegate, MapControllable
Content copied to clipboard
A MapSurface provides an embeddable map interface. You use this class to display map information and to manipulate the map contents from your application. You can center the map on a given coordinate, specify the size of the area you want to display, and style the features of the map to fit your application's use case.
Use of MapSurface requires a Mapbox API access token. Obtain an access token on the Mapbox account page.
<strong>Warning:</strong> Please note that you are responsible for getting permission to use the map data, and for ensuring your use adheres to the relevant terms of use.
Parameters
context
the application context to init the default MapInitOptions
mapInitOptions
the init options to for map
surface
the surface that will display map
Constructors
MapSurface
                          
                    Link copied to clipboard
                        @JvmOverloads()
Content copied to clipboard
the application context to init the default MapInitOptions
Functions
getMapboxMap
                          
                    Link copied to clipboard
                        onGenericMotionEvent
                          
                    
                  Link copied to clipboard
                        onLowMemory
                          
                    Link copied to clipboard
                        onSizeChanged
                          
                    
                  Link copied to clipboard
                        onTouchEvent
                          
                    
                  Link copied to clipboard
                        queueEvent
                          
                    
                  Link copied to clipboard
                        removeWidget
                          
                    Link copied to clipboard
                        setMaximumFps
                          
                    
                  Link copied to clipboard
                        setOnFpsChangedListener
                          
                    Link copied to clipboard
                        open override fun setOnFpsChangedListener(listener: OnFpsChangedListener)
Content copied to clipboard
Set OnFpsChangedListener to get map rendering FPS.
snapshot
                          
                    
                  Link copied to clipboard
                        surfaceChanged
                          
                    
                  Link copied to clipboard
                        surfaceCreated
                          
                    Link copied to clipboard
                        surfaceDestroyed
                          
                    Link copied to clipboard