<?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: Can you use a featureserver as a map layer in the Runtime SDK for Java? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554249#M1744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ted,&lt;/P&gt;&lt;P&gt;One FeatureService URL can have multiple layer ids. Or, it can have just one.&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Apr 2015 16:47:36 GMT</pubDate>
    <dc:creator>EricBader</dc:creator>
    <dc:date>2015-04-26T16:47:36Z</dc:date>
    <item>
      <title>Can you use a featureserver as a map layer in the Runtime SDK for Java?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554246#M1741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a FeatureServer already made and on the REST server (I think that is correct terminology), I want to use the FeatureServer in a map application. It consists of multiple trails that I want to display on a basemap. I made the simple map from the online tutorial but I am not sure how or if I can add my FeatureServer layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be easier to use a map made on ArcGIS Online that uses the FeatureServer?&lt;/P&gt;&lt;P&gt;I also have a MapServer that I could use instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would work the best and how would I go about doing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554246#M1741</guid>
      <dc:creator>TedJacobi</dc:creator>
      <dc:date>2015-04-13T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a featureserver as a map layer in the Runtime SDK for Java?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554247#M1742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a FeatureService or MapService as a layer in Runtime Java. For the FeatureService you'll want to take a look at the following sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/sample-code/feature-layer/"&gt;https://developers.arcgis.com/java/sample-code/feature-layer/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you're looking for will resemble the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;ArcGISFeatureLayer featureLayer = &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword" style="color: #333333; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt; ArcGISFeatureLayer(FEATURE_SERVICE_URL&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;featureLayer.setName(&lt;/SPAN&gt;&lt;SPAN class="hljs-string" style="color: #dd1144; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;"Feature Layer (San Francisco incidents)"&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;map.getLayers()&lt;/SPAN&gt;.add(featureLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Map Service you'll want to look at the following sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/java/sample-code/map-layer-ordering/"&gt;https://developers.arcgis.com/java/sample-code/map-layer-ordering/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you're looking for will resemble the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt; &lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt; dynamicLayer = &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword" style="color: #333333; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt; ArcGISDynamicMapServiceLayer(MAP_SERVICE_URL&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;dynamicLayer.setName(&lt;/SPAN&gt;&lt;SPAN class="hljs-string" style="color: #dd1144; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;"Dynamic Layer (Unemployment Rate)"&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.9999990463257px; background-color: #fafafa;"&gt;map.getLayers().add(dynamicLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 20:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554247#M1742</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-04-14T20:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a featureserver as a map layer in the Runtime SDK for Java?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554248#M1743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I had found that once but for some reason couldn't again.&lt;/P&gt;&lt;P&gt;Another related question for the FeatureServer, if I have multiple features in the featureserver do I need to add a url for each one assigning it to a variable and then with the method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword" style="color: #333333; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;private&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword" style="color: #333333; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hljs-title" style="color: #990000; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;createGeodatabaseFeatureServiceTable&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;() &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureServiceTable = &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword" style="color: #333333; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; GeodatabaseFeatureServiceTable( FEATURE_SERVICE_URL, &lt;/SPAN&gt;&lt;SPAN class="hljs-number" style="color: #009999; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;Add a new featureServiceTable for each URL variable and id number?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 17:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554248#M1743</guid>
      <dc:creator>TedJacobi</dc:creator>
      <dc:date>2015-04-20T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a featureserver as a map layer in the Runtime SDK for Java?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554249#M1744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ted,&lt;/P&gt;&lt;P&gt;One FeatureService URL can have multiple layer ids. Or, it can have just one.&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 16:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/can-you-use-a-featureserver-as-a-map-layer-in-the/m-p/554249#M1744</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2015-04-26T16:47:36Z</dc:date>
    </item>
  </channel>
</rss>

