<?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: wrapAround180 map property with WAB in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220096#M20447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VM BP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The maps options are set in the MapManager look in the&amp;nbsp;_show2DWebMap function and find the var mapOptions = .... Then add a line like&lt;/P&gt;&lt;P&gt;mapOptions.wrapAround180&amp;nbsp;=&amp;nbsp;true;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2020 12:13:40 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-06-23T12:13:40Z</dc:date>
    <item>
      <title>wrapAround180 map property with WAB</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220095#M20446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing with JS 2D API 3.24 in WAB 2.8, in the framework of AGS 10.6.1.&lt;/P&gt;&lt;P&gt;I need a map with the property wrapAround180 set to true. This is not a property configurable in WAB. I'm trying to configure it writting the property in config.json, in entry "map", sub entry "mapOptions", below "lods", with something like this:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"map": {&lt;/P&gt;&lt;P&gt;"3D": false,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"itemId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",&lt;/P&gt;&lt;P&gt;"mapOptions": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"lods": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{},&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"level": 13,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"scale": 1000,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"resolution": 0.00000237&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;],&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; "&gt;"wrapAround180": true,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"extent": { ...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Nevertheless, when app is launched, the map has this property in false.&lt;/P&gt;&lt;P&gt;If in the same line of the config.json file I put the property "zoom": 4,deleting "wraparound180" property, then the map starts in zoom = 4. In others words: it must work.&lt;/P&gt;&lt;P&gt;The file config-readme.txt confirm that in "mapOptions" entry of config.json we can put same options as the map API options.&lt;/P&gt;&lt;P&gt;Debbuging, I can see that this property is true until _show2DWebMap method in MapManager.js file, in jimu.js folder of the App. In this method, map.wrapAround180 is false. I have chenged this value programatically and runs ok... until we do zoom, when map becomes invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220095#M20446</guid>
      <dc:creator>GeoGarage-vmbp-</dc:creator>
      <dc:date>2020-06-23T09:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: wrapAround180 map property with WAB</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220096#M20447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VM BP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The maps options are set in the MapManager look in the&amp;nbsp;_show2DWebMap function and find the var mapOptions = .... Then add a line like&lt;/P&gt;&lt;P&gt;mapOptions.wrapAround180&amp;nbsp;=&amp;nbsp;true;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 12:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220096#M20447</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-06-23T12:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: wrapAround180 map property with WAB</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220097#M20448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;thank you very much for your answer. I cannot get it works. My application is made with WAB 2.8 Developer edition, and I have edited with Sublime the function _show2DWebMap in MapManager.js in:&lt;/P&gt;&lt;P&gt;var mapOptions = this.processMapOptions(... ;&lt;BR /&gt;mapOptions.isZoomSlider = false;&lt;BR /&gt;mapOptions.wrapAround180 = true; //this is the line that I have added and doesn't work&lt;/P&gt;&lt;P&gt;Is anything that am I doing wrong or is a bug?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 10:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220097#M20448</guid>
      <dc:creator>GeoGarage-vmbp-</dc:creator>
      <dc:date>2020-06-24T10:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: wrapAround180 map property with WAB</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220098#M20449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I just tested WAB 2.8 and by default (no config or code changes) the map is already enabled to wrap 180 (when using an esri basemap).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 11:59:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wraparound180-map-property-with-wab/m-p/220098#M20449</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-06-24T11:59:54Z</dc:date>
    </item>
  </channel>
</rss>

