Skip to content
Advertisement

Tag: google-maps-api-3

Same array inside of useEffect and getCoordinates is different when console.log

Using GoogleMap API to display custom locations I have an array of json object called data imported; it has a property called address. Google map api looks up coordinates of the address property and should generates custom Markers from an array called locations. But the value of locations inside fetchLocations() and getCoordinates, are different when I console.log, although the both

Google Maps Filter Javascript

Looking for a way to filter the map markers using pure javascript based upon multiple conditions if they exist. This is based upon having potentially 4 potential filters possible. So imagine I have two or more field sets Project Type (this will be an array of project types [‘engineering’,’construction’]) Region (this will be an array of regions [‘France’,’Italy’]) Name (this

Google Places Autocomplete API – Abbreviate Cardinal Direction on input

I’m using Google Places Autocomplete for looking up addresses, and I want users to be able to type abbreviations for the cardinal directions in their street addresses. For example, my users have to type “north” out completely (eg 123 “north” willow lane), instead of just “n” (eg 123 “n” willow lane). Users try to type “n” “s” “e” “w” most

Advertisement