<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map does not display in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-does-not-display/m-p/1097733#M7093</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems the operational layers aren't added to the map correctly. Could you check if your 天地图 layers are reachable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;你好，&lt;/P&gt;&lt;P&gt;在第一张截图里面的登录弹窗里，您是否提供了正确的用户名密码？&lt;/P&gt;&lt;P&gt;如果您访问的layer不是公开的，则需要登录才能加载。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;另外，从截图里看代码有如下（潜在的）问题&lt;/P&gt;&lt;P&gt;1. AGSMap的basemap没有设定&lt;/P&gt;&lt;P&gt;2. AGSMapView的背景色被设成了灰色&lt;/P&gt;&lt;P&gt;3. 如果两个天地图layer之一为nil，则二者均不会被加到map上。可以尝试去掉nil的判断，或者打断点测试layer是否初始化成功&lt;/P&gt;&lt;P&gt;4. 有关API key、OAuth等鉴权问题，请参考&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/" target="_self"&gt;这个文档&lt;/A&gt;中的说明&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 17:56:46 GMT</pubDate>
    <dc:creator>Ting</dc:creator>
    <dc:date>2021-09-13T17:56:46Z</dc:date>
    <item>
      <title>Map does not display</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-does-not-display/m-p/1097546#M7091</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I added layers according to the method you said, but the map could not be displayed on the APP. Could you please check the reason?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 08:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-does-not-display/m-p/1097546#M7091</guid>
      <dc:creator>雪原高</dc:creator>
      <dc:date>2021-09-13T08:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Map does not display</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-does-not-display/m-p/1097674#M7092</link>
      <description>&lt;P&gt;Your code looks like it's doing the right things but I can't tell what's going wrong based off that screenshot.&amp;nbsp;Is&amp;nbsp;&lt;STRONG&gt;TianDiTuWMTSLayer&lt;/STRONG&gt;&amp;nbsp;a subclass of &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_w_m_t_s_layer.html" target="_blank"&gt;AGSWMTSLayer&lt;/A&gt;&lt;/STRONG&gt;? How are you instantiating the AGSWMTSLayer superclass from within your initializer? What are the services being accessed?&lt;/P&gt;&lt;P&gt;The first screenshot shows an authentication challenge from ArcGIS.com. Is that expected? Where are your two map layers hosted?&lt;/P&gt;&lt;P&gt;I expect there's something failing on map load, or the service isn't responding as expected. You can find out more by&amp;nbsp;calling &lt;A href="https://developers.arcgis.com/ios/api-reference/protocol_a_g_s_loadable-p.html#ab77285cdf36b19a70f9e0881b1498b36" target="_blank"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/A&gt; on your &lt;STRONG&gt;AGSMap&lt;/STRONG&gt; and seeing if there's an error on map load. That could help you home in on the problem.&lt;/P&gt;&lt;P&gt;You can also use &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_request_configuration.html" target="_blank"&gt;&lt;STRONG&gt;AGSRequestConfiguration&lt;/STRONG&gt;&lt;/A&gt; to output debug logs to the console. Get the singleton &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_request_configuration.html#a1485079ebd22be39da34e92f65c5cc61" target="_blank"&gt;globalConfiguration&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;and set &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_request_configuration.html#a8533fcff312dd250b4bdcfb43320fa7c" target="_blank"&gt;debugLogResponses&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;to true.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 15:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-does-not-display/m-p/1097674#M7092</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-09-13T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Map does not display</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-does-not-display/m-p/1097733#M7093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It seems the operational layers aren't added to the map correctly. Could you check if your 天地图 layers are reachable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;你好，&lt;/P&gt;&lt;P&gt;在第一张截图里面的登录弹窗里，您是否提供了正确的用户名密码？&lt;/P&gt;&lt;P&gt;如果您访问的layer不是公开的，则需要登录才能加载。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;另外，从截图里看代码有如下（潜在的）问题&lt;/P&gt;&lt;P&gt;1. AGSMap的basemap没有设定&lt;/P&gt;&lt;P&gt;2. AGSMapView的背景色被设成了灰色&lt;/P&gt;&lt;P&gt;3. 如果两个天地图layer之一为nil，则二者均不会被加到map上。可以尝试去掉nil的判断，或者打断点测试layer是否初始化成功&lt;/P&gt;&lt;P&gt;4. 有关API key、OAuth等鉴权问题，请参考&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/" target="_self"&gt;这个文档&lt;/A&gt;中的说明&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 17:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/map-does-not-display/m-p/1097733#M7093</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2021-09-13T17:56:46Z</dc:date>
    </item>
  </channel>
</rss>

