Skip to content
Advertisement

Tag: google-maps

React get value from a class

I have a component where i get the distance from one point to another, with Google Maps (DirectionsRenderer). What i want, is to use this data in a h1 This is my return EDIT: ShowProduct.js (This is where i get the distance) ProductCard.js (This is where want to use it) Answer You need to set up a state using useState

Javascript – Google map not displaying

I am trying to create a page that shows google map and allows users to draw lines on the map and save them.. but when I try to run the page, the map doesn’t show up at all. What am I doing wrong? the page is literally blank with the form at the end. I was having a look online

google-maps-react – Specific Pins not Showing up until Click

SparkNotes: I’m pulling in a crime API to see hotspots. Certain crimes will not be logged with a lat/long, therefore, are not shown up in standard (free) crime apps. Lat/Long pins I’ve overridden to a new lat/long don’t show up on first load/or at all. (google-maps-react) (Confirmed lat/long is valid per crimes in near areas.) Normal pins that had an

Advertisement