Windows Store App - Bing Maps Properties RRS feed

  • Question

  • I am trying to add some images unto the MapLayer by using coordinates.

    I want the user to be able to zoom on the map, but i dont want the zoom level to pass the value of 4.0f.

    How can i set the map's properties so this never happens?

    I also want to remove the physical zoom control that appears  on the map. How can i do this?

    Thank You.

    Thursday, May 15, 2014 8:01 PM


  • You can attach to the ViewChanged event and check to see if the zoom level of the map is greater than 4. If it is then set it to 4. This will restrict the map to zoom levels 1 - 4. For example:

    MyMap.ViewChanged += (s,e) => {
        var map = (s as Map);
        if (map.ZoomLevel > 4)
            map.ZoomLevel = 4;
    There is no supported way for hiding the zoom buttons. Note that the above restriction will still work with the zoom buttons. Also note that the zoom buttons are there for users who are using a mouse instead of a touch screen (zooming out a map using a touch pad mouse with out a zoom button is a major pain).

    Friday, May 16, 2014 3:32 PM