Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

MapPoint logo obscuring pushpin

This is a discussion on MapPoint logo obscuring pushpin within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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?

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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 = &#40;&#40;Math.Abs&#40;HighLat - LowLat&#41;&#41; * 0.1&#41;
                    Dim LongBuffer As Double = &#40;&#40;Math.Abs&#40;HighLong - LowLong&#41;&#41; * 0.1&#41;
    
                    ' Set the mapview
                    Dim myMapView&#40;0&#41; As ViewByBoundingRectangle
                    myMapView&#40;0&#41; = New ViewByBoundingRectangle
                    myMapView&#40;0&#41;.BoundingRectangle = New LatLongRectangle
                    myMapView&#40;0&#41;.BoundingRectangle.Northeast = New LatLong
                    myMapView&#40;0&#41;.BoundingRectangle.Southwest = New LatLong
                    myMapView&#40;0&#41;.BoundingRectangle.Northeast.Latitude = &#40;HighLat + LatBuffer&#41;
                    myMapView&#40;0&#41;.BoundingRectangle.Northeast.Longitude =  &#40;HighLong - LongBuffer&#41;
                    myMapView&#40;0&#41;.BoundingRectangle.Southwest.Latitude = &#40;LowLat - LatBuffer&#41;
                    myMapView&#40;0&#41;.BoundingRectangle.Southwest.Longitude =  &#40;LowLong + LongBuffer&#41;
    
                    Return myMapView&#40;0&#41;
    
                Catch ex As Exception
                    Throw
                End Try
    
            End Function
    Steven Pushee
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing the Mappoint Logo on the screen
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 02-10-2005, 02:17 PM
  2. MapPoint Control - Microsoft MapPoint Logo
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-10-2004, 05:32 AM
  3. mappoint 2002 - Disable "click the logo and display hel
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-12-2003, 08:39 PM
  4. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 01:11 PM
  5. How can I remove the Microsoft MapPoint logo which....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-18-2001, 10:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96