BING MAPS WPF V1 — HOWTO — Limit the View, such that the Gray Area cannot be seen

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





Semua Balasan

  • 24 Januari 2012 9:39
    Pemilik
     
     Jawab

    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
  • 26 Januari 2012 1:50
     
     
    Hi 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:52
     
     
    There 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:39
    Pemilik
     
     Jawab
    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