public final class

MapsInitializer

extends Object
java.lang.Object
   ↳ com.amazon.geo.mapsv2.MapsInitializer

Class Overview

Contains methods for manually initializing the Amazon Maps API. This is only necessary if you need to use certain API features before you obtain an AmazonMap object from a MapFragment, SupportMapFragment, or MapView object.

You must initialize the map to use classes such as BitmapDescriptorFactory and CameraUpdateFactory before obtaining the AmazonMap.

Once you obtain a non-null AmazonMap object by calling MapFragment.getMap(), SupportMapFragment.getMap(), or MapView.getMap(), the map is initialized and you do not need to initialize it manually.

Summary

Public Methods
static int initialize(Context context)
Initializes the Amazon Maps API so that its classes are ready for use.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static int initialize (Context context)

Initializes the Amazon Maps API so that its classes are ready for use.

If you have obtained a non-null AmazonMap object by calling MapFragment.getMap(), SupportMapFragment.getMap(), or MapView.getMap(), the map is initialized and you do not need to call initialize.

Parameters
context The app Context. Cannot be null.
Returns