Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
163 views

I’m using the Google Maps JavaScript API with a lot of SVG markers clustered using MarkerClusterer. When I zoom in and out, the map feels laggy and the zoom animation isn’t smooth — it stutters or ...
arisa nurfarina's user avatar
0 votes
2 answers
260 views

I have dependencies "dependencies": { "@react-google-maps/api": "^2.20.7", "next": "15.4.1", "react": "19.1.0", &...
Mark Conway's user avatar
0 votes
2 answers
2k views

I got to know that Google is deprecating it's old places api and replacing with the new one's. In our application, we use Maps Javascript api with the library=places param, The following way: https://...
Sam76's user avatar
  • 9
3 votes
4 answers
1k views

I'm trying to create a React component for a text input field using the Google Maps API autocomplete feature. This is the code I have so far: "use client" import React, { useRef } ...
kokeshidynamo's user avatar
0 votes
0 answers
140 views

So I'm following this example by visgl from this PR: https://github.com/visgl/react-google-maps/blob/1a0ac6e13d15ceda5212d310ffc2370ffdd90e65/examples/deckgl-overlay/src/app.tsx I even am using the ...
Owenn's user avatar
  • 1,220
0 votes
0 answers
80 views

Using maps.google.com, if I hover over a POI (point of interest), the cursor changes to indicate a clickable item, the text changes color, and a pop-up is shown. For instance, consider the case of me ...
anony mous's user avatar
8 votes
2 answers
440 views

I'm using the @react-google-maps/api library to render a Google Map in my React app. The map displays markers for couriers and shows directions for selected couriers. I also want to include a ...
CreazyBoyxD's user avatar
0 votes
1 answer
254 views

I am currently trying to make a map using the React Google Maps. Currently, I can plot the markers just fine but when I go to change them or remove them I run into problems where it only renders a ...
Nicholas Mirabile's user avatar
1 vote
0 answers
48 views

I am trying to integrate google map with DirectionsService. I have drawn multiple routes on the maps. But i have to remove particular route from the map on the button click. How its possible? I tried ...
Lineesh Mb's user avatar
4 votes
2 answers
835 views

I'm working on a proximity app. The database contains longitude, latitude and a geohash of each item. The client supplies GPS coordinates to the server. The server then converts those coordinates to a ...
Sebastian Meckovski's user avatar
0 votes
0 answers
171 views

In React, I have an issue using autocomplete from the google maps api where selecting a location via up/down arrow keys in the dropdown menu followed by enter does not seem to select the location. ...
Soup's user avatar
  • 45
0 votes
0 answers
67 views

I am having trouble while rendering multiple markers on the google map through the map function. One marker should render based on 'source' state and one should render based on destination state. When ...
Ishfat Abrar Islam's user avatar
1 vote
2 answers
108 views

I am trying to style my map that i hace implemented in my application. The map is working fine, but when i tried to put a style on it, it produces an error. These are the lines that are relevant to ...
Marc Exposito Francisco's user avatar
1 vote
1 answer
333 views

I'm working on setting up a tracking system so customers can see where their deliveries are in real-time. I managed to setup for marker destination and pickup location along with route path toward it. ...
Naing Lin Aung's user avatar
1 vote
1 answer
236 views

I'm trying to display an OverlayViewF from @react-google-maps/api in my map but it doesn't let me click on the div inside of it. I am using OverlayViewF instead of OverlayView to avoid the jittery-...
Seamar's user avatar
  • 11
3 votes
1 answer
3k views

I have been running @react-google-maps/api for a project number of years. Since 21st February 2024 I have been getting a deprecation warning: As of February 21st, 2024, google.maps.Marker is ...
xyz83242's user avatar
  • 846
0 votes
0 answers
154 views

So I have built a web app with Next.js and I have used from @react-google-maps/api. Everything is working on my localhost, but now when I deployed it on Vercel I get an error that my key is invalid. I ...
Ant1ne's user avatar
  • 15
-1 votes
1 answer
118 views

const express = require('express'); const app = express(); const { Client } = require('@googlemaps/google-maps-services-js'); const googleMapsClient = new Client({apiKey:"myGoogleApiKey"}); ...
Ashfaq Farleen's user avatar
1 vote
1 answer
958 views

When you click on a location inside the map using the Google Maps API it displays an info window with the name, address, and link to view it on Google Maps. Is there a way to override this event and ...
Lehi's user avatar
  • 27
0 votes
1 answer
147 views

I am using @react-google-maps/api to use google-maps in my react.js application, and I am using its different components. Now, I want to draw a polygon in Google DrawingManager using predefined ...
Khan Naxim's user avatar
1 vote
1 answer
393 views

I am using the package react-google-maps/api and want to change the heading of the maps. Any suggestions as to how it would be possible to do so? I have tried to add the heading in the <GoogleMap/&...
Rangel Koli's user avatar
1 vote
0 answers
134 views

I am a newbie on this. I'm following tutorials and instructions as much as I can, and I get not results. The problem may not be in code (I think), but on what happens of the google maps API side. I ...
David J.'s user avatar
0 votes
0 answers
197 views

I have a website for rendering maps from the @react-google-maps/api library. Everything works fine but when I make the network so slow or if your chrome version is too low like around 80.xxxx it shows ...
barisdevjs's user avatar
0 votes
1 answer
994 views

I have created a project that should display Google Map, but I constantly get a maps displayed with watermark and a warning in a console: Google Maps JavaScript API warning: NoApiKeys https://...
Orwellian's user avatar
0 votes
1 answer
2k views

I'm trying to use the @react-google-maps/api library to render a Google map on a react component and draw a polyline on the map, however, the polyline data that comes from the backend is encoded like ...
Ruby's user avatar
  • 3,086
-1 votes
1 answer
68 views

Hello i am using the react-google-maps/api library and i want to map some coordinates in my Google Map using the Polygon component. So far i have manage to map Polygons in my map with holes like this: ...
The_elevator's user avatar
0 votes
1 answer
2k views

I'm going to use @react-google-maps/[email protected] and I got the following error and I have no idea how to fix it. Please help me. My code : import React, { useState, useEffect } from "react"; ...
Iman Rh's user avatar
0 votes
1 answer
134 views

Hi I am pretty new to Google maps and trying one of the @react-google-maps/api library. When I am using my custom element, it is not shown on the map. I don't see any obvious errors. Any ideas why it ...
julia gui's user avatar
3 votes
1 answer
417 views

Consider: When I click on the marker, it shows two tooltips/dialog. I am using "@react-google-maps/api": "^2.19.2" in Next.js TypeScript. I am trying to show the tooltip when I ...
Ahsaan shuja's user avatar
0 votes
1 answer
167 views

I try to find a way to adjust markers popup window position based on following condition: if popup is near map containers edge. Reason: right now popup is being hidden under container if marker (and ...
mortvicious's user avatar
11 votes
1 answer
5k views

when I tried to access the documentation , giving below error 404 not found I cleared all my cache still giving same error. There no other documentation avaialable. https://react-google-maps-api-docs....
krish patil's user avatar
0 votes
1 answer
135 views

I am trying to display a simple Circle on the map using the Circle prop. It works perfectly fine on one computer using chrome however it will not display on the map when on another computer using the ...
Estevan's user avatar
-1 votes
1 answer
345 views

Hello i have a google map in react and i think that the options parameter in GoogleMap is render every time. I have this code <GoogleMap ref={this.myRef} mapContainerStyle={{...
The_elevator's user avatar
1 vote
2 answers
491 views

I am using react-google-charts library for my personal project and found there is a way to display markers on the map. <Chart width={"200%"} height={"100%"}...
Chrismono Himawan's user avatar
0 votes
1 answer
123 views

I have a website which tracks devices on a map. For that I use Google Map react api. My problem is that the Map component gets rerendered too many times for no reason, even when its props don't change....
Bence Hargitai's user avatar
0 votes
1 answer
718 views

I have used from @react-google-maps/api. Everything was working on my localhost, but now when I deployed it on Vercel I get an error that my key is invalid. I have already put the key in Environment ...
zorz's user avatar
  • 21
1 vote
1 answer
581 views

The main idea is im showing several routes on a map, for each route i render a <DirectionsRenderer component. however, when i try to remove a DirectionsRenderer it doesn't actually remove it from ...
Adri's user avatar
  • 172
0 votes
1 answer
674 views

In this code sandbox, I have some markers with InfoBox nested in the marker that is shown on click. How can I also show that InfoBox when switching into the StreetView mode? // The imports import { ...
Amir-Mousavi's user avatar
  • 4,653
2 votes
1 answer
976 views

In this code sample, I want to show the distance attribute on top of the PolyLine with an offset of 45% (almost next to the arrow). But I was not successful in achieving that. <GoogleMap id=...
Amir-Mousavi's user avatar
  • 4,653
-1 votes
1 answer
339 views

I'm using React Google Maps API, and every time that I run this function, when drag end a marker it throws the exception Cannot read properties of null (reading 'toString') if I try to run the ...
JHOSEF NASCIMENTO's user avatar
0 votes
0 answers
347 views

I am using react-google-maps-api. Before that approach I tried to use a state to change center but google maps didn't see the initial state. Then I found this approach below on github. const [map, ...
mertk's user avatar
  • 78
0 votes
1 answer
717 views

I'm having trouble showing markers on my app. I am trying to show markers using @react-google-maps/api for each property that a user owns. The map is rendering but markers are not appearing on the map ...
sbasken's user avatar
1 vote
1 answer
487 views

I have used the @react-google-maps/api library to add a google map and show some custom marker icons on the google map. I have followed the documentation found in here. And added a marker. I have ...
Cham's user avatar
  • 867
1 vote
0 answers
114 views

With react google maps api I am trying to do open info window when user mouse over a marker. When I hover single marker every info window opens. ` const [showMarker, setShowMarker] = useState(true); ...
mertk's user avatar
  • 78
0 votes
1 answer
911 views

I would like that when clicked on a table, the icon on the map would be updated to another color. But the same does not happen. I don't know how to "refresh" the icon import { GoogleMap, ...
Cristian Melo's user avatar
0 votes
2 answers
2k views

Does anyone use useGoogleMap() inside NEXT JS component? It gives Unhandled Runtime Error Invariant Violation: useGoogleMap needs a GoogleMap available up in the tree error. I just need to refer to ...
sam's user avatar
  • 65
0 votes
1 answer
1k views

I am using @react-google-maps/api with react js I’ve a problem on production with useLoadScript hook, isLoaded returning false with the following error Refused to load the script 'https://maps....
Muhammad Owais's user avatar
1 vote
0 answers
873 views

I am building a react google map to render property listings and everything is visually fine My CustomOverlay component is made to replace default markers and renders accordingly, but doesn't enable ...
Paul Wilson's user avatar
1 vote
1 answer
192 views

I'm trying to use MarkerClustererF from @react-google-maps/api to cluster markers. My render looks like this: <MarkerClustererF> {(cluster) => ( <> {...
duplxey's user avatar
  • 320
2 votes
2 answers
3k views

I have a simple piece of code here where I display a google map using @react-google-maps/api. I am attempting to display a "Marker" and an "OverlayView" in the center of the map at ...
Oliver Watkins's user avatar