Skip to content

Commit

Permalink
minor code update
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yal committed Aug 4, 2014
1 parent 9050556 commit 681d804
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions Basemap Tutorial/MyFirstMapApp/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ - (IBAction)basemapChanged:(id)sender {

//add new layer
AGSTiledMapServiceLayer* newBasemapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:basemapURL];
newBasemapLayer.name = @"Basemap Tiled Layer";
[self.mapView insertMapLayer:newBasemapLayer atIndex:0];
[self.mapView insertMapLayer:newBasemapLayer withName:@"Basemap Tiled Layer" atIndex:0];
}
@end
1 change: 0 additions & 1 deletion Geocoding Tutorial/MyFirstMapApp/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
params.text = searchBar.text;
params.outFields = @[@"*"];
params.outSpatialReference = self.mapView.spatialReference;
params.location = [AGSPoint pointWithX:0 y:0 spatialReference:nil];

//Kick off the geocoding operation.
//This will invoke the geocode service on a background thread.
Expand Down
1 change: 0 additions & 1 deletion Routing Tutorial/MyFirstMapApp/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
params.text = searchBar.text;
params.outFields = @[@"*"];
params.outSpatialReference = self.mapView.spatialReference;
params.location = [AGSPoint pointWithX:0 y:0 spatialReference:nil];

//Kick off the geocoding operation.
//This will invoke the geocode service on a background thread.
Expand Down

0 comments on commit 681d804

Please sign in to comment.