We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to know if it is possible to draw a route on the map similar to the image below:
I didn't find anything from this library saying anything about it, if anyone can help me please.
My code:
import React, { useRef, useState, useCallback } from 'react'; import { Map, GoogleApiWrapper, Marker, Polygon, Listing, Polyline, MapWithADirectionsRenderer } from 'google-maps-react'; export const Geo = ({ google }) => { const mapRef = useRef(null); return ( <> <Map ref={mapRef} google={google} containerStyle={{ height: '100vh', width: '100%', }} initialCenter={{ lat: -23.49111858736318, lng: -46.711258044347865 }} zoom={17} > <Marker name={'Your position'}/> </Map> </> ); }; export default GoogleApiWrapper({ apiKey: "key", // google maps key })(Geo);
The text was updated successfully, but these errors were encountered:
Hey did you ever find if this was possible?
Sorry, something went wrong.
No branches or pull requests
I would like to know if it is possible to draw a route on the map similar to the image below:
I didn't find anything from this library saying anything about it, if anyone can help me please.
My code:
The text was updated successfully, but these errors were encountered: