I'm new to React and currently trying to learn how to use react-google-maps library. Tried to show a map with users geolocation as the initialCenter of the map.  This is my code:  import React from "react"; import { GoogleApiWrapper, Map...
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...
I'm struggling to find a very simple example of how to add a marker(s) to a Google Map when a user left clicks on the map using React-google-maps in components based. Need help.  const Map = withScriptjs(withGoogleMap((props) =>   <GoogleMa...
I have a pretty simple react application using https://github.com/tomchentw/react-google-maps but I'm having difficulty understanding how to get a reference to my current map or how to access the google.maps.Map object in a custom component.  I f...
I am using react-google-maps along with location-autocomplete in a react app.  On page load, I receive the infamous:      "You have included the Google Maps API multiple times on this page.   This may cause unexpected errors."   To repeat, I...
I am new to React. I am trying to display few locations over Google Maps using google-map-react.  I am using the below source for it.  import React, { Component } from 'react'; import GoogleMapReact from 'google-map-react';  const Any...
I am getting an error when trying to run a top level defined react-google-maps component. (0 , _reactGoogleMaps.withProps) is not a function  Here is my code (codesandbox):  import * as React from 'react' import {   withScriptjs,   withGoogle...
I am using react-google-maps to display a marker from lat/long data.  This works fine but the entire component is rendering every time the marker data is updated.  Is there a way to only update the marker? My code is below.  The data comes in fast so...
I am trying to reload Google Maps with the new inputted location, but it is not reloading. The correct value of lat and lng is being passed back from the SearchBar component and the state is updating correctly. I am new to react-google-maps, so I am...
I have implemented react-google-maps with the <Drawing Manager />.  Not sure how to use the object it returns from onPolylineComplete though. Doesn't seem to be documented either. I want to check some other locations appear in the area - so...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.