none
Bing Maps V8 API - 3D Buildings' elevation (zoom: 50m) RRS feed

  • Question

  • Hello,

    i want to disable the buildings' elevation at 50m.

    How can I do that?

    Thanks.

    Thursday, September 28, 2017 2:01 PM

Answers

  • Actually, you could simply switch from Aerial 3D to Aerial. Not sure if you would still be able to view the images at an angle. To switch, use the MapStyle option: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.maps.mapstyle

    To determine when to change the map, use the maps ZoomLevelChanged event. https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.maps.mapcontrol#Events_ You will likely want to check if the zoom level is above/below 17 or 18 to make your switch. The scale bar will likely be around 50 meters at these zoom levels depending on where on the globe you are viewing.

    Alternatively, you could try setting the Style of the map using a MapStyleSheet. I'm not sure if these have any effect on the Aerial maps/buildings, but will more than likely work with the 3D builds that appear in the road maps. You can find information on MapStyleSheet's here: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.maps.mapstylesheet


    [Blog] [twitter] [LinkedIn]

    Saturday, September 30, 2017 3:23 PM
  • It's not clear from your question exactly what you're trying to do.

    Some clarification questions:

    Which map control are you using? You've posted the question in the web control forum, but reference 3D buildings. The web control doesn't support 3D display, only 2D.

    Which map style are you using? If you're in road mode, are you referring to the shaded building outlines that are drawn in an isometric view on the web control?

    Some possible solutions depending on your answers.

    If you're using the UWP map control in road mode, you can turn off building display using either the new styling API Ricky mentions, or using the legacy LandmarksVisible property of the map control. If you're in Aerial mode, then the 3D buildings are always present regardless of map style.

    If you're using the web control, the building outlines are baked into the tiles. It might be possible to remove them using the new styling API, I'm not sure.

    Monday, October 2, 2017 7:49 PM
    Moderator

All replies

  • Not sure if possible. You might be able to use a custom map style and enable/disable it based on the zoom.

    [Blog] [twitter] [LinkedIn]


    Thursday, September 28, 2017 2:08 PM
  • How can I use custom map objects to enable/disable it based on the zoom?

    Thank you for your support.

    Saturday, September 30, 2017 1:15 PM
  • Actually, you could simply switch from Aerial 3D to Aerial. Not sure if you would still be able to view the images at an angle. To switch, use the MapStyle option: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.maps.mapstyle

    To determine when to change the map, use the maps ZoomLevelChanged event. https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.maps.mapcontrol#Events_ You will likely want to check if the zoom level is above/below 17 or 18 to make your switch. The scale bar will likely be around 50 meters at these zoom levels depending on where on the globe you are viewing.

    Alternatively, you could try setting the Style of the map using a MapStyleSheet. I'm not sure if these have any effect on the Aerial maps/buildings, but will more than likely work with the 3D builds that appear in the road maps. You can find information on MapStyleSheet's here: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.maps.mapstylesheet


    [Blog] [twitter] [LinkedIn]

    Saturday, September 30, 2017 3:23 PM
  • It's not clear from your question exactly what you're trying to do.

    Some clarification questions:

    Which map control are you using? You've posted the question in the web control forum, but reference 3D buildings. The web control doesn't support 3D display, only 2D.

    Which map style are you using? If you're in road mode, are you referring to the shaded building outlines that are drawn in an isometric view on the web control?

    Some possible solutions depending on your answers.

    If you're using the UWP map control in road mode, you can turn off building display using either the new styling API Ricky mentions, or using the legacy LandmarksVisible property of the map control. If you're in Aerial mode, then the 3D buildings are always present regardless of map style.

    If you're using the web control, the building outlines are baked into the tiles. It might be possible to remove them using the new styling API, I'm not sure.

    Monday, October 2, 2017 7:49 PM
    Moderator