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
171
votes
11 answers

OpenLayers vs Google Maps?

I have used Google Maps a couple of times, but what wondering about OpenLayers. Before starting any kind of coding, here are a couple of questions that come to my mind, Why would I use OpenLayers instead of Google Maps? Except for its OSS…
Pascal MARTIN
  • 395,085
  • 80
  • 655
  • 663
162
votes
6 answers

ApiNotActivatedMapError for simple html page using google-places-api

I'm trying to create a simple html page (I'd later like to add an autocomplete input there) that include google-places-api. I have an api-key (which is enabled) but I still get an error message. Here is my html-
Roy
  • 2,638
  • 3
  • 16
  • 12
159
votes
4 answers

Google Maps API - Get Coordinates of address

I would like to convert addresses into long/lat. Is there any way to do this without using JavaScript? Because in my case there is no need to display anything since the conversion is in the background.
n00b
  • 16,088
  • 21
  • 56
  • 72
159
votes
32 answers

Google Maps JavaScript API RefererNotAllowedMapError

We're trying to develop an geoplacement app for one of our clients, and we want first to test it in out own domain. We have signed for Google Maps JavaScript API, and we have a valid browser key and our domain, www.grupocamaleon.com, has been…
155
votes
32 answers

Getting "Cannot call a class as a function" in my React Project

I'm trying to add a React map component to my project but run into an error. I'm using Fullstack React's blog post as a reference. I tracked down where the error gets thrown in google_map.js line 83: function _classCallCheck(instance, Constructor) {…
Mike Fleming
  • 2,593
  • 4
  • 14
  • 24
153
votes
11 answers

How to open standard Google Map application from my application?

Once user presses button in my application, I would like to open standard Google Map application and to show particular location. How can I do it? (without using com.google.android.maps.MapView)
LA_
  • 19,823
  • 58
  • 172
  • 308
147
votes
11 answers

Twitter Bootstrap CSS affecting Google Maps

I'm using Twitter Bootstrap, and have a Google map. Images on the map, such as marker are being skewed by the CSS in Bootstrap. In the Bootstrap CSS there is: img { border: 0 none; height: auto; max-width: 100%; } When I disable the…
raklos
  • 28,027
  • 60
  • 183
  • 301
144
votes
13 answers

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 internet for hours already, but I can't find a…
Jeongbebs
  • 4,100
  • 7
  • 34
  • 60
142
votes
10 answers

Google Maps API v2: How to make markers clickable?

How to I make the markers in Android Google Maps API v2 become clickable so they will either bring up a menu with options or just start a new activity? I believe I made the markers in my app currently in a "newb" method. I didn't assign them a name…
Malaka
  • 1,581
  • 5
  • 16
  • 16
142
votes
14 answers

Remove a marker from a GoogleMap

In the new Google Maps API for Android, we can add a marker, but there is no way to (easily) remove one. My solution is to keep the markers in a map and redraw the map when I want to remove a marker, but it is not very efficient. private final…
Jonas Schmid
  • 5,360
  • 6
  • 38
  • 60
139
votes
12 answers

How to import JSON File into a TypeScript file?

I am building a map application using Angular Maps and want to import a JSON file as a list of markers defining locations. I'm hoping to use this JSON file as marker[] array inside the app.component.ts . Instead of defining a hardcoded array of…
aonepathan
  • 1,845
  • 2
  • 13
  • 15
138
votes
15 answers

How to get city name from latitude and longitude coordinates in Google Maps?

How might I obtain the city name in Google Maps if I have latitude and longitude coordinates of a town or area? I tried using the latitude, longitude and I got country but I don't know how to get city name.
UMAR-MOBITSOLUTIONS
  • 77,236
  • 95
  • 209
  • 278
137
votes
7 answers

ERROR: Google Maps API error: MissingKeyMapError

The following JavaScript error suddenly appeared: Google Maps API error: Google Maps API error: MissingKeyMapError
Muhammad Saad Ansari
  • 1,748
  • 3
  • 13
  • 20
137
votes
22 answers

Google maps API V3 - multiple markers on exact same spot

Bit stuck on this one. I am retrieving a list of geo coords via JSON and popping them onto a google map. All is working well except in the instance when I have two or more markers on the exact same spot. The API only displays 1 marker - the top…
Louzoid
  • 1,503
  • 2
  • 10
  • 9
135
votes
2 answers

How to trigger the onclick event of a marker on a Google Maps V3?

How do I trigger the onclick event of a marker on a Google Maps from outside the map? I use version 3 of the API. I've seen many tutorials for version 2, but can't find this for version 3. I have a global array (named markers) containing all the…
AlexV
  • 22,658
  • 18
  • 85
  • 122