public abstract class

MapProvider

extends Object
java.lang.Object
   ↳ com.neomades.maps.provider.MapProvider

Class Overview

Base class for providing implementation of Maps.

Summary

Constants
int PROVIDER_APPLE_MAPS Apple Maps provider (available in iOS)
int PROVIDER_GOOGLE_MAPS Google Maps provider (available in Android)
Protected Constructors
MapProvider()
Default constructor
Public Methods
static MapProvider getDefaultProvider()
Returns the default provider for the device platform.
static MapProvider getProvider(int type)
Returns the map provider if exists with the specified provider type.
abstract Object onCreateNativeView(MapView view)
Creates the native map view.
abstract Map onInitializeMap(MapView view)
Initializes the Map implementation used to manage Map, Camera, Settings
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int PROVIDER_APPLE_MAPS

Apple Maps provider (available in iOS)

Constant Value: 1 (0x00000001)

public static final int PROVIDER_GOOGLE_MAPS

Google Maps provider (available in Android)

Constant Value: 0 (0x00000000)

Protected Constructors

protected MapProvider ()

Default constructor

Public Methods

public static MapProvider getDefaultProvider ()

Returns the default provider for the device platform.

Returns
  • the default provider

public static MapProvider getProvider (int type)

Returns the map provider if exists with the specified provider type.

Returns
  • the provider or null

public abstract Object onCreateNativeView (MapView view)

Creates the native map view.

Parameters
view the original neomad map view
Returns
  • the native Ui View (android.view.View, UIView, FrameworkElement) (not null)
Throws
NullPointerException if the returned object is null
See Also
  • #setMapSpecificMap(Map)

public abstract Map onInitializeMap (MapView view)

Initializes the Map implementation used to manage Map, Camera, Settings

Returns
  • map the map implementation (not null)
Throws
NullPointerException if the map parameter is null