MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Placecategory visibility doesn't work

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Location: Marseille, France
Posts: 9
Placecategory visibility doesn't work

I didn't succeed in masking placeCategory on map (masking hotel, restaurant, ...).
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;

            }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-22-2007
Junior Member
Yellow Belt
 
Join Date: May 2007
Location: Germany
Posts: 13
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;
Does s'one have a solution?

Regards, Dietmar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 05-22-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 05-23-2007
Junior Member
Yellow Belt
 
Join Date: May 2007
Location: Germany
Posts: 13
Re: Placecategory visibility doesn't work

ok, thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
placecategory, visibility, work


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 03:20 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54