MapSpecification.HideEntityTypes Property
MapSpecification.HideEntityTypes Property
Specifies which built-in points of interest will not be rendered on the map. Optional.
Public HideEntityTypes As System.String[]
[C#]
public System.String[] HideEntityTypes;
Remarks
To suppress the display of specific point-of-interest categories (entity types), pass an array of string values that represent the entity types that you do not want displayed. The following table lists entity types and valid string values.
Entity type |
String value |
---|---|
Airports |
"Airport" |
Convention centers |
"ConventionCenter" |
Hospitals |
"Hospital" |
Metro stations and subways |
"MetroStation" |
Points of interest that do not fit into another category |
"Other" |
Park-and-ride facilities and other parking areas |
"ParkAndRide" |
Police stations |
"PoliceStation" |
Railway stations |
"RailwayStation" |
Rest areas |
"RestArea" |
Schools |
"School" |
Shopping centers |
"ShoppingCenter" |
Tourist points of interest |
"Tourist" |
All points of interest |
"All" |
Example
[Visual Basic]
'Don't show icons for schools, Tourist points of interest,
'Police stations, and other points of interest
Dim spec As New MapSpecification
spec.DataSourceName = "MapPoint.NA"
spec.Views = views
spec.Options = options
spec.HideEntityTypes = New String() {"School", "Tourist", "PoliceStation", "Other"}
[C#]
//Don't show icons for schools, Tourist points of interest,
//Police stations, and other points of interest
MapSpecification spec = new MapSpecification();
spec.DataSourceName="MapPoint.NA";
spec.Views=views;
spec.Options=options;
spec.HideEntityTypes= new String[] { "School" , "Tourist", "Other", "PoliceStation" };
See Also
MapSpecification Class | EntityType Class | MapPoint Web Service Data Sources and Capabilities