microsoft / MapsSDK-Native

This repository contains samples, documentation and releases history for the Bing Maps SDK for Android and iOS.
MIT License
40 stars 23 forks source link

Android MapRenderMode.RASTER do not affects any changes after application restart #48

Open kateosipenko opened 3 years ago

kateosipenko commented 3 years ago

I need to turn off 3d drawing on Bing maps. I'm using Bing android sdk version "com.microsoft.maps:maps-sdk:1.2.0". MapView has mapStyleSheet aerial or aerialWithOverlay. To turn off 3d view and to draw map in 2d I'm setting MapRenderMode.RASTER to MapView (in constructor or with setter). But after application restart map is drawing in 3d and don't seem to apply any changes. I've tried to set isBuildingsVisible=false but it also was not working for me.

Rolling back to "com.microsoft.maps:maps-sdk:1.1.0" helped me, on old sdk version bug is not reproducible.

Steps to reproduce

  1. Install application with bing maps sdk
  2. Go to screen with map
  3. Zoom to maximum to any location in any city.
  4. On current step map is drawing in 2d view as it should:

image image

  1. Close or kill application
  2. Run application again
  3. Open screen with map and zoom in to location.

Expected result: map is drawing in 2d view. Actual result: map starts to draw in 3d view. Setting render mode to raster not working: image image

Testing devices: Device: Samsung Galaxy Tab S2 OS: 7.0 Device: Samsung Galaxy Tab S7 OS: 11.0 Device: Galaxy S8 OS: 9.0 Device: Xiaomi mi 9 SE OS: 10.0

Device where bug was not reproduced: Device: Samsung Galaxy Tab A SM-T555 OS: 7.1.1