BING MAPS WPF V1 — HOWTO — Limit the View, such that the Gray Area cannot be seen
-
Tuesday, January 24, 2012 4:05 AM
When the user zooms out Bing Maps WPF, he can approach a point where the map looks like a strip at the vertical-middle of the screen.
There's a Gray Area at the top and bottom.
Is there a mode or workaround in Bing Maps WPF that prevents the map from showing that Gray Area?
It should be something that locks the top edge of the map to the top edge of the control, and bottom edge of the map to the bottom edge of the control.
- Edited by thenonhacker Tuesday, January 24, 2012 6:54 AM Added screenshot
- Moved by Richard_BrundrittMicrosoft Employee, Owner Saturday, March 10, 2012 1:09 PM (From:Bing Maps: Map Control and Web services Development)
All Replies
-
Tuesday, January 24, 2012 9:39 AMOwner
You can use view change events to check if the zoom level has changed. If it has ensure that is not less than some minum zoom level that fills the map. You will likely want a minimium zoom level of 2 or 3.
http://rbrundritt.wordpress.com- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Thursday, February 02, 2012 1:25 AM
- Unmarked As Answer by thenonhacker Friday, July 06, 2012 12:39 AM
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Friday, July 13, 2012 7:58 AM
-
Thursday, January 26, 2012 1:50 AMHi Richard! Limiting the zoom did not work. The user can still pan the map downwards and make the Gray Area appear above the Arctic or below Antarctica.
Is there a way to disable the Gray Area? -
Thursday, July 05, 2012 11:52 AMThere must be a map zoom change event you can capture and limit the upper zoom level... just a thought.
- Edited by Mthylynn Thursday, July 05, 2012 11:52 AM
-
Friday, July 06, 2012 12:40 AM
There must be a map zoom change event you can capture and limit the upper zoom level... just a thought.
Any code to prove this? We had experimented already on many ideas, but we concluded that it should not be something of a workaround; It should be something the Bing Maps Team should provide as a First Class Feature.
-
Monday, July 09, 2012 8:39 AMOwner
You can't do this. The grey area will always be shown. You may be able change the color if you want but that's about it. This is just how the map control is designed. In fact you will find just about all interactive mapping applications do the same thing.http://rbrundritt.wordpress.com
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Friday, July 13, 2012 7:58 AM

