<?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 how to add two map to a view controller in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-add-two-map-to-a-view-controller/m-p/243460#M2300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to add two AGSMapview to&amp;nbsp; MainViewController. I archieve adding mapviews to controller and adding AGSGraphicsLayers to this maps. But the problem is that my graphics on the graphics layers are not drawn correctly. My code : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-(void)viewDidLoad{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSMapview mapView1 =[[AGSMapView alloc]initWithFrame:.......];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSMapview mapView2 =[[AGSMapView alloc]initWithFrame:.......];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// add tiled map service layers to maps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSTiledMapServiceLayer *tiledLayer1 = [AGSTiledMapServiceLayer&amp;nbsp; ....];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSTiledMapServiceLayer *tiledLayer2 = [AGSTiledMapServiceLayer&amp;nbsp; ......];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphicsLayer *graphicsLayer1 = ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphicsLayer *graphicsLayer2 = ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [self.mapView1 addMapLayer:tiledLayer1 withName:@"Tiled Layer 1"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView2 addMapLayer:tiledLayer2 withName:@"Tiled Layer 2"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView1 addMapLayer:graphicsLayer1 withName:@"Graphics Layer 1"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView1 addMapLayer:graphicsLayer2 withName:@"Graphics Layer 2"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-(void)mapViewDidLoad:(AGSMapView*)mapView{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSMutablePolyLine poly1 , poly2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSSimpleLineSymbol *line1 = ......;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSSimpleLineSymbol *line2 = ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSGraphic* myGraphic1 = ......;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSGraphic* myGraphic2 = ....... ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer1 addGraphic:myGraphic1 ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer1 dataChanged];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer2 addGraphic:myGraphic2];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer2 dataChanged];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i add only one map to controller , graphics are correct. But if i add two map to controller graphics are drawn wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Briefly , How to I add two mapview to UIViewController with graphics layer ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2011 20:53:10 GMT</pubDate>
    <dc:creator>FatihTEKCAN</dc:creator>
    <dc:date>2011-03-14T20:53:10Z</dc:date>
    <item>
      <title>how to add two map to a view controller</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-add-two-map-to-a-view-controller/m-p/243460#M2300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to add two AGSMapview to&amp;nbsp; MainViewController. I archieve adding mapviews to controller and adding AGSGraphicsLayers to this maps. But the problem is that my graphics on the graphics layers are not drawn correctly. My code : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-(void)viewDidLoad{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSMapview mapView1 =[[AGSMapView alloc]initWithFrame:.......];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSMapview mapView2 =[[AGSMapView alloc]initWithFrame:.......];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// add tiled map service layers to maps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSTiledMapServiceLayer *tiledLayer1 = [AGSTiledMapServiceLayer&amp;nbsp; ....];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSTiledMapServiceLayer *tiledLayer2 = [AGSTiledMapServiceLayer&amp;nbsp; ......];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphicsLayer *graphicsLayer1 = ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphicsLayer *graphicsLayer2 = ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [self.mapView1 addMapLayer:tiledLayer1 withName:@"Tiled Layer 1"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView2 addMapLayer:tiledLayer2 withName:@"Tiled Layer 2"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView1 addMapLayer:graphicsLayer1 withName:@"Graphics Layer 1"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView1 addMapLayer:graphicsLayer2 withName:@"Graphics Layer 2"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-(void)mapViewDidLoad:(AGSMapView*)mapView{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSMutablePolyLine poly1 , poly2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSSimpleLineSymbol *line1 = ......;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSSimpleLineSymbol *line2 = ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSGraphic* myGraphic1 = ......;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSGraphic* myGraphic2 = ....... ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer1 addGraphic:myGraphic1 ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer1 dataChanged];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer2 addGraphic:myGraphic2];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[graphicsLayer2 dataChanged];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i add only one map to controller , graphics are correct. But if i add two map to controller graphics are drawn wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Briefly , How to I add two mapview to UIViewController with graphics layer ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 20:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-add-two-map-to-a-view-controller/m-p/243460#M2300</guid>
      <dc:creator>FatihTEKCAN</dc:creator>
      <dc:date>2011-03-14T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to add two map to a view controller</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-add-two-map-to-a-view-controller/m-p/243461#M2301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If possible, can you please attach your sample project so I can look at it and help you with?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 16:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-add-two-map-to-a-view-controller/m-p/243461#M2301</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-03-15T16:26:55Z</dc:date>
    </item>
  </channel>
</rss>

