Select to view content in your preferred language

Always error and white screen when using the Vector base map on 'ProMax' iPhone.

115
3
yesterday
ZhouYi
by
Emerging Contributor

My dev device is an iPhone 15 ProMax with iOS 26. And the version for ArcGIS Swift SDK is 100.15.6.

If I create a map with this code:

AGSMap(basemapType: "StreetsVector", latitude: 42, longitude: -73, levelOfDetail: 5)

An error always happens, and the map view will be white. Here is the error message:

Printing description of err:

▿ Optional<Error>

  - some : Error Domain=com.esri.arcgis.runtime.error Code=18 "Internal error." UserInfo={NSLocalizedFailureReason=, NSLocalizedDescription=Internal error., Additional Message=}

Printing description of $R0:

Internal error.

But if using the basemap without vector, such as this:

AGSMap(basemapType: "Streets", latitude: 42, longitude: -73, levelOfDetail: 5)

The map can display correctly without any error.

 

Another information is I tried on other real deives with the same code, here is the result:

iPhone 16  --> Work

iPhone 17 Pro Max --> Error

iPad mini 5 --> Error

iPhone 16 Pro --> Work

iPhone SE 2--> Work

If anyone encounters a problem similar to mine or has some idea about my problem, we can discuss it together. Thank you for being so helpful~

0 Kudos
3 Replies
Nicholas-Furness
Esri Regular Contributor

Hi. That constructor is marked as deprecated. You should use this instead, and set the Map's initialViewpoint or the MapView's viewpoint (see this tutorial). You'll need to convert your zoom level 5 to a scale value (see this tool).

Please let us know if you still see the issue with that constructor.

ZhouYi
by
Emerging Contributor

Thanks for your help!

I will try it and provide more information.

0 Kudos
ZhouYi
by
Emerging Contributor

Hi Nicholas, Thanks for your help. Your solution can help me to fix the issue.

But for our production environment, we  never used an apikey. So that I have 2 question about this issue.

1.Is using apikey and this constructor the most populate? 

2. Why this issue happend? (I guess these 2 constructor request different basemap url, does it correct?)

Thanks~

0 Kudos