Questions tagged [react-google-maps]

Questions regarding Reactjs component for google maps by tomchentw.

Questions regarding Reactjs component for google maps by tomchentw. https://github.com/tomchentw/react-google-maps.

462 questions
-2
votes
1 answer

Centralize google map issue

import React, { useState } from "react"; import GoogleMapReact from "google-map-react"; function GMap() { const [latLgn, setLatLgn] = useState([{ lng: 24.7536, lat: 59.437 }, { lng: 24.7303, lat: 59.4393 …
Kim-Jun-Un
  • 83
  • 2
  • 11
-2
votes
1 answer

How to add and edit polygon in react google map for each zone

I am working in react js. I need to implement map using react-google-map with given features. On clicking "Zone" (say Zone 1 ) button map corresponding to zone should displayed ( Eg if you click zone 1 dispay map of zone and so on). Each zone there…
Happy bean
  • 89
  • 2
  • 16
-2
votes
1 answer

How to set start point in react-google-maps

I am working on an application I am usingreact-google-maps where I've integrated multiple stop functionality in my application. Now I want to set its starting point like, For example, I want to draw multiple stops from its starting point and it must…
-2
votes
1 answer

@react-google-maps/api's Autocomplete is giving me "This page cant load Google maps correctly"

I am using https://www.npmjs.com/package/@react-google-maps/api to render googlemaps and I am trying to get the Autocomplete to work. https://react-google-maps-api-docs.netlify.app/#autocomplete When I try to search for a location I get "This page…
-2
votes
1 answer

Google Maps markers not visible on deployed version but are available on local run version

I'm using react-google-maps for my app. The map and markers work when running locally. However in my deployed version on Vercel, the map is there- but not the markers. The way I'm defining the markers is through a mapping similar…
-2
votes
1 answer

Unwanted page refresh with react-google-maps

As the title says, i'm getting an unwanted page refresh whenever i move the draggable marker. I'd like to set map to pan to the new marker position every time but will settle for solving the page refresh problem at the moment. I've added snippets…
Chris Bell
  • 33
  • 1
  • 6
-2
votes
1 answer

Why do I have to do a fitBounds twice before fitBounds works with @react-google-maps/api

I have a basic React Maps POC that shows Pins of users on the map, I use React Hooks to set those users and locations on load and everything works well, when I inject a new user Inject User button to the state and then do a fitBounds, the map…
-2
votes
1 answer

why markers are not plotted in map using react?

I am using this map to plot my points https://www.npmjs.com/package/react-google-maps I am not able to show plot points here is my code https://codesandbox.io/s/confident-wozniak-kq9uu
user944513
  • 12,247
  • 49
  • 168
  • 318
-2
votes
1 answer

Best place to fetch data react google maps

I want to fetch Data and display in on react-google-maps https://tomchentw.github.io/react-google-maps/#googlemap The thing is that in order to fetch data, I need the maps bound as a query and I only get map bounds on onIdle onIdle = () => { …
coinhndp
  • 2,281
  • 9
  • 33
  • 64
-2
votes
1 answer

react-google-maps location pin is stuck at wrong place

I have a react-google-maps instance in my application which draws multiple location icons on google map. When there are more than one icons, sometimes, one icon, which have different location, gets stuck on another icon. The new icon is not…
-3
votes
1 answer

Custom Popups with react-google-maps

Custom Popups with react-google-maps Someone know how to add custom Popups with react-google-maps? I want to achieve something like in a track from google: https://developers.google.com/maps/documentation/javascript/examples/overlay-popup. I tried…
-3
votes
2 answers

A toggle button on and off for markers in google maps react

I want to create button that removes all markers for the google maps react, i already have it working for the heatmap but it does not let me do the same strategy for the markers ? is it because the mapping that is being done ? than you i already set…
1 2 3
30
31