heremaps / here-ios-sdk-examples

Objective-C and Swift projects using the HERE SDK for iOS.
MIT License
60 stars 55 forks source link

Issue with changing mapview scheme NMAMapSchemeSatelliteDay #197

Open benrardg opened 3 years ago

benrardg commented 3 years ago

As a user i can change my scheme to normal or hybrid but i am not able to change it to satellite view. I have checked available scheme in mapView object and it is returning satellite but when i set it as satellite it is becoming blank. Please see second screenshot.

Please see this code:

    @IBOutlet private weak var mapView: NMAMapView!

    override func viewDidLoad() {
        super.viewDidLoad()
        let sydneyCoordinate = NMAGeoCoordinates(latitude: -33.8688, longitude: 151.2093)
        mapView.mapScheme = NMAMapSchemeSatelliteDay
        mapView.set(geoCenter: sydneyCoordinate, animation: .linear)
    }

If i change to:

mapView.mapScheme = NMAMapSchemeHybridDay

or this:

mapView.mapScheme = NMAMapSchemeNormalDay

Map is working fine. But when I use NMAMapSchemeSatelliteDay, it is not working fine. I have also a premium licence key.

Simulator Screen Shot - iPad Pro (12 9-inch) (4th generation) - 2021-05-05 at 03 33 47 Simulator Screen Shot - iPad Pro (12 9-inch) (4th generation) - 2021-05-05 at 03 33 51 Simulator Screen Shot - iPad Pro (12 9-inch) (4th generation) - 2021-05-05 at 03 33 59

Here is response for available schems:


(lldb) po mapView.availableMapSchemes
▿ 47 elements
  - 0 : "normal.day"
  - 1 : "normal.night"
  - 2 : "normal.day.china"
  - 3 : "terrain.day"
  - 4 : "satellite.day"
  - 5 : "satellite.night"
  - 6 : "hybrid.day"
  - 7 : "hybrid.night"
  - 8 : "pedestrian.day"
  - 9 : "pedestrian.night"
  - 10 : "pedestrian.day.hybrid"
  - 11 : "pedestrian.night.hybrid"
  - 12 : "normal.day.grey"
  - 13 : "normal.night.grey"
  - 14 : "hybrid.grey.day"
  - 15 : "hybrid.grey.night"
  - 16 : "normal.traffic.day"
  - 17 : "normal.traffic.night"
  - 18 : "hybrid.traffic.day"
  - 19 : "hybrid.traffic.night"
  - 20 : "normal.day.transit"
  - 21 : "normal.night.transit"
  - 22 : "hybrid.day.transit"
  - 23 : "hybrid.night.transit"
  - 24 : "reduced.day"
  - 25 : "reduced.night"
  - 26 : "hybrid.reduced.day"
  - 27 : "hybrid.reduced.night"
  - 28 : "carnav.day"
  - 29 : "carnav.night"
  - 30 : "carnav.hybrid.day"
  - 31 : "carnav.hybrid.night"
  - 32 : "carnav.traffic.day"
  - 33 : "carnav.traffic.night"
  - 34 : "carnav.traffic.hybrid.day"
  - 35 : "carnav.traffic.hybrid.night"
  - 36 : "maneuver.day"
  - 37 : "truck.day"
  - 38 : "truck.night"
  - 39 : "hybrid.truck.day"
  - 40 : "hybrid.truck.night"
  - 41 : "trucknav.day"
  - 42 : "trucknav.night"
  - 43 : "trucknav.hybrid.day"
  - 44 : "trucknav.hybrid.night"
  - 45 : "carnav.day.grey"
  - 46 : "carnav.night.grey"
dashchak commented 3 years ago

Hi @benrardg,

could you please specify:

dashchak commented 3 years ago

Were you able to resolve the issue? Can we close this ticket?