<?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 Creating custom dynamic image layer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174886#M1186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on an Android version of my iOS app. In my app I need to fetch an image from the server where the server isn't an arcgis server, similar to my question here &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/60285-How-do-I-create-a-layer-that-is-generated-from-an-image"&gt;http://forums.arcgis.com/threads/60285-How-do-I-create-a-layer-that-is-generated-from-an-image&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So at this point I know the Envelope and the url of the image on the server. I'm trying to create a subclass of DynamicLayer thinking that getImage will get called at some point so I can return my image data fetched from the server, but getImage is never called. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I'm ready I create a new instance of my custom class and add that as a layer to the existing map view. However, nothing in my custom class seems to be getting called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I need to override in DynamicLayer in order to return image data to the map view?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I"m overriding getFullExtent, getSpatialReference, getImage, and requestImage but none of these methods get called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my constructor I'm calling&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;super(url) with my custom image url, but really this url shouldn't refer to anything right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;super.initLayer()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or should I be using some other class to subclass here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bill&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 17:21:24 GMT</pubDate>
    <dc:creator>BillNalen</dc:creator>
    <dc:date>2013-05-09T17:21:24Z</dc:date>
    <item>
      <title>Creating custom dynamic image layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174886#M1186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on an Android version of my iOS app. In my app I need to fetch an image from the server where the server isn't an arcgis server, similar to my question here &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/60285-How-do-I-create-a-layer-that-is-generated-from-an-image"&gt;http://forums.arcgis.com/threads/60285-How-do-I-create-a-layer-that-is-generated-from-an-image&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So at this point I know the Envelope and the url of the image on the server. I'm trying to create a subclass of DynamicLayer thinking that getImage will get called at some point so I can return my image data fetched from the server, but getImage is never called. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I'm ready I create a new instance of my custom class and add that as a layer to the existing map view. However, nothing in my custom class seems to be getting called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I need to override in DynamicLayer in order to return image data to the map view?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I"m overriding getFullExtent, getSpatialReference, getImage, and requestImage but none of these methods get called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my constructor I'm calling&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;super(url) with my custom image url, but really this url shouldn't refer to anything right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;super.initLayer()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or should I be using some other class to subclass here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bill&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 17:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174886#M1186</guid>
      <dc:creator>BillNalen</dc:creator>
      <dc:date>2013-05-09T17:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom dynamic image layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174887#M1187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is anyone from ESRI reading this board? Is there some other customer service channel I should go through?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 16:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174887#M1187</guid>
      <dc:creator>BillNalen</dc:creator>
      <dc:date>2013-05-10T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom dynamic image layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174888#M1188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bill.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand what you are trying to do. The object model extensibility has not really been tested to this level since this scenario is not supported, unfortunately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What kind of service exactly are you trying to add to the map?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2013 00:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174888#M1188</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2013-05-11T00:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom dynamic image layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174889#M1189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not really a service in terms of esri. I have a regular map view layer. On top of this I want to put an image. I have the envelope and the image I receive fits directly on that envelope. The image is received directly from our server, i.e. I pass in an image id and I get back the image data. On iOS I'm doing this (but with the 2.3 sdk):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In - (NSOperation&amp;lt;AGSDynamicLayerDrawingOperation&amp;gt;*)exportMapImage:(AGSExportImageParams*)exportImageParams &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *urlString = [NSString stringWithFormat:@"%@?id=%@&amp;amp;type=png", self.URL, self.imageId];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSMutableURLRequest *urlRequest; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [urlRequest setHTTPMethod:@"GET"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSDynamicLayerImageRequestOperation *operation = [[AGSDynamicLayerImageRequestOperation alloc] initWithRequest:urlRequest];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; operation.target = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; operation.action = @selector(imageRequestOperation:didGetImage:);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; operation.errorAction = @selector(imageRequestOperation:didFailWithError:);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; operation.exportImageParams = exportImageParams;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [[AGSRequestOperation sharedOperationQueue] addOperation:operation];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then in - (void)imageRequestOperation:(NSOperation&amp;lt;AGSDynamicLayerDrawingOperation&amp;gt;*)op didGetImage:(UIImage *)image &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.exportDelegate dynamicLayer:self exportMapImageOperation:op didFinishWithImage:image];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how this translates to the 10.1 SDK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 15:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174889#M1189</guid>
      <dc:creator>BillNalen</dc:creator>
      <dc:date>2013-05-15T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating custom dynamic image layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174890#M1190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I see. After further research on this, it is not something that you can do with the Android API like you can with iOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The team is researching and considering the extensibility points of the API for future releases to support the use case you've shown with iOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for sharing this, and for your patience!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Aug 2013 17:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/creating-custom-dynamic-image-layer/m-p/174890#M1190</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2013-08-10T17:24:19Z</dc:date>
    </item>
  </channel>
</rss>

