Questions tagged [google-maps]
Google Maps is a desktop and mobile web mapping service application and technology provided by Google, offering satellite imagery, street maps, and Street View perspectives.
81 questions
0
votes
1
answer
61
views
Choose a marker for the map based on the alerts it has
I need help to refactor this code, I think I can avoid the first two functions that filter the array. Also in the third part where I use the result of these two filters:
...
2
votes
0
answers
2k
views
Python script to scrape google maps without API
I wrote a python script to scrape google maps for my app. I really want my code to be readable and have tried to follow PEP-8 wherever I could, so I have come to you all for guidance.
It uses selenium ...
3
votes
1
answer
386
views
Make roads contrast with Google Maps
EDIT: I turned down the brightness on my monitor using the graphics options for the video card. This solved the issue. How this setting changed is a mystery...
I am leaving this up because googling it ...
2
votes
1
answer
1k
views
Avoid global variable for callback function called by function with no arguments
My website has multiple pages that use the Google Maps api. Each page uses a different part of the api (e.g. autocomplete, displaying markers etc). However, every page needs to call the initMap() ...
2
votes
1
answer
100
views
Turning on/off setInterval locating - using React.js
I work with the GoogleMaps API, using React.js.
Inside the GoogleMap component:
I have a ...
2
votes
1
answer
99
views
Google Maps marker management for games
Is there a better way to design this code? I have read that too many function parameters is a sign of poorly design code, and would love some feedback on this code.
The functions Google Maps markers ...
7
votes
4
answers
2k
views
Generate points for smooth movement between two given points
This is one of the methods in a project for generating points between two given points. We add points of route with a 25ms delay in an array and a camera on Google Maps is always at the last point. So ...
1
vote
1
answer
94
views
App sends location data to website
Explaining the idea and first steps
Today, I had the idea to do a website which displays my current position. I searched in the App Store for an App and found one named SendLocation. This App ...
0
votes
1
answer
93
views
Displaying multiple objects on map and calculating distances using google api
I am quite new to Javascript. For a school project we wrote a website that displays the user's location on a google map alongside with some objects such as vehicles or passengers.
I rewrote my code ...
2
votes
0
answers
78
views
Parsing potentially nonexistant JSON fields in JavaScript
Context: I'm currently toying with the Google Geocode API to break down address strings into a more machine-friendly format. The problem is that neither the user input or API output are 100% ...
3
votes
1
answer
2k
views
Hover on list items to change map marker styling
I'm struggling to make a React/JS map I have more efficient. Essentially, I have a list of cards, and then a map of markers. When I hover on one of the cards, it changes the styling of the marker.
...
4
votes
2
answers
190
views
Find SuburbName from latlong or location
I have create one class and interface for finding SuburbName based on Location or LatLong coordinates.
My interface
...
8
votes
2
answers
830
views
Function to find user's region based on GPS coordinates
I've made an algorithm/ function to get a user's region based on their GPS coordinates. It primarily looks for big cites and counties for the region and the state for the outer region eg. orange ...
6
votes
1
answer
893
views
Bottlenecks in asynchronous JavaScript code for Google Map
I'm working on a pothole map web app in Google Apps Script. The map gets its data from a Google spreadsheet (from manual surveying), which is then transformed via hits to the Geolocation and Google ...
2
votes
2
answers
760
views
Get JSON script code with pushing to heatmap
I have a script that makes a database call and then filters the results. After filtering it pushes it to an array and shows it on a map.
Here is my function:
...