Using VB, is there any way if hiding a set of push....

Anonymous
06-27-2002, 08:10 AM
Using VB, is there any way if hiding a set of pushpins, I have multiple sets of which I only want one displayed at a time..is there such a think as dataset.hide? Also in the same theme, i would like the pushpins only to appear below a specified altitude, otherwise the display is cluttered with icons...can this be done?

Thanks..

Walt Cygan
06-27-2002, 08:10 AM
No, there is no "Hide" method. But you could assign a 1x1 pixel icon as the symbol for the dataset.


Similarly, in code you could set a pushpin or a dataset's symbol to the 1x1 pixel icon when the Altitude is above a threshhold value. Use the AfterViewChange event to capture an altitude change.


- Walt Cygan (http://www.mp2kmag.com/author.asp?id=9)

Anonymous
06-27-2002, 08:10 AM
I've discovered another way, I have added 8 entires to my dataset with the co-ordinates 0,0 (or anything off the view I want), then to "hide" these I call dataSet.DisplayDataMap. This takes only the first 8 points and plots them as some other graph type way off my map. To show them again I simply call dataSet.DisplayPushpinMap and hey presto!

 
Web mp2kmag.com
mapforums.com