Google Maps API Parameters

I'm sure this is an obvious mistake, but does anyone know why this code isn't working? Am I using the python requests library incorrectly? import requests header = {'Content-Type ': 'application/json'} body = { "api_key": REDACTED, "size": "20...
more »

2017-01-06 23:01 (1) Answers

Adding Marker to Google Maps in google-map-react

I am using the google-map-react NPM package to create a Google Map and several markers. Question: How can we add the default Google Maps markers to the map? From this Github issue, it seems that we need to access the internal Google Maps API using ...
more »

2016-12-31 05:12 (1) Answers

How do 3rd party APIs prevent API Quote theft?

I am writing an app that uses a 3rd party API service (say Google Maps, segment-analytics etc...). All these apps give an API key that is supposed to be embedded in the JS code. So anyone who can inspect the source knows the client key. How do these...
more »

2016-12-20 02:12 (1) Answers

Prevent Google maps cache in android webview

I am loading google maps in my WebView using a local html file (assets folder). The map has a kml overlay. The problem I'm facing is that when the kml file is updated, the respective changes are not being reflected in my WebView. I also tried removin...
more »

2016-12-18 05:12 (0) Answers

Googlemap does not get rendered in React

I'm currently working on a project using React and Google Map but my google map is not getting rendered. I'm using google-maps-react library and it says 'Loading map...' but it does not go any further than that.. Also I'm curious that is there a way ...
more »

2016-12-16 03:12 (1) Answers

Map takes too long to initialize

I've succeeded to display a map on fragment but it takes a lot of time, more than 4 seconds, until you see the map, this time seeing a black screen. why is it happening? What is wrong in my code? thanks! <com.google.android.gms.maps.MapView>...
more »

2016-12-05 09:12 (0) Answers

Google map on Iphone 7 plus iOS 10.1.1 not working

I have to implement googlemaps in Swift 3 Xcocde 8 with Cocoa Pods. The issue is only with iphone 7 plus rest are working fine. GoogleMaps (2.1.1) when i try to load map for this screen it shows blank screen like attached image. Its working fine on...
more »

2016-11-23 14:11 (1) Answers

Detect tap on GMSPolyline in Swift?

I'm struggling with detecting a tap on a GMSPolyline drawn on my Google map, it works just fine with GMSpolygones, but the same approach doesn't seem to work with polyline. My current approach, which works for polygones, is: if (GMSGeometryContains...
more »

2016-11-22 19:11 (2) Answers

returning two components in react aren't working

I tried Hello world example by returning Hello and world from two other components which worked but here in this code I'm not able to return Menubar component whereas Map components works when I only return Map. App.js import React from 'react'; im...
more »

2016-11-01 18:11 (2) Answers

Google Service failed to initialize, status: 10

I'm currently using Google Maps on a app that I'm developing and suddenly my app started to throw an error when I run the app on my phone. 10-22 22:19:41.921 26626-26626/? E/GMPM: GoogleService failed to initialize, status: 10, Missing an expecte...
more »

2016-10-23 04:10 (1) Answers

Angular 2, how to access DOM element in index.html

H, im trying to get access to the div element that I have created in the DOM (index.html) from my Angular 2 component. What I what to accomplish: Option 1: 1: Hide a div element when the page loads with jQuery. 2: Show that element again but inside...
more »

2016-10-21 14:10 (1) Answers

google maps api sdk version error?

It's my code sample. When I firstly build my code, it results in so-called dex error. I added multiDexEnabled property to my gradle setting, but it results in java heap memory overflow. I increased its max size, and finally got builded. However, anot...
more »

2016-10-21 13:10 (3) Answers

Android Google Maps API v1 with Gradle

I'm trying to build this super-old application using Google Maps v1, after migrating to gradle, but when I try to install it on the device, I cannot choose any device - all devices, in the 'Select Deployment Target' AS window, have in the right side ...
more »

2016-09-27 14:09 (1) Answers