Community of VE/MapPoint Users and Developers
This is a discussion on Placecategory visibility doesn't work within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I didn't succeed in masking placeCategory on map (masking hotel, restaurant, ...). I used the folowing code with placecategory visible ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Placecategory visibility doesn't work I used the folowing code with placecategory visible property. Any one has an explanation ? Code: axMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
map = axMappointControl1.ActiveMap;
app = map.Application;
for (int i = 1; i < map.PlaceCategories.Count + 1; i++)
{
object index = i;
MapPoint.PlaceCategory placeCategory =
map.PlaceCategories.get_Item(ref index) as MapPoint.PlaceCategory;
placeCategory.Visible = false;
}
|
| |||
| Re: Placecategory visibility doesn't work
Hi! I use Delphi 5 and have the same problem. I can't make the Hotels, Restaurant and all the other stuff invisible. Why? My code is Code: var i: integer;
oVar: OleVariant;
begin
SMap.PlaceCategories.Visible := geoFalse;
for i := 1 to SMap.PlaceCategories.Count do begin
oVar := i;
SMap.PlaceCategories.Item[oVar].Visible := false;
end;
end;
Regards, Dietmar |
| |||
| Re: Placecategory visibility doesn't work
Unfortunately, it is a known bug in MapPoint Europe 2006 - most Restaurants cannot be set to non-visible. Note that this bug is NOT present in MapPoint North America 2006. Note: To make ALL the PlaceCategories invisible, simply set ActiveMap.PlaceCategories.Visible to false. Unfortunately, this still does not make restaurants invisible. Sorry to bear the bad news. HTH Paul |
![]() |
| Tags |
| placecategory, visibility, work |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get a PlaceCategory Name? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-02-2005 05:11 AM |
| Shape visibility | Map57 | MapPoint 2006/2009 Discussion | 0 | 12-21-2004 05:55 AM |
| Mappoint visibility | Anonymous | MapPoint 2006/2009 Discussion | 4 | 04-16-2004 10:12 AM |
| i want to use this example but it don't work | Anonymous | MapPoint 2006/2009 Discussion | 3 | 02-28-2004 10:37 AM |
| Add a PlaceCategory | Anonymous | MapPoint 2006/2009 Discussion | 4 | 12-19-2002 09:42 AM |