This method must be called before the MapView (e.g. VectorMapView, RasterMapView) is inflated.
the application context