open class MapFragment : Fragment
Fragment is the simplest way to place a map in an application. It is a wrapper around a map view that handles map lifecycle.
MapFragment()
Empty constructor |
static val MAP_DYNAMIC_KEY: String
Key used to store dynamic keys set in Bundle when creating fragment. |
|
static val STYLE_URL_KEY: String
Key used to store style URL in Bundle when creating fragment. |
open fun getAsyncMap(callback: OnMapReadyCallback): Unit
Sets a callback which will be triggered when the map instance is ready to use. The callback will be executed in the main thread. |
|
open static fun newInstance(): MapFragment
Create new instance of MapFragment. open static fun
Create new instance of MapFragment with dynamic API Keys open static fun
Create new instance of MapFragment with custom style. open static fun
Create new instance of MapFragment with dynamic API Keys and custom style. open static fun newInstance(mapProperties: MapProperties!): MapFragment
Create new instance of MapFragment with desired initial properties. |
|
open fun onActivityCreated(savedInstanceState: Bundle?): Unit |
|
open fun onCreate(savedInstanceState: Bundle?): Unit |
|
open fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? |
|
open fun onDestroy(): Unit |
|
open fun onInflate(context: Context!, attrs: AttributeSet!, savedInstanceState: Bundle!): Unit |
|
open fun onPause(): Unit |
|
open fun onResume(): Unit |
|
open fun onSaveInstanceState(outState: Bundle): Unit |
|
open fun onStart(): Unit |
|
open fun onStop(): Unit |
|
open fun parseAttrs(context: Context!, attrs: AttributeSet!): Unit |
|
open fun setMapBackgroundColor(mapBackgroundColor: Int): Unit
Set map background color |
|
open fun setZOrderMediaOverlay(zOrderOnTop: Boolean): Unit
Control whether the map surface view's surface is placed on top of another regular surface view in the window (but still behind the window itself). This is typically used to place mini map on top of an underlying map surface view. |