BING MAPS WPF V1 — HOWTO — Limit the View, such that the Gray Area cannot be seen
-
24 Januari 2012 4:05
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.
- Diedit oleh thenonhacker 24 Januari 2012 6:54 Added screenshot
- Dipindahkan oleh Richard_BrundrittMicrosoft Employee, Owner 10 Maret 2012 13:09 (From:Bing Maps: Map Control and Web services Development)
Semua Balasan
-
24 Januari 2012 9:39Pemilik
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- Ditandai sebagai Jawaban oleh Richard_BrundrittMicrosoft Employee, Owner 02 Februari 2012 1:25
- Tanda sebagai Jawaban dihapus oleh thenonhacker 06 Juli 2012 0:39
- Ditandai sebagai Jawaban oleh Richard_BrundrittMicrosoft Employee, Owner 13 Juli 2012 7:58
-
26 Januari 2012 1:50Hi 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? -
05 Juli 2012 11:52There must be a map zoom change event you can capture and limit the upper zoom level... just a thought.
- Diedit oleh Mthylynn 05 Juli 2012 11:52
-
06 Juli 2012 0:40
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.
-
09 Juli 2012 8:39Pemilik
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
- Ditandai sebagai Jawaban oleh Richard_BrundrittMicrosoft Employee, Owner 13 Juli 2012 7:58