Click or drag to resize

PoiRendererSetRestaurantType Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Render only the given types of restaurant. Set to null to remove the filter.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public void SetRestaurantType(
	PoiRestaurantType[] types
)

Parameters

types
Type: Telogis.GeoBasePoiRestaurantType
The PoiRestaurantType to show.
Remarks
If PoiType.Restaurant is being filtered (using the SetFilter(PoiType) method) then no restaurants will be shown, regardless of what SetRestaurantType is set to.
Examples
C#
// setup PoiRenderer, add to our rendererlist so it gets drawn
PoiRenderer pr = new PoiRenderer();
myRendererList.Add(pr);

...

// set types we want to show:
PoiRestaurantType[] types = { PoiRestaurantType.AMERICAN_FOOD, PoiRestaurantType.BISTRO };

// apply the filter
pr.SetRestaurantType(types);

// ... now only American and Bistro food types will be shown.
// Call pr.SetRestaurantType(null) to reset.
See Also