open class MapFragment : Fragment, SnapshotService
Fragment is the simplest way to place a map in an application. It is a wrapper around a map view that handles the map lifecycle.
MapFragment()
Empty constructor |
static val MAP_DYNAMIC_KEY: String
Key used to store dynamic keys set in the Bundle when creating a fragment. |
|
static val STYLE_URL_KEY: String
Key used to store the style URL in a Bundle when creating a 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 setSnapshotter(snapshotter: Snapshotter): Unit
Method that allows the change of an implementation of |
|
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. |
|
open fun takeSnapshot(callback: SnapshotCallback): Unit
Take a snapshot of the Map. The result will be delivered by |