<?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: I want to populate map from json data in Android, but can't find any relevant information/method to do so. Does anyone over there have any idea ? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-want-to-populate-map-from-json-data-in-android/m-p/598406#M4141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're showing data from a JSON web service on our map.&amp;nbsp; We grab the json from our web service.&amp;nbsp; Take that and reformat it into the json format used by arcgis server (documented here - &lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?query.html" title="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?query.html"&gt;ArcGIS Server REST API&lt;/A&gt; ).&amp;nbsp; Take the resulting json, feed it into FeatureSet.fromJson(JsonParser) to get a featureset and add that to a graphicslayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not simple/pretty, but it does the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 16:16:03 GMT</pubDate>
    <dc:creator>KeithTurner</dc:creator>
    <dc:date>2015-03-04T16:16:03Z</dc:date>
    <item>
      <title>I want to populate map from json data in Android, but can't find any relevant information/method to do so. Does anyone over there have any idea ?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-want-to-populate-map-from-json-data-in-android/m-p/598404#M4139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the format of json is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; "currentVersion": 10.01,&lt;/P&gt;&lt;P&gt; "serviceDescription": "",&lt;/P&gt;&lt;P&gt; "mapName": "Layers",&lt;/P&gt;&lt;P&gt; "description": "",&lt;/P&gt;&lt;P&gt; "copyrightText": "",&lt;/P&gt;&lt;P&gt; "layers": [&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "id": 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "name": "",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "parentLayerId": -1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "defaultVisibility": true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "subLayerIds": null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "minScale": 0000,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "maxScale": 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt; ],&lt;/P&gt;&lt;P&gt; "tables": [],&lt;/P&gt;&lt;P&gt; "spatialReference": {},&lt;/P&gt;&lt;P&gt; "singleFusedMapCache": false,&lt;/P&gt;&lt;P&gt; "initialExtent": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "xmin": ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ymin": ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "xmax": ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "ymax": ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "spatialReference": {}&lt;/P&gt;&lt;P&gt; },&lt;/P&gt;&lt;P&gt; "fullExtent": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "xmin": -1.0547305&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know we can create layer using&amp;nbsp; ArcGISDynamicMapServiceLayer(url) constructor, but i have json instead of URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iOS sdk provides this facility&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Menlo','serif'; color: #4f8187;"&gt;AGSDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Menlo','serif'; color: black;"&gt; *dynamicLayer = [[&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Menlo','serif'; color: #4f8187;"&gt;AGSDynamicMapServiceLayer&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.5pt; font-family: 'Menlo','serif'; color: #3d1d81;"&gt;alloc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Menlo','serif'; color: black;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Menlo','serif'; color: #31595d;"&gt;initWithJSON&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Menlo','serif'; color: black;"&gt;:mapJson];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i believe it should be possible for android as well. But have no idea.. how &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 06:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-want-to-populate-map-from-json-data-in-android/m-p/598404#M4139</guid>
      <dc:creator>shailendrarajawat</dc:creator>
      <dc:date>2015-02-06T06:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: I want to populate map from json data in Android, but can't find any relevant information/method to do so. Does anyone over there have any idea ?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-want-to-populate-map-from-json-data-in-android/m-p/598405#M4140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid right now we don't have a similar method in Android to do so. Initialization parses Json from REST end point. &lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 11.3599996566772px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 21:27:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-want-to-populate-map-from-json-data-in-android/m-p/598405#M4140</guid>
      <dc:creator>MengyiGuo</dc:creator>
      <dc:date>2015-02-19T21:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: I want to populate map from json data in Android, but can't find any relevant information/method to do so. Does anyone over there have any idea ?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-want-to-populate-map-from-json-data-in-android/m-p/598406#M4141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're showing data from a JSON web service on our map.&amp;nbsp; We grab the json from our web service.&amp;nbsp; Take that and reformat it into the json format used by arcgis server (documented here - &lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?query.html" title="http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.html?query.html"&gt;ArcGIS Server REST API&lt;/A&gt; ).&amp;nbsp; Take the resulting json, feed it into FeatureSet.fromJson(JsonParser) to get a featureset and add that to a graphicslayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not simple/pretty, but it does the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/i-want-to-populate-map-from-json-data-in-android/m-p/598406#M4141</guid>
      <dc:creator>KeithTurner</dc:creator>
      <dc:date>2015-03-04T16:16:03Z</dc:date>
    </item>
  </channel>
</rss>

