BicyclingLayer component renders a bicycling layer on the map, showing bike paths, routes, and bike-friendly roads.
Import
Props
Callback invoked when the bicycling layer instance is loaded and ready.Parameters:
bicyclingLayer: The Google Maps BicyclingLayer instance
Callback invoked when the bicycling layer is unmounted and removed from the map.Parameters:
bicyclingLayer: The Google Maps BicyclingLayer instance being unmounted
Component Variants
This component is available in two variants:BicyclingLayer- The default memoized componentBicyclingLayerF- The functional component variant (same implementation)
Usage Example
Notes
- The bicycling layer shows designated bike paths, recommended bike routes, and roads with bike lanes
- This component does not accept an
optionsprop as there are no configurable options for the bicycling layer - The component returns
nulland does not render any DOM elements - The bicycling layer is automatically removed when the component unmounts