Skip to content

Commit b7ea377

Browse files
committed
chore(example): transit layer support
1 parent 5db65ea commit b7ea377

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

example/src/components/MapWrapper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export default function MapWrapper(props: Props) {
105105
myLocationEnabled={props.myLocationEnabled ?? true}
106106
trafficEnabled={props.trafficEnabled ?? false}
107107
indoorEnabled={props.indoorEnabled ?? false}
108+
transitEnabled={props.transitEnabled ?? false}
108109
style={[styles.map, props.style]}
109110
userInterfaceStyle={
110111
props.userInterfaceStyle ??

example/src/screens/BasicMapScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default function BasicMapScreen() {
4848
buildingEnabled: undefined,
4949
trafficEnabled: undefined,
5050
indoorEnabled: undefined,
51+
transitEnabled: undefined,
5152
customMapStyle: undefined,
5253
mapZoomConfig: { min: 0, max: 20 },
5354
mapPadding: { top: 0, left: 0, bottom: layout.bottom + 70, right: 0 },

example/src/types/basicMapConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export type RNBasicMapConfig = {
2020
buildingEnabled?: boolean;
2121
trafficEnabled?: boolean;
2222
indoorEnabled?: boolean;
23+
transitEnabled?: boolean;
2324
customMapStyle?: string;
2425
userInterfaceStyle?: RNUserInterfaceStyle;
2526
mapZoomConfig?: RNMapZoomConfig;

example/src/utils/validator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ export const RNBasicMapConfigValidator = object({
328328
buildingEnabled: optional(boolean()),
329329
trafficEnabled: optional(boolean()),
330330
indoorEnabled: optional(boolean()),
331+
transitEnabled: optional(boolean()),
331332
customMapStyle: optional(string()),
332333
userInterfaceStyle: optional(RNUserInterfaceStyleValidator),
333334
mapZoomConfig: optional(RNMapZoomConfigValidator),

src/RNGoogleMapsPlusView.nitro.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export interface RNGoogleMapsPlusViewProps extends HybridViewProps {
5656
/** Enables indoor maps. */
5757
indoorEnabled?: boolean;
5858

59+
/** Enables transit layer. */
60+
transitEnabled?: boolean;
61+
5962
/**
6063
* JSON map style string.
6164
* Must be a Google Maps StyleSpec JSON.

0 commit comments

Comments
 (0)