Questions tagged [google-maps]
24555 questions
0
votes
0
answer
16
Views
Xamarin - Google Maps keep “showing” Malls
We are using a stylization with the minimum of items to render (without markers, houses, rivers, etc ...) but somehow we can not disable the rendering of Malls.
The rendering in the browser works perfectly (does not display the malls):
But when we load the JSON in the Device the malls keep appearing...
1
votes
1
answer
3.4k
Views
How to check if Google maps API key is integrated
Question:- Is there any way to check that whether google maps has been integrated with correct api key?
Description:- I am using Google maps in my project which was not developed from scratch by me. The project has also used async loading of maps using requirejs as well. But I am not sure whether th...
1
votes
2
answer
4.7k
Views
Check axios request url before sending
API requests are failing because the URL generated by Axios is incorrect due to my config. I know what the request url is suppose to look like, so I want to see the request url Axios generates.
I can point Axios to my local server and see the requests there, but I want to debug this on the client. I...
1
votes
2
answer
558
Views
Proper use of ARIA role for Google Maps [duplicate]
This question already has an answer here:
What is a suitable WAI-ARIA role attribute for a map element
2 answers
Which proper ARIA role should I use for Google Maps application?
1
votes
1
answer
286
Views
Google Maps autocomplete suggestions not appearing
I'm trying to create an autocomplete for Google Maps in HTML and JavaScript,
and I'm using a Bootstrap modal.
But it doesn't show the suggestions. This is my code:
Hello, world!
Abrir mapa
Modal title
×
Close
Save changes
function init() {
var map = new google.maps.Map(document.getElementByI...
1
votes
1
answer
695
Views
Get coordinates of current location in angular
I created the following function in a service, to get the coordinates of the current location and store them in 2 variables:
getCurrentLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(position => {
this.currLat = position.coords.latitude;
this.currLng = position.coo...
1
votes
2
answer
25
Views
Google Maps Heatmap works only when the heatmap data is hardcoded and not when it is generated using a for loop
I am trying to plot a heatmap on Google Maps using the API. On using a hardcoded array of LatLng objects, the rendering works. However, if I then try to remove the hardcoded array and generate the array using a for loop, the rendering fails.
console.log for the 2 array variables give me the same obj...
0
votes
0
answer
7
Views
google maps find_place() positional arguments problem
i need to use the googlemaps/google-maps-services-python for a project, and there is the problem :
i want to use find_place():
def find_place(client, input, input_type, fields=None, location_bias=None,
language=None):
but when i launch my script :
import googlemaps
from datetime import datetime
cl...
0
votes
1
answer
15
Views
Geocode returning wrong lat/long
I am using this code to geocode this address to get the lat and long, but it is returning the wrong coordinates.
import requests
address = '50 Bega St, Tathra NSW 2550, Australia'
response = requests.get('https://maps.googleapis.com/maps/api/geocode/json?address= address &key= ****')
resp_json_payl...
0
votes
0
answer
4
Views
Looking for distance history using google API (or other)
I've been searching and i thought i could ask you directly in here.
I'm looking for an API (maybe Google) that does the same work as Google fit history API as of recording every distance you made and the transportation mode. It is not necessary for me to get the exact latitude or longitude by at le...
1
votes
2
answer
1.2k
Views
google earth vs. google map api: For a specific environment
I am about to start a new project which will be used about 80% through non-mobile devices like desktops and laptops and 20% through mobile devices. And yes, I want to use KML capabilities too, use JQuery for all my JS work and do not want users to download any plugin separately.
I have implemented...
0
votes
0
answer
2
Views
Google heat map not showing in Xcode
I am trying to call data from firebase using google heatmaps. for some reason my simulator is just showing a white screen for the google map
I am trying to implement googleHeatmaps that calls data from a database and store onto the MapView as a heatmap.
import UIKit
import GoogleMaps
import Google...
0
votes
0
answer
4
Views
How to get POINT OF VIEW of specific Place using Google Maps
I want to use Google Places Autocomplete - Per Session, with Place Details included, and when an user clicks on an item, display a Google Map StreetView with the Place.
The way I was trying to do was: when a user clicks on an autocomplete-list, I use getPlace() function for getting geometry.coordina...
0
votes
0
answer
6
Views
Show location of coordinates on google maps using Python
I wrote a code for data science and I got some coordinates that I want to plot on google maps. These are the coordinates, and all of these coordinates are in capitol city of Serbia called Belgrade.
X Y
20.657460 44.490140
20.510760 44.652443
20.510540 44.884460
20.471758 44.788613
20.35...
1
votes
2
answer
6.5k
Views
How can I format the label of a google maps marker
I've been looking all over to find out how to format the text on a custom marker in google maps. I have found some stuff but they all use at least one external js file which I would like to avoid. I read the API documentation on google's site (see link and look under Marker Labels) and it says tha...
1
votes
2
answer
344
Views
Add place via Google Place API WEB Service with opening hours
Is it possible to add new place with opening hours via Google Places API Web Service?
I can't find any information about it.
https://developers.google.com/places/web-service/add-place
Thank you in advance
1
votes
1
answer
1.6k
Views
How to set style of a data layer feature label in Google maps api?
I've got this working js code:
var p;
p = new google.maps.Data();
p.loadGeoJson('http://mysource.example.com');
p.setStyle( function(feature){
var icon = feature.getProperty('icon');
var title = feature.getProperty('title');
return {
icon: icon,
label: title
}
});
p.setMap(map);
The code generate...
0
votes
0
answer
3
Views
How to set Custom Infowindow to google marker in different category
I am new in Swift and my english is not very well
My question is I have two case to show different Google Marker like this
extension ViewController: DropDownButtonDelegate {
func titleDidChange(_ newTitle: String) {
let realm = try! Realm()
switch newTitle {
case 'A':
mapView.clear()
let Adat...
1
votes
1
answer
1.1k
Views
How to get estimated travel time and distance in flutter
I'm trying to get estimated time and distance between users current location and predefined destination, and I cannot find a way to do this. I know that flutter now has map plugin - flutter maps but I do not need to display map, just to use map api to calculate estimated travel time and distance. So...
1
votes
2
answer
1.3k
Views
Flutter: How to add marker to Google Maps with new Marker API?
mapController.addMarker(
MarkerOptions(
position: LatLng(37.4219999, -122.0862462),
),
);
I've seen this code snippet in a blog post, and I'm trying to add markers to Google Maps.
The method 'addMarker' isn't defined for the class 'GoogleMapController'.
I think the library has changed and I want to...
1
votes
1
answer
114
Views
GMSAutocompleteViewController showing only 5 results
I integrated GMSAutocompleteViewController in my app.
let autocompleteController = GMSAutocompleteViewController()
autocompleteController.delegate = self
let filter = GMSAutocompleteFilter()
filter.type = .address
autocompleteController.autocompleteFilter = filter
// Display the autocomplete view c...
1
votes
1
answer
151
Views
finding distance of a Autocomplete resulted location from current location IOS
I m working on application like Uber and Careem. When user searches for a location using Google Places Autocomplete API, I want to show the distance as well along with the name of the autocomplete resulted place like Uber and Careem does this.
Plz have a look on this image for further clarification
1
votes
1
answer
77
Views
Google Maps Screen Control
I am using google maps on my project. I want to put arrow to screen if marker not showing on the screen. How can I control screen?
1
votes
1
answer
303
Views
Fetch data using volley and display in Google Maps
This is my first time working with Google Maps in android. I was able to create a map displaying one marker. That was a good start for me. However, I would like to display multiple markers. To do these, I am fetching the locations from the database using volley. However, I am experiencing one proble...
1
votes
1
answer
34
Views
Ionic 3 Google Map flickers during view transition
I'm using Ionic 3, and working on iPhones (all versions), and when my view transitions to a view with a Google Map in it, for a second the map flickers and I can still see in the background the previous view. Does anyone know how to fix it?
1
votes
1
answer
24
Views
google maps no gestures working
I have created a Map Fragment that looks like the following :
public class MapsFragment extends Fragment implements OnMapReadyCallback {
private GoogleMap mMap;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {...
1
votes
1
answer
246
Views
Webview loading only first time
I have a activty which has viewpager and a button . Onclick of button moving to the OutletMapWebView activity with respective needed parameter(viewpager data) ,Below is the code of
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activ...
1
votes
1
answer
26
Views
Google UIAutocompleteResultController for ios
I want to add pre-defined text on in the result controller, is there any way that it is possible?
1
votes
1
answer
104
Views
google map- zoom to my location
I always struggle a lot with google maps library on Android. My code to zoom to location is really simple:
Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));
if (location != null)
googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new L...
1
votes
1
answer
148
Views
Redraw direction paths in didUpdateLocations
I want to redraw my direction path and move my marker to the current location. I am currently doing this inside didUpdateLocations function but it gets glitchy because it draws multiple markers and path at the same time.
Here is my code:
let location = locations.last
let destination = CLLocation(la...
1
votes
0
answer
200
Views
Ionic 2 component use a variable in a function
I'm developing a map with google maps for multiple markers. My first step is to display one marker. The marker is also displayed in the center of the map. Now I would like to display the shop name in the marker info box. I get the list of the vendors from my woocommerce api, but I have trouble displ...
1
votes
0
answer
102
Views
Google Maps Javascript Reload in Modal
I've got a problem that I've run into before, but I must not be handling it right this time around.
I've got a modal (code below) in my laravel project, when it opens, everything is fine except that the google map is off slightly and it hasn't rendered the underlay.
My modal:
×
Scan Documents
@incl...
1
votes
0
answer
50
Views
Set parent width based on its children
I am using the Google Maps API to display things on a Map as they are added to the apps DB. I am using 'google-map-react': '^0.25.0' to interact with the Google Maps API. And I am using React to render the map elements.
import React, { Component } from 'react'
import './renderMap.css'
export def...
1
votes
1
answer
197
Views
iOS GoogleMaps StreetView URL Scheme with Heading and Pitch
Is there any way to open google maps app in streetview mode with desired heading and pitch?
There is example in Google Maps URL Scheme for iOS Documentation with latitude, longitude and zoom, but there is nothing written about pitch and heading. It does not works when i try to embed parameters in UR...
0
votes
1
answer
200
Views
unable to get administrative_level_1 information for border areas in india
Using the google geocode API I am unable to get administrative_level_1(state) information for location on border of India (Kashmir, Arunachal Pradesh, ...). Can anyone help me with this?
1
votes
1
answer
524
Views
Is it possible to find road type using google API?
In my application need to find road type ie National Highway,By Pass Road using specific co-ordinates(13.094119, 80.198606).
I tried Google Place service and Geo-coding to find particular co-ordinates location details but many times it can't help me find out road type.
https://developers.google.com...
1
votes
1
answer
1.1k
Views
Android App key restriction is not working for Google Places API Web Service [duplicate]
This question already has an answer here:
Why Google places API key not works?
1 answer
I have provided package name ( app id ) and sha1 certificate fingerprint for app, but still Android App key restriction is not working for Google Places API Web Service
Looks like Android App key restriction no...
1
votes
0
answer
74
Views
D3 Map projection scale level corresponding to Zoom level in Google Maps
Is there any corresponding projection.scale() values in d3 respective to the zoom levels in google map.I think there is 20 levels of zoom in google maps.
Currently I am providng zoom to my d3 Map as below,
projection.scale(zoomLevel);
To match the exact zoom level of google map I need the 'zoomLevel...
1
votes
0
answer
95
Views
How to handle event on Search button on keyboard which comes when we use PlaceAutocompleteFragment
PlaceAutocompleteFragment implementation is working fine, as it should work. On Click on PlaceAutocompleteFragment, I am able to search places.
PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment)
getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment);
autoco...
1
votes
0
answer
33
Views
Localbroadcastmanager not working. Getting latitude and longitude
My app is about getting location in background service. However, it cannot return latitude and longitude. Here is the code.
Service side:
public class Map extends Service implements
GoogleApiClient.ConnectionCallbacks,
GoogleApiClient.OnConnectionFailedListener,
LocationListener {
private static fi...