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. Also supported are maps embedded on third-party websites via the Google Maps API, and a locator for urban businesses and other organizations in numerous countries around the world.

Google Maps is a web, mobile and standalone mapping service application and technology provided by Google LLC, that powers many map-based services, including the Google Maps website, Google Transit and maps embedded on third-party websites and mobile applications through their various APIs.

API keys

In order to use the various Google Maps APIs, you need an API key or digital signature, to validate your requests. Here are the instructions on how to get an API key.

Billing

In addition to an API key, you will need to setup a billing account and each service will be billed according to the Google Maps Platform Billing documentation.

Administration

Administration of API keys, credentials, billing accounts, etc. is done via the Google Developers Console.

Related services & tags

Links

65879 questions
93
votes
15 answers

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-07-11 11:46:43 - FirstMapView] Please check logcat…
Brijesh Patel
  • 2,901
  • 15
  • 50
  • 73
92
votes
8 answers

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 is: marker0, marker1, marker2 and so on. and I…
Philipp Bergmann
  • 973
  • 1
  • 9
  • 11
92
votes
3 answers

Google Maps SDK Error started popping on last hour

:com.google.android.gms.dynamite_mapsdynamite@201216046@20.12.16 (040306-0) line 9 com.google.maps.api.android.lib6.gmm6.vector.ct. This error started happening on random devices. Does anyone have the same issue? I didn't release anything,…
Rafael Silva
  • 656
  • 5
  • 10
91
votes
9 answers

Google Maps v3: Enforcing min. zoom level when using fitBounds

I'm drawing a series of markers on a map (using v3 of the maps api). In v2, I had the following code: bounds = new GLatLngBounds(); ... loop thru and put markers on map ... bounds.extend(point); ... end looping …
chris
  • 36,094
  • 53
  • 157
  • 237
91
votes
6 answers

Add marker to Google Map on Click

I'm struggling to find a very simple example of how to add a marker(s) to a Google Map when a user left clicks on the map.
Andre R.
  • 2,769
  • 2
  • 17
  • 17
90
votes
7 answers

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 there any other way to do it, other than storing…
Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132
90
votes
12 answers

Have just one InfoWindow open in Google Maps API v3

I need to have only one InfoWindow open on my Google Map. I need to close all other InfoWindows before I open a new one. Can someone show me how to do this?
leo
  • 3,045
  • 5
  • 24
  • 23
88
votes
2 answers

Url to a google maps page to show a pin given a latitude / longitude?

Is there some url I can construct with a latitude,longitude pair that will lead me directly to a google maps page to visualize that location? For example, the following pseudocode: var lat = 43.23; var lng = 114.08; var url =…
user291701
  • 38,411
  • 72
  • 187
  • 285
87
votes
5 answers

Adding ID's to google map markers

I have a script that loops and adds markers one at a time. I am trying to get the current marker to have an info window and and only have 5 markers on a map at a time (4 without info windows and 1 with) How would I add an id to each marker so that I…
Nick
  • 1,093
  • 1
  • 9
  • 7
85
votes
4 answers

Google maps API V3 method fitBounds()

I have this code that renders a map. function initialize() { var myOptions = { center: new google.maps.LatLng(45.4555729, 9.169236), zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP, panControl: true, mapTypeControl:…
maxdangelo
  • 3,063
  • 5
  • 21
  • 25
84
votes
13 answers

Alternatives to google maps api

Google maps API is great for developing location based services for mobile phones. But for some reason, the use of it is restricted for me in a special project. E.g. if your project is in conflict with the general terms and conditions of google it…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
84
votes
6 answers

Google Maps Api v3 - getBounds is undefined

I'm switching from v2 to v3 google maps api and got a problem with gMap.getBounds() function. I need to get the bounds of my map after its initialization. Here is my javascript code: var gMap; $(document).ready( function() { var…
DolceVita
  • 2,090
  • 1
  • 23
  • 35
83
votes
6 answers

Using setZoom() after using fitBounds() with Google Maps API V3

I'm using fitBounds() to set the zoom level on my map too include all the markers currently displayed. However, when I have only one marker visible, the zoom level is 100% (... which zoom level 20 I think...). However, I don't want it to be that far…
83
votes
34 answers

Google Maps API v3: InfoWindow not sizing correctly

It appears my InfoWindow, when you click on the home icon on my Google Maps v3, is not properly auto-sizing to the content of the InfoWindow. It gives scrollbars when it should not. The InfoWindow should be properly auto-sizing. Any ideas on…
JacobT
  • 3,021
  • 4
  • 22
  • 12
83
votes
4 answers

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 solution but did not find any answer. So I am…