<?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: Graphic Overlay Differs between MapPack and TilePack in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphic-overlay-differs-between-mappack-and/m-p/591874#M3025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: merlich&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Figured it out, the spatial reference is set to WGS_1984_Web_Mercator_Auxiliary_Sphere.&amp;nbsp; Can this be set to normal WGS 1984 for the tile format?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the confusion.&amp;nbsp; Mpk files keep the WGS 1984 used with the project.&amp;nbsp; Tpk files create the packs using WGS_1984_Web_Mercator_Auxiliary_Sphere.&amp;nbsp; We will use several layers on the map consisting of both mpk and tpk files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I only use an mpk file and add a symbol, I can set it with a mappoint using the actual lat/lon values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I only use a tpk file and add a symbol, I have WebMercator.FromGeographic to translate the lat/lon values so they display in the correct location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I load a tpk file, then an mpk file to layer on top, both layers display properly (the mpk appears to be translated to use the web_mercator) and WebMercator.FromGeographic is required to translate the lat/lon of symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I load the mpk, then layer a tpk on top, the tpk doesn't get displayed at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is there something I'm overlooking in setting up the layers, or should they use the same projection?&amp;nbsp; Can the tiling be changed to not use the web_mercator, or should the project be changed to use the web_mercator projection so the mpk also uses the projection?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2011 15:03:25 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-09-02T15:03:25Z</dc:date>
    <item>
      <title>Graphic Overlay Differs between MapPack and TilePack</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphic-overlay-differs-between-mappack-and/m-p/591873#M3024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: merlich&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to add a graphic overlay marker and I get different results when using an mpk and tpk.&amp;nbsp; It shows correctly with the mpk, but is way off in the ocean when placed on a tpk.&amp;nbsp; The attached images show the differences.&amp;nbsp; The same arcmap project was used for creating both.&amp;nbsp; For the ESRI folks, I used the same data/mpk/tpk that I placed on our ftp for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After loading the map layer, here is the code I used to add the graphic overlay:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PictureMarkerSymbol vehicle = LayoutRoot.Resources["VehicleSymbol"] as ESRI.ArcGIS.Client.Symbols.PictureMarkerSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicsLayer imageOverlaysLayer = new GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.Layers.Add(imageOverlaysLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic currentVehicleMarker = new Graphic()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry = new MapPoint(-105.09744, 39.8021),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Symbol = _vehicle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imageOverlaysLayer.Graphics.Add(currentVehicleMarker);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 19:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphic-overlay-differs-between-mappack-and/m-p/591873#M3024</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-09-01T19:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Overlay Differs between MapPack and TilePack</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphic-overlay-differs-between-mappack-and/m-p/591874#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: merlich&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Figured it out, the spatial reference is set to WGS_1984_Web_Mercator_Auxiliary_Sphere.&amp;nbsp; Can this be set to normal WGS 1984 for the tile format?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the confusion.&amp;nbsp; Mpk files keep the WGS 1984 used with the project.&amp;nbsp; Tpk files create the packs using WGS_1984_Web_Mercator_Auxiliary_Sphere.&amp;nbsp; We will use several layers on the map consisting of both mpk and tpk files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I only use an mpk file and add a symbol, I can set it with a mappoint using the actual lat/lon values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I only use a tpk file and add a symbol, I have WebMercator.FromGeographic to translate the lat/lon values so they display in the correct location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I load a tpk file, then an mpk file to layer on top, both layers display properly (the mpk appears to be translated to use the web_mercator) and WebMercator.FromGeographic is required to translate the lat/lon of symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I load the mpk, then layer a tpk on top, the tpk doesn't get displayed at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is there something I'm overlooking in setting up the layers, or should they use the same projection?&amp;nbsp; Can the tiling be changed to not use the web_mercator, or should the project be changed to use the web_mercator projection so the mpk also uses the projection?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 15:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphic-overlay-differs-between-mappack-and/m-p/591874#M3025</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-09-02T15:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Overlay Differs between MapPack and TilePack</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphic-overlay-differs-between-mappack-and/m-p/591875#M3026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;So, is there something I'm overlooking in setting up the layers, or should they use the same projection?&amp;nbsp; Can the tiling be changed to not use the web_mercator, or should the project be changed to use the web_mercator projection so the mpk also uses the projection?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally the layers (services) in your map control should all use the same coordinate system. Tiled layers, whether ArcGISTiledMapServiceLayer or LocalTileCacheLayer, consist of a full set of prerendered map images and therefore cannot be reprojected on the fly. Dynamic layers/services, by contrast, can be reprojected on the fly by the ArcGIS Runtime and by ArcGIS Server but it's worth remembering that this will be done on a per request basis and therefore will incur some degree of performance overhead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;The tiling scheme used by the Tile Package can be anything you like - if you want to use a WGS84 that's fine. You can create your own, or alternatively for guidance, use the option "An existing map service" then browse to a connection to an existing map service. For example you use the URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/arcgis/rest/services" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/arcgis/rest/services&lt;/A&gt;&lt;SPAN&gt;" to add a map service then browse to the ESRI_Imagery_World_2D which is a service in WGS84 with an appropriate tiling scheme for a global service in that projection. You could then add some additional scales below the 1:4508... scale. Remember - "...Every time you halve the scale's denominator, it takes four times as many tiles to cover a square area of the map..." - for more info see &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Planning_a_map_cache/00930000006q000000/"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Planning_a_map_cache/00930000006q000000/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 13:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/graphic-overlay-differs-between-mappack-and/m-p/591875#M3026</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2011-09-06T13:44:36Z</dc:date>
    </item>
  </channel>
</rss>

