MapTrip Interface Android Reference Manual 9.9.0
de.infoware.android.mti.Poi Class Reference

Static Public Member Functions

static native int addPoiLayer (String layerName, String absoluteIconPath)
 
static native int deletePoiLayer (String layerName)
 
static native int deleteAllPoiLayer ()
 
static native int addPoiItem (String layerName, String poiName, double latitude, double longitude)
 
static native int deletePoiItem (String poiName, String layerName)
 
static native int showPoiLayer (String layerName, boolean doShow)
 
static void addListener (PoiListener listener)
 
static void removeListener (PoiListener listener)
 
static void removeAllListeners ()
 

Detailed Description

Member Function Documentation

◆ addListener()

static void de.infoware.android.mti.Poi.addListener ( PoiListener  listener)
static

◆ addPoiItem()

static native int de.infoware.android.mti.Poi.addPoiItem ( String  layerName,
String  poiName,
double  latitude,
double  longitude 
)
static

Add a poi to a given category and show it in the mapviewer.

Parameters
layerName- unique name of the layer in which the poi shall be inserted
poiName- unique name of the poi
latitude- latitude of the poi on the map
longitude- longitude of the poi on the map
Returns
Invokes callback PoiListener.addPoiItemResult().

◆ addPoiLayer()

static native int de.infoware.android.mti.Poi.addPoiLayer ( String  layerName,
String  absoluteIconPath 
)
static

Adds a POI Layer to the mapviewer. A Poi layer specifies an icon file and a name by which a set of POI's can be grouped.

Parameters
layerName- unique name that the layer identifies
absoluteIconPath- absolute path to the icon file which will represent the pois in the layer on the map. Use png format.
Returns
Invokes callback PoiListener.addPoiLayerResult().

◆ deleteAllPoiLayer()

static native int de.infoware.android.mti.Poi.deleteAllPoiLayer ( )
static

Remove all poi layer and all pois from the mapviewer.

Returns
Invokes callback PoiListener.deleteAllPoiLayerResult().

◆ deletePoiItem()

static native int de.infoware.android.mti.Poi.deletePoiItem ( String  poiName,
String  layerName 
)
static

Delete all POIs that match the given name in the given layer.

Parameters
poiName- unique namen of the poi
layerName- layer in which all pois of the given name shall be deleted
Returns
Invokes callback PoiListener.deletePoiItemResult().

◆ deletePoiLayer()

static native int de.infoware.android.mti.Poi.deletePoiLayer ( String  layerName)
static

Remove a poi layer and all pois that are in this layer from the mapviewer.

Parameters
layerName- unique name of the layer that shall be removed
Returns
Invokes callback PoiListener.deletePoiLayerResult().

◆ removeAllListeners()

static void de.infoware.android.mti.Poi.removeAllListeners ( )
static

◆ removeListener()

static void de.infoware.android.mti.Poi.removeListener ( PoiListener  listener)
static

◆ showPoiLayer()

static native int de.infoware.android.mti.Poi.showPoiLayer ( String  layerName,
boolean  doShow 
)
static

Shows or hides all POIs of a POI Layer.

Parameters
layerName- unique name that the layer identifies, see Poi.addPoiLayer()
doShow- true -> shows all POIs of the layer, false -> hides all POIs of the layer
Returns
Invokes callback PoiListener.showPoiLayerResult().