Click or drag to resize

PoiRenderer Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Renders a Point of Interest (see PoiType for examples) on an IMap. A single PoiRenderer should not be used as a renderer for more than one IMap at the same time.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBasePoiRenderer

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.89.0.0
Syntax
public class PoiRenderer : IMapRenderer, 
	IMapMouseHandler

The PoiRenderer type exposes the following members.

Constructors
  NameDescription
Public methodPoiRenderer
Construct a new Point of Interest Renderer.
Top
Properties
  NameDescription
Public propertyMapMouseEventsHandler
Get the MapMouseEventsHandler for this PoiRenderer.
Public propertyMaximumVisibleZoom
The maximum zoom for which POIs will be rendered.
Public propertyRequiredRendermodes
Gets the RenderMode required by this PoiRenderer.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHitTest
Determine whether this Point of Interest lies beneath the co-ordinates generated by a mouse click on the given IMap.
Public methodRender
Render Points of Interest.
Public methodCode exampleSetFilter
Public methodCode exampleSetRestaurantType
Render only the given types of restaurant. Set to null to remove the filter.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldpoints
Array of POIs to render.
Public fieldVisible
Indicates whether this Renderer is visible.
Top
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: just airports and restaurants
PoiType[] types = { PoiType.PublicSportAirport, PoiType.Airport, PoiType.Restaurant };
pr.SetFilter(types);

// set the type of restaurants we want to show
PoiRestaurantType[] foods = { PoiRestaurantTypes.PIZZA, PoiRestaurantTypes.FAST_FOOD };
pr.SetRestaurantType(foods);
See Also