<?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: Zoom to Layer with different spatialReferences in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-layer-with-different-spatialreferences/m-p/166756#M15475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the spatial ref. of your layers? If they're in a geographic coordinate system, you can use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_geometry.htm#geographicToWebMercator"&gt;esri.geometry.geographicToWebMercator()&lt;/A&gt;&lt;SPAN&gt; to project the layer's extent then pass it to map.setExtent().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your layers are in some other coordinate system, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#project"&gt;project the extent with a geometry service&lt;/A&gt;&lt;SPAN&gt; and then set the map's extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2011 13:57:26 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2011-09-29T13:57:26Z</dc:date>
    <item>
      <title>Zoom to Layer with different spatialReferences</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-layer-with-different-spatialreferences/m-p/166755#M15474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is to make a zoomTo Button in Javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have de basemap with a&amp;nbsp; spatialreference wkid:102100 and severel Layers on an ArcGis Server 10 with different spatialreferences.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can make the basemap and add the layer by map.addLayer(layer) and they where shown on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i try to zoom to the layer by map.setExtent(layer.fullExtent) i have problems with different wkids&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i convert the differen wkid to zoom to the selected layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manuel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 08:56:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-layer-with-different-spatialreferences/m-p/166755#M15474</guid>
      <dc:creator>ManuelVinzek</dc:creator>
      <dc:date>2011-09-29T08:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to Layer with different spatialReferences</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-layer-with-different-spatialreferences/m-p/166756#M15475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the spatial ref. of your layers? If they're in a geographic coordinate system, you can use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_geometry.htm#geographicToWebMercator"&gt;esri.geometry.geographicToWebMercator()&lt;/A&gt;&lt;SPAN&gt; to project the layer's extent then pass it to map.setExtent().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your layers are in some other coordinate system, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#project"&gt;project the extent with a geometry service&lt;/A&gt;&lt;SPAN&gt; and then set the map's extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 13:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-layer-with-different-spatialreferences/m-p/166756#M15475</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-09-29T13:57:26Z</dc:date>
    </item>
  </channel>
</rss>

