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...
This what i want, each marker to be sharing the same position as the lat and lng as the heatmap, the markers are working perfectly Im having problems sending data towards my heatmap, it seems like The heatmap from google receives and latitude and lon...
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 created the Google Maps using tomchentw react-google-maps. The marker icon by default displays red marker icon, but whenever user clicks the marker icon it should change into grey marker icon and also increases the marker icon size. How can I chang...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.