MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




map point altitude bug

This is a discussion on map point altitude bug within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I've created an application that uses mp2k2. On the form I use a slider to control the zoom level; I ...


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 05-21-2004
Junior Member
White Belt
 
Join Date: May 2004
Posts: 1
map point altitude bug

I've created an application that uses mp2k2. On the form I use a slider to control the zoom level; I set the map.altitude to 1 of 22 altitudes that I allow my users to view. In the form activate function I take a reading of the map.altitude property and align my zoom silder to the current altitude. The problem is that after adding pushpins to the map (I use custom symbols for the pushpins) the altitude will not return a value less than 93 when over the ocean or 1 when on land. If i set the altitude to 0 the map will display correctly however, I then bring up my about dialogue and close it. When it closes. it causes the form activate function to run and automatically zooms me out.

Code:
Private Sub Form_Activate()        
    Current_Zoom_Level = sensors.Altitude_To_Zoom_Level (MapMain.map.Altitude)
    SetToCurrentZoomFactor True 'call function to update zoom slider
End Sub

.
.
.


Public Sub SetToCurrentZoomFactor(Optional FromTimer As Boolean = False)
    MapMain.map.Altitude = Zoom_Level(Current_Zoom_Level) 'get altitude value that corresponds to zoom level
    MapMain.Label_Zoom_Level = Current_Zoom_Level
    MapMain.ZoomSlider.Value = Current_Zoom_Level
.
.
.
End Sub
So in summary after closing my dialogue window when a pushpin with a custom symbol is on the map the minimum value returned by map.altutude is 1 or 93 (depending weather I am on land or in the ocean).
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
altitude, bug, map, point


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 Altitude using Latitude , Longitude Anonymous MapPoint 2006/2009 Discussion 1 05-02-2005 02:32 PM
Is there a way to get the altitude (height above m.... Anonymous MapPoint 2006/2009 Discussion 4 09-08-2004 02:16 PM
radius to altitude sharkbait MapPoint 2006/2009 Discussion 1 06-23-2004 11:22 AM
Altitude property Labtek MapPoint 2006/2009 Discussion 2 05-02-2003 10:28 PM
Is it possible to get a place's altitude ?? Anonymous MapPoint 2006/2009 Discussion 1 12-27-2002 11:30 AM


All times are GMT -5. The time now is 03:26 PM.


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