<?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: JMap and Layer Packages in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59300#M186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Carlos,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at the toolkit section of the sample application where we have created a few different legend examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If they do what you want (or even get close) the code for all these toolkit components is there for you do see - we've just used the raw API to create these.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 16:18:52 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2013-04-03T16:18:52Z</dc:date>
    <item>
      <title>JMap and Layer Packages</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59299#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a requirement to display only footprints as layers on a map legend in an application tool that depicts what is contained in a geodatabase using mosaic data sets that each reference a variety of raster types in a workspace. This tool must display these different footprint layers on a legend fashion, while the application must display only the image layers also in a legend fashion. I do not need to display the boundary layers that each mosaic data sets auto-generate. I have to allow the user to select/deselect each layer for viewing via the legend, in both the application and the tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed that map package layers on a JMap object do not provide their containing sub-layers, but each is added and treated as a sole layer in a legend. I've convinced myself that the layers created by a mosaic data set must be individually packaged and loaded unto the JMap in order for them to be visible by the legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've searched for a way to do this. Which component in he API is used to load a layer package (.lpk) unto the map? Or, is there a way to expose the grouped sub-layers of a map package unto the legend so I wouldn't have to package all of the mosaic data sets sub-layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advanced.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 18:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59299#M185</guid>
      <dc:creator>CarlosColón-Maldonado</dc:creator>
      <dc:date>2013-04-02T18:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: JMap and Layer Packages</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59300#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Carlos,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at the toolkit section of the sample application where we have created a few different legend examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If they do what you want (or even get close) the code for all these toolkit components is there for you do see - we've just used the raw API to create these.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 16:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59300#M186</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2013-04-03T16:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: JMap and Layer Packages</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59301#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I have and I've seen the code. These are essentially trees that list the Tiled map service layers, Dynamic map service layers, Feature layers and/or Graphics layers loaded programmatically unto the JMap. They do not list the sublayers of a mosaic data set being displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I can toggle the visibility of the Boundary, FootPrint and Image sublayers from a map document that displays a mosaic dataset with loaded raster data in ArcMap. If I create a map package of this map document and use it on either of these legend examples, I will not see these sublayers, but a single layer represented by the map package itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcMap only gives me the option of creating layer packages (lpk) off each individual sublayer. So, my question really boils down to whether Runtime can display lpk files. If not, how viable of an option it would be to make separate map packages with different visibility settings (display only the FootPrint sublayer on one and only the Image on the other). A better recourse would certainly be to have the ability to access these sublayers of a map package. What's your take?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlos&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 18:27:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59301#M187</guid>
      <dc:creator>CarlosColón-Maldonado</dc:creator>
      <dc:date>2013-04-03T18:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: JMap and Layer Packages</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59302#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Carlos, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a map package from a mosaic dataset, added it to a map (JMap) as a local dynamic layer, then created a legend (JLegend) using this map. The legend displays the layers of the map package (Boundary, Footprint, Image in my case) and also allows me to toggle the visibility of each of these layers, once I expanded the 'Layers' legend item by clicking on the little blue circle icon on the left side.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this what you are after? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm including an image of the resulting application displaying the mpk layer and the legend. The bottom image is showing the visibility toggling of the Footprint layer as an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23202[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~elise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 13:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59302#M188</guid>
      <dc:creator>EliseAcheson1</dc:creator>
      <dc:date>2013-04-04T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: JMap and Layer Packages</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59303#M189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;YES!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out that the JLegend does make the inner layers of a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-java/apiref/com/esri/client/local/ArcGISLocalDynamicMapServiceLayer.html"&gt;ArcGISLocalDynamicMapServiceLayer&lt;/A&gt;&lt;SPAN&gt; object visible and selectable once loaded on the JMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 15:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/jmap-and-layer-packages/m-p/59303#M189</guid>
      <dc:creator>CarlosColón-Maldonado</dc:creator>
      <dc:date>2013-04-04T15:18:29Z</dc:date>
    </item>
  </channel>
</rss>

