MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint logo obscuring pushpin

This is a discussion on MapPoint logo obscuring pushpin within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a map with multiple pushpins, when the map loads the MapPoint logo is covering one of the pushpins ...


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 09-28-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
MapPoint logo obscuring pushpin

I have a map with multiple pushpins, when the map loads the
MapPoint logo is covering one of the pushpins making it nearly impossible to
see.

Can anyone provide a solution to overcome points hidden by the mappiont logo?
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 09-29-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,471
Blog Entries: 1
I see Steven Pushee suggested some code to back the map out a little..:

Hello,

Are you passing the mapview as ViewByBoundingLocations? This builds a map that fits all the locations on the map with a little buffer on the edges
but doesn't worry about the logo. What you could do is build the map view (ViewByBoundingRectangle) yourself based on the lat/longs and just add a bigger buffer.

Here's a little routine that I use to build a map view, this one adds a 10% buffer but you could bounce that out a little.

Code:
        Public Overloads Shared Function GetMapView(ByVal CenterPoint As 
LatLong, ByVal ProximityResults As FindResults) As ViewByBoundingRectangle

            Try

                Dim HighLat As Double
                Dim LowLat As Double
                Dim HighLong As Double
                Dim LowLong As Double

                ' Set the limits to the centerpoint
                HighLat = CenterPoint.Latitude
                LowLat = CenterPoint.Latitude
                HighLong = CenterPoint.Longitude
                LowLong = CenterPoint.Longitude

                ' Loop through results
                Dim myLocation As FindResult
                For Each myLocation In ProximityResults.Results
                    If myLocation.FoundLocation.LatLong.Latitude > HighLat Then
                        HighLat = myLocation.FoundLocation.LatLong.Latitude
                    ElseIf myLocation.FoundLocation.LatLong.Latitude < LowLat Then
                        LowLat = myLocation.FoundLocation.LatLong.Latitude
                    End If

                    If myLocation.FoundLocation.LatLong.Longitude > HighLong Then
                        HighLong = myLocation.FoundLocation.LatLong.Longitude
                    ElseIf myLocation.FoundLocation.LatLong.Longitude < LowLong Then
                        LowLong = myLocation.FoundLocation.LatLong.Longitude
                    End If
                Next

                ' Add 10% on each side
                Dim LatBuffer As Double = ((Math.Abs(HighLat - LowLat)) * 0.1)
                Dim LongBuffer As Double = ((Math.Abs(HighLong - LowLong)) * 0.1)

                ' Set the mapview
                Dim myMapView(0) As ViewByBoundingRectangle
                myMapView(0) = New ViewByBoundingRectangle
                myMapView(0).BoundingRectangle = New LatLongRectangle
                myMapView(0).BoundingRectangle.Northeast = New LatLong
                myMapView(0).BoundingRectangle.Southwest = New LatLong
                myMapView(0).BoundingRectangle.Northeast.Latitude = (HighLat + LatBuffer)
                myMapView(0).BoundingRectangle.Northeast.Longitude =  (HighLong - LongBuffer)
                myMapView(0).BoundingRectangle.Southwest.Latitude = (LowLat - LatBuffer)
                myMapView(0).BoundingRectangle.Southwest.Longitude =  (LowLong + LongBuffer)

                Return myMapView(0)

            Catch ex As Exception
                Throw
            End Try

        End Function
Steven Pushee
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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
logo, mappoint, obscuring, pushpin


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
Removing the Mappoint Logo on the screen Anonymous MapPoint 2006/2009 Discussion 6 02-10-2005 02:17 PM
MapPoint Control - Microsoft MapPoint Logo Anonymous MapPoint 2006/2009 Discussion 0 07-10-2004 05:32 AM
mappoint 2002 - Disable "click the logo and display hel Anonymous MapPoint 2006/2009 Discussion 0 10-12-2003 08:39 PM
Finding Pushpin Name by clicking on the Pushpin?(MP 2002) NickSP MapPoint 2006/2009 Discussion 4 01-10-2003 01:11 PM
How can I remove the Microsoft MapPoint logo which.... Anonymous MapPoint 2006/2009 Discussion 1 07-18-2001 10:39 PM


All times are GMT -5. The time now is 10:34 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