python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
TypeError: Cannot read properties of undefined (reading 'maps')
I am trying to use the DistanceMatrixService from @react-google-maps/api. One of the required parameters is the 'travelMode'. However, when I tried setting 'travelMode' to 'DRIVING', it shows the foll...
nicole
Votes: 0
Answers: 0
TypeError: undefined is not an object (evaluating 'stateText.length')
I am using react-native-google-places-autocomplete for a filter menu on a project. While I am inputting text into the <GooglePlacesAutocomplete/> object I want to track the text input with a sta...
Edward Silva
Votes: 0
Answers: 0
How to add custom ico or SVG as marker icon in @react-google-maps/api
I am using @react-google-maps/api to show Google Map in my React Web application. Following their documentation I have added the marker as follows.
<Marker
onLoad={onLoad}
...
Lenzman
Votes: 0
Answers: 2
React Google Map Fitbounds not a function error
Whenever I use map.fitbound I get a Uncaught TypeError: map.fitBounds is not a function.
The important code snippet:
var bounds = new google.maps.LatLngBounds();
const map = useRef(null);
const getMa...
Lucy Gu
Votes: 0
Answers: 1