<?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: spatial reference not working? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spatial-reference-not-working/m-p/329892#M7902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using a WebMercatorExtent instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorExtent.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorExtent.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can use WebMercatorUtil to convert from geographic to web mercator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 16:22:52 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2012-09-27T16:22:52Z</dc:date>
    <item>
      <title>spatial reference not working?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spatial-reference-not-working/m-p/329891#M7901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS Flex API to write some web map application and got some tricky problems with the spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;vMap = new com.esri.ags.Map(); initialExtent = new Extent(-98,33,-97,34, new SpatialReference(4326)); //initialExtent = new Extent(-11131949.0793274, 3456807.64460123, -10241393.1529812 , 4347363.57094742, new SpatialReference(4326)); vMap.extent = initialExtent; vLayer = new ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); vMap.addLayer(vLayer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I&amp;nbsp; am using the latitude and longitude, so I choose the 4326 spatial reference. But the map keep using the default 102100.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;initialExtent = new Extent(-98,33,-97,34, new SpatialReference(4326));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; only show the map around (0,0) because the lat/lon is too small in UTM coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;initialExtent = new Extent(-11131949.0793274, 3456807.64460123, -10241393.1529812 , 4347363.57094742, new SpatialReference(4326));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;will still gives me the right extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 15:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/spatial-reference-not-working/m-p/329891#M7901</guid>
      <dc:creator>YuLuo1</dc:creator>
      <dc:date>2012-09-27T15:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: spatial reference not working?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spatial-reference-not-working/m-p/329892#M7902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using a WebMercatorExtent instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorExtent.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorExtent.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can use WebMercatorUtil to convert from geographic to web mercator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 16:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/spatial-reference-not-working/m-p/329892#M7902</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-09-27T16:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: spatial reference not working?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/spatial-reference-not-working/m-p/329893#M7903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That fixes it . Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try using a WebMercatorExtent instead:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorExtent.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorExtent.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or you can use WebMercatorUtil to convert from geographic to web mercator:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 13:21:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/spatial-reference-not-working/m-p/329893#M7903</guid>
      <dc:creator>YuLuo1</dc:creator>
      <dc:date>2012-09-28T13:21:36Z</dc:date>
    </item>
  </channel>
</rss>

