Skip to content

Commit

Permalink
feat: updates on GoogleMapView lifecycle revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
waynewbishop committed Dec 9, 2024
1 parent 93cb73a commit 9e74292
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MapExamplesViewModel: ObservableObject {
@Published var examples: [MapExample] = [
MapExample(
title: "Basic map",
description: "A simple map. Shows how to initalize and upddate map options.",
description: "A simple map. Shows how to initalize and update map options.",
destination: AnyView(BasicMap())
),
MapExample(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import SwiftUI
import GoogleMaps

struct MapWithMarker: View {

private let mapOptions: GMSMapViewOptions = {

var options = GMSMapViewOptions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import GoogleMaps

struct MapWithStreetLevel: View {

@State private var mapOptions: GMSMapViewOptions = {
private var mapOptions: GMSMapViewOptions = {
var options = GMSMapViewOptions()
// Initialize map centered on San Francisco
options.camera = .streetLevel(.sanFrancisco, bearing: 45)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import GoogleMaps

struct MapWithTypes: View {

@State private var mapOptions: GMSMapViewOptions = {
private var mapOptions: GMSMapViewOptions = {
var options = GMSMapViewOptions()
// Initialize map centered on San Francisco
options.camera = .camera(.sanFrancisco)
Expand Down

0 comments on commit 9e74292

Please sign in to comment.