MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




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


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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: 3,498
Blog Entries: 3
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 2010 ~
~~
~ 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 Desktop Discussion 6 02-10-2005 01:17 PM
MapPoint Control - Microsoft MapPoint Logo Anonymous MapPoint Desktop Discussion 0 07-10-2004 04:32 AM
mappoint 2002 - Disable "click the logo and display hel Anonymous MapPoint Desktop Discussion 0 10-12-2003 07:39 PM
Finding Pushpin Name by clicking on the Pushpin?(MP 2002) NickSP MapPoint Desktop Discussion 4 01-10-2003 12:11 PM
How can I remove the Microsoft MapPoint logo which.... Anonymous MapPoint Desktop Discussion 1 07-18-2001 09:39 PM


All times are GMT -5. The time now is 01:08 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
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 55 56 57 58 59 60 61 62 63 64 65 66 67