MapTrip SDK Android Manual 9.8.8
MapviewerExtensions Class Reference

Collection of some useful Methods regarding the Mapviewer that are not present in the native SDK.

Static Public Member Functions

static List< String > getVisiblePoiCategoryIds (Mapviewer map)
 
static List< String > getVisiblePoiCategoryNames (Mapviewer map)
 
static List< String > getVisiblePoiSourceNames (Mapviewer map)
 
static void setMapContent (Mapviewer map, int id)
 
static boolean showPoiCategories (Mapviewer map, List< String > poiCategoryIds)
 
static void showPoisOfCategory (Mapviewer map, String poiCategoryName)
 
static boolean showPoiSource (Mapviewer map, String poiSourceName)
 
static boolean showPoiSources (Mapviewer map, List< String > poiSourcesNames)
 

Member Function Documentation

◆ getVisiblePoiCategoryIds()

static List< String > getVisiblePoiCategoryIds ( Mapviewer  map)
static

Get a list of all poi category names that are visible

Returns

◆ getVisiblePoiCategoryNames()

static List< String > getVisiblePoiCategoryNames ( Mapviewer  map)
static

Get a list of all poi category names that are visible

Returns

◆ getVisiblePoiSourceNames()

static List< String > getVisiblePoiSourceNames ( Mapviewer  map)
static

get a list of names of all visible poi sources Optionally adds poi sources with categories but in most cases this is not needed: visibility of poi categories should be controlled by the PoiCateory and not by the Source

Parameters
map- map to check visibility
Returns
List of visible poi source names

◆ setMapContent()

static void setMapContent ( Mapviewer  map,
int  id 
)
static

Set the given mapContent for the mapviewer if id is valid

Parameters
id

◆ showPoiCategories()

static boolean showPoiCategories ( Mapviewer  map,
List< String >  poiCategoryIds 
)
static

show the the passed poi source list on the map and hides all others!

Parameters
poiCategoryIdsname of the source to show
Returns
true if a source found and set visible

◆ showPoisOfCategory()

static void showPoisOfCategory ( Mapviewer  map,
String  poiCategoryName 
)
static

◆ showPoiSource()

static boolean showPoiSource ( Mapviewer  map,
String  poiSourceName 
)
static

show the given poi source on map

Parameters
poiSourceNamename of the source to show
Returns
true if source found and set visible

◆ showPoiSources()

static boolean showPoiSources ( Mapviewer  map,
List< String >  poiSourcesNames 
)
static

show the the passed poi source list on the map

Parameters
poiSourcesNamesname of the source to show
Returns
true if a source found and set visible

The documentation for this class was generated from the following file: