7,678 questions
728
votes
16
answers
954k
views
Google Maps JS API v3 - Simple Multiple Marker Example
I've got an array of data that I want to cycle through and plot on a map. Seems fairly simple, but all the multi-marker tutorials I have found are quite complex.
Let's use the data array from Google's ...
757
votes
56
answers
1.2m
views
How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?
I am trying to make a Map app in Android Studio, on Windows. How can I find the SHA-1 fingerprint certificate number?
When I was using Eclipse it was right under Windows -> Preferences -> ...
260
votes
14
answers
919k
views
JSON to pandas DataFrame
What I am trying to do is extract elevation data from a google maps API along a path specified by latitude and longitude coordinates as follows:
from urllib2 import Request, urlopen
import json
...
61
votes
3
answers
156k
views
How can I show current location on a Google Map on Android Marshmallow?
I want google maps to show the location of the user. I tried this code, but it did not work on Android 6.
private GoogleMap map;
LocationManager lm;
LocationListener ll;
Location l;
LatLng pos;
@...
200
votes
7
answers
131k
views
Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)
I am trying to a make custom InfoWindow after a click on a marker with the new Google Maps API v2. I want it to look like in the original maps application by Google. Like this:
When I have ImageButton ...
99
votes
4
answers
107k
views
How to draw a path on a map using kml file?
Can I parse kml file in order to display paths or points in Android? Please could you help me with that?
This is kml sample code which I would like to display in android google map:
<?xml version=...
447
votes
18
answers
387k
views
Launching Google Maps Directions via an intent on Android
My app needs to show Google Maps directions from A to B, but I don't want to put the Google Maps into my application - instead, I want to launch it using an Intent. Is this possible? If yes, how?
101
votes
12
answers
217k
views
This app won't run unless you update Google Play Services (via Bazaar)
I'm testing out the new Google Maps API V2 for Android, and I'm getting this message when the app launches:
This is running on an 4.1 emulator.
Here is my AndroidManifest.xml file:
<manifest ...
144
votes
13
answers
268k
views
How to put Google Maps V2 on a Fragment using ViewPager
I am trying to do a tab layout same in Play Store. I got to display the tab layout using a fragments and viewpager from androidhive. However, I can't implement google maps v2 on it. I searched the ...
127
votes
13
answers
170k
views
Drawing a line/path on Google Maps
I've been busy for a long time finding out how to draw a line between two (GPS) points on the map in HelloMapView but with no luck.
Could anyone please tell me how to do so.
Suppose I use the ...
448
votes
32
answers
564k
views
Google Maps API v3: How to remove all markers?
In Google Maps API v2, if I wanted to remove all the map markers, I could simply do:
map.clearOverlays();
How do I do this in Google Maps API v3?
Looking at the Reference API, it's unclear to me.
263
votes
22
answers
508k
views
How to get complete address from latitude and longitude?
I want to get following values from Latitude and Longitude in android
Street Address
City / State
Zip
Complete Address
How to achieve this?
124
votes
10
answers
199k
views
How can I find the latitude and longitude from address?
I want to show the location of an address in Google Maps.
How do I get the latitude and longitude of an address using the Google Maps API?
74
votes
3
answers
72k
views
TileProvider using local tiles
I would like to use the new TileProvider functionality of the latest Android Maps API (v2) to overlay some custom tiles on the GoogleMap. However as my users will not have internet a lot of the time, ...
42
votes
10
answers
72k
views
Google map still blank on real Android device on release apk
I want to generate and use a google API key.
enabled google maps v2 API
created project with one activity with google map (default wizard in studio)
created key on google for debug project, assigned ...
83
votes
4
answers
107k
views
Draw path between two points using Google Maps Android API v2
Google changed its map API for Android and introduced API V2. The previous codes for drawing path are not working with API V2.
I have managed to draw a path with API V2. I had searched a lot for the ...
324
votes
13
answers
223k
views
How can I check whether Google Maps is fully loaded?
I’m embedding Google Maps into my web site. Once Google Maps is loaded, I need to kick off a few JavaScript processes.
Is there a way to auto-detect when Google Maps has fully loaded, including tile ...
26
votes
1
answer
41k
views
Why retrieving Google Directions for Android using KML data is not working anymore? [duplicate]
Possible Duplicate:
Google Maps output=kml broken?
I started to get Error when I'm trying to retrieve Google Directions using KML data since few days. The Error seems that the URL I'm requesting ...
97
votes
9
answers
285k
views
How do I create dynamic variable names inside a loop?
I'm working on an ajax google maps script and I need to create dynamic variable names in a for loop.
for (var i = 0; i < coords.length; ++i) {
var marker+i = "some stuff";
}
What I want to get ...
118
votes
21
answers
56k
views
Verify if a point is Land or Water in Google Maps
..and then Google-maps "divide the waters from the waters"
Well, not in the biblical sense but..
I would like to know what options I have in order to verify if a point of [Lat, Lon] is Land or Water....
100
votes
12
answers
154k
views
Google Maps v3 - limit viewable area and zoom level
is it possible to limit Google map v3 to a certain area? I want to allow displaying only some area (e.g. a country) and disallow the user to slide elsewhere. Also I want to restrict the zoom level - e....
55
votes
4
answers
113k
views
Get driving directions using Google Maps API v2
I am trying to get the driving direction between the two positions:
LatLng(12.917745600000000000,77.623788300000000000)
LatLng(12.842056800000000000,7.663096499999940000)
The code which i have tried:
...
41
votes
5
answers
70k
views
Add "Search Area" outline onto google maps result
Last year, Google added search area outlines to its offerings as reported in many places, and visible on Google maps itself. For example here, and reported here and here.
To be explicit, this is when ...
20
votes
4
answers
13k
views
Which API method provides the drawing of a city's boundaries?
Using Google Maps' API v3, how can I geocode a city name, and have a map returned with the outline of the result? usually this is a political entity with strict boundaries, like a city, municipality, ...
62
votes
5
answers
164k
views
Using Address Instead Of Longitude And Latitude With Google Maps API
I've heard that it is possible to submit an Address instead of Longitude and Latitude and this would be much more feasible for my system. The user has to input their address when creating their ...
22
votes
9
answers
63k
views
Importing google-play-service library showing a red X next to this reference android
Am trying to add google-play-service library in my project using import(For Google map). After adding the path am getting red X next to this reference and the reference is not adding . Know how to ...
20
votes
1
answer
48k
views
Google Maps API: No 'Access-Control-Allow-Origin' header is present on the requested resource
I'm trying to make an API call to the google maps api with react/axios.
This is my get request:
componentDidMount() {
axios({
method : 'get',
url : `http://maps.googleapis.com/maps/api/js?key=$...
100
votes
18
answers
151k
views
Google Maps Android API v2 Authorization failure
My steps:
got SHA1 code from debug.keystore
create app in google apis console
enabled google map api v2
input SHA1;my.package.name
get API key
created AndroidManifest file:
<...
98
votes
7
answers
136k
views
Google Maps Api v3 - find nearest markers
When i click on map, which will be best way to find nearest marker or markers? is there some functions in api that will help me to do that?
it's google map api v3.
76
votes
11
answers
83k
views
Google Maps Android API v2 - detect touch on map
I can't find an example on how to intercept the map touch on the new Google Maps API v2.
I need to know when the user touches the map in order to stop a thread (the centering of the map around my ...
63
votes
10
answers
79k
views
Google map signed api key errors in Android
When I switched from my debug map key to my signed map key my maps stop working. I get the following errors in logcat:
09-03 18:18:04.112: WARN/System.err(4073): IOException processing: 26
09-03 18:...
52
votes
4
answers
56k
views
Couldn't get connection factory client
I got this error: ERROR/MapActivity(258): Couldn't get connection factory client
Everything worked fine, it's all of a sudden, how come that happens?
I know my api key is fine, because one month I've ...
113
votes
10
answers
102k
views
GoogleService failed to initialize
I am using google Maps in my android application. I have created the key and added necessary permissions in manifest file. But soon I start the application I get this message in debugger:
...
54
votes
5
answers
146k
views
How to draw interactive Polyline on route google maps v2 android
i have the following code which is drawing polylines for me and working fine, But the problem is that its not drawing interactive polylines, drawn lines are missing some pixels !
import java.io....
81
votes
12
answers
45k
views
MapView in a Fragment (Honeycomb)
now that the final SDK is out with google apis - what is the best way to create a Fragment with a MapView? MapView needs a MapActivity to work right.
Having the Activity managing the Fragments ...
130
votes
3
answers
70k
views
How do I securely use Google API Keys
So I am using the Google Maps API on my first project that I am doing... So yes I am new and I am sorry if this is basic or obvious but I haven't been able to find a clear answer or direction. Below ...
94
votes
15
answers
218k
views
INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android
When I am trying to run an android application which uses Google API I get the following error
[2009-07-11 11:46:43 - FirstMapView] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2009-...
76
votes
15
answers
64k
views
How do I limit panning in Google maps API V3?
In V2 there was a way to limit panning/dragging so the map stays within certain bounds. How is that done in V3?
Let's say I want the users to only look at Europe. I've already limited the zoom, but ...
51
votes
6
answers
111k
views
How to cache Google map tiles for offline usage?
Like Nokia's OVI maps can be used offline, there must be some way of caching Google map tiles too. Any hints?
39
votes
4
answers
84k
views
Replace getMap with getMapAsync
I want to replace the deprecated getMap Method with getMapAsync, but I didn't use MapFragment but GoogleMap like this:
private GoogleMap googleMap;
@Override
protected void onCreate(Bundle ...
13
votes
6
answers
14k
views
Published App on Play Store can't communicate with Google Maps API and Facebook API
I created a signed APK with Android Studio, and I added to Google Developer console and Facebook console my SHA1 fingerprint and the relative api keys in my app. Everything works well if I upload my ...
321
votes
22
answers
144k
views
LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included
I have an application that uses the Google Maps Android v2 API. I've added the google-play-services_lib library project to my workspace and added a reference to it from my application project, ...
111
votes
8
answers
208k
views
How to use SVG markers in Google Maps API v3
Can I use my converted image.svg as google map icon. I was converting my png image to svg and I want to use this like google map symbol that can be rotated. I already tried to use the google map ...
48
votes
5
answers
129k
views
Google Maps API - Removing Markers
I have tried looking at a large variety of code blocks here and on the Google Maps API documentation but still have not been able to figure out how to hide markers.
This is the current code that I am ...
44
votes
1
answer
55k
views
How to make cross-domain AJAX calls to Google Maps API?
I'm trying to make a jQuery $.getJSON call to the Google Maps Geocoding webservice, but this doesn't work because of cross-domain security issues.
I haven't been able to figure it out online, but I'...
316
votes
13
answers
174k
views
Android map v2 zoom to show all the markers
I have 10 markers in the GoogleMap. I want to zoom in as much as possible and keep all markers in view? In the earlier version this can be achieved from zoomToSpan() but in v2 I have no idea how about ...
93
votes
9
answers
96k
views
getLastKnownLocation returns null
I've read some questions about this, but I didn't quite find an answer that I needed.
So, the case is that I have my map set up, and I want to grab my current gps location.
I have checked that my ...
31
votes
25
answers
48k
views
Failed to load map. Error contacting Google servers. This is probably an authentication issue
I search all days and I can't find the answer...
everything is ready but google map still can't show on fragment with tab
I check that I already turn on google map android v2 and right API_KEY
I ...
30
votes
5
answers
46k
views
How do I return a variable from Google Maps JavaScript geocoder callback?
I am working with the google maps API and whenever I return the variable to the initialize function from the codeLatLng function it claims undefined. If I print the variable from the codeLatLng it ...
88
votes
7
answers
117k
views
How do I Geocode 20 addresses without receiving an OVER_QUERY_LIMIT response?
Using the Google Geocoder v3, if I try to geocode 20 addresses, I get an OVER_QUERY_LIMIT unless I time them to be ~1 second apart, but then it takes 20 seconds before my markers are all placed.
Is ...