Skip to content

Commit 21b518b

Browse files
authored
Add macro tag for current place tutorial (#204)
* Add macro tag for current place tutorial Affected files: - MapViewController.swift * Update PlacesViewController.swift * Update PlacesViewController.m * Update MapViewController.m
1 parent b1e19c8 commit 21b518b

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

tutorials/current-place-on-map/current-place-on-map/MapViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Copyright © 2020 William French. All rights reserved.
77
//
88

9+
// [START maps_ios_current_place]
910
#import "MapViewController.h"
1011
#import "PlacesViewController.h"
1112
@import CoreLocation;
@@ -199,3 +200,4 @@ - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *
199200
// [END maps_ios_current_place_location_manager_delegate]
200201

201202
@end
203+
// [END maps_ios_current_place]

tutorials/current-place-on-map/current-place-on-map/MapViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* permissions and limitations under the License.
1414
*/
1515

16+
// [START maps_ios_current_place]
1617
import UIKit
1718
import GoogleMaps
1819
import GooglePlaces
@@ -193,3 +194,4 @@ extension MapViewController: CLLocationManagerDelegate {
193194
}
194195
}
195196
// [END maps_ios_current_place_location_manager_delegate]
197+
// [END maps_ios_current_place]

tutorials/current-place-on-map/current-place-on-map/PlacesViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// [START maps_ios_current_place]
1516
#import "PlacesViewController.h"
1617

1718
// [START maps_ios_current_place_tableviewdelegate]
@@ -76,3 +77,4 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
7677
}
7778
@end
7879
// [END maps_ios_current_place_tableviewdatasource]
80+
// [END maps_ios_current_place]

tutorials/current-place-on-map/current-place-on-map/PlacesViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* permissions and limitations under the License.
1414
*/
1515

16+
// [START maps_ios_current_place]
1617
import UIKit
1718
import GooglePlaces
1819

@@ -93,3 +94,4 @@ extension PlacesViewController: UITableViewDataSource {
9394
}
9495
}
9596
// [END maps_ios_current_place_tableviewdatasource]
97+
// [END maps_ios_current_place]

0 commit comments

Comments
 (0)