here-ios-sdk-examples icon indicating copy to clipboard operation
here-ios-sdk-examples copied to clipboard

Issue with changing mapview scheme NMAMapSchemeSatelliteDay

Open benrardg opened this issue 4 years ago • 2 comments

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"

benrardg avatar May 04 '21 17:05 benrardg

Hi @benrardg,

could you please specify:

  • Device: [e.g. iPhone12]
  • OS: [e.g. iOS14.0]
  • SDK Version [e.g. 3.18.2]

dashchak avatar May 05 '21 08:05 dashchak

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

dashchak avatar Jun 22 '21 07:06 dashchak