Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with changing mapview scheme NMAMapSchemeSatelliteDay #197

Open
benrardg opened this issue May 4, 2021 · 2 comments
Open

Issue with changing mapview scheme NMAMapSchemeSatelliteDay #197

benrardg opened this issue May 4, 2021 · 2 comments

Comments

@benrardg
Copy link

benrardg commented May 4, 2021

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
Copy link
Contributor

dashchak commented May 5, 2021

Hi @benrardg,

could you please specify:

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

@dashchak
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants