google-maps

More than one Google Maps are not loaded iOS SWIFT

不羁岁月 提交于 2020-12-15 19:22:44
问题 I have 3 google maps instances. First loaded correctly, but second and third SOMETIMES loaded like on screenshot https://prnt.sc/uh3ecs or video: https://www.dropbox.com/s/oew3xsqy0z1r62f/recordit-bb8e22cb-c8a9-44bb-94d5-c6169b1d59f8.mp4?dl=0 My keys is correct. My bundle id in Google Cloud Console is correct, APIs enabled. I have free billing plan, may be this wrong? AppDelegate code: In didFinishLaunchingWithOptions I call this function func setupGoogleServices() { GMSServices.provideAPIKey

More than one Google Maps are not loaded iOS SWIFT

谁说我不能喝 提交于 2020-12-15 19:22:14
问题 I have 3 google maps instances. First loaded correctly, but second and third SOMETIMES loaded like on screenshot https://prnt.sc/uh3ecs or video: https://www.dropbox.com/s/oew3xsqy0z1r62f/recordit-bb8e22cb-c8a9-44bb-94d5-c6169b1d59f8.mp4?dl=0 My keys is correct. My bundle id in Google Cloud Console is correct, APIs enabled. I have free billing plan, may be this wrong? AppDelegate code: In didFinishLaunchingWithOptions I call this function func setupGoogleServices() { GMSServices.provideAPIKey

More than one Google Maps are not loaded iOS SWIFT

倖福魔咒の 提交于 2020-12-15 19:21:38
问题 I have 3 google maps instances. First loaded correctly, but second and third SOMETIMES loaded like on screenshot https://prnt.sc/uh3ecs or video: https://www.dropbox.com/s/oew3xsqy0z1r62f/recordit-bb8e22cb-c8a9-44bb-94d5-c6169b1d59f8.mp4?dl=0 My keys is correct. My bundle id in Google Cloud Console is correct, APIs enabled. I have free billing plan, may be this wrong? AppDelegate code: In didFinishLaunchingWithOptions I call this function func setupGoogleServices() { GMSServices.provideAPIKey

More than one Google Maps are not loaded iOS SWIFT

余生颓废 提交于 2020-12-15 19:21:25
问题 I have 3 google maps instances. First loaded correctly, but second and third SOMETIMES loaded like on screenshot https://prnt.sc/uh3ecs or video: https://www.dropbox.com/s/oew3xsqy0z1r62f/recordit-bb8e22cb-c8a9-44bb-94d5-c6169b1d59f8.mp4?dl=0 My keys is correct. My bundle id in Google Cloud Console is correct, APIs enabled. I have free billing plan, may be this wrong? AppDelegate code: In didFinishLaunchingWithOptions I call this function func setupGoogleServices() { GMSServices.provideAPIKey

Can't Create ClusterManager For Android Google Maps

蓝咒 提交于 2020-12-15 05:57:25
问题 I'm trying to use Google Maps clustering in my Android project. Currently for a start I actually copied the code from the demo https://github.com/googlemaps/android-maps-utils (which runs fine for me) On my project, however, on mClusterManager = new ClusterManager<MyItem>(this, getMap()); it throws: java.lang.ClassCastException: android.widget.ImageView cannot be cast to com.google.maps.android.ui.RotationLayout I can't even figure out what why is any there casting? Basically took the

Convert address into coordinates for Google Maps Local Context (Geocoding + Local Context Maps)

邮差的信 提交于 2020-12-15 05:28:27
问题 I am attempting to plug Google Maps Local Context into my website, and I am looking to use an address string (1234 Main St, City, State, USA) to center and display a marker on my map. Here's the code I have that displays a simple map on the site, but I need help getting an address to work instead of coordinates. I have to use Geocoder, but I need help tying it together with the Google Maps Local Context map. let map; function initMap() { const localContextMapView = new google.maps

set marker cluster icon depending on markers inside it

狂风中的少年 提交于 2020-12-15 04:56:33
问题 I've put together a map with clusters. The idea was that cluster's color should depend on the color of markers inside: if there is a red marker, cluster is red; no red, but there is a yellow marker, cluster is yellow; no red and yellow markers, cluster is blue. This only works as expected at specific zoom levels. Fully zoomed out it shows blue cluster, however there are red markers in there, so I expect a red cluster. When I start to zoom in and the map shows multiple clusters, most look

How do I create environment variables to protect my Google Maps API Key(or any other secret value) for my website?

对着背影说爱祢 提交于 2020-12-12 11:34:07
问题 I am learning to code my own website using Bootstrap and have easily placed a map on my page using a Google map API-key and script from Google Developers: <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"> </script> Ideally I would have something like:(i.e. I have tried this): Html: <script src="map-value-pair.php"></script></script><script async defer src="$MapURL"></script> PHP: <?php $MapURL="maps.googleapis.com/..." ?> So obviously this

NotLoadingAPIFromGoogleMapsError occurring randomly with Google Maps Javascript API v3

不羁岁月 提交于 2020-12-12 11:07:04
问题 My webapp loads Google Maps JS API v3 in the html head like this: <head> <script src="https://maps.googleapis.com/maps/api/js?key=MY_API_KEY&libraries=places"></script> </head> Everything works fine, except in ~1 out of 100 mobile pageviews, Google Maps will make a callback to global gm_authFailure , which according to Google occurs when 'authentication fails' https://developers.google.com/maps/documentation/javascript/events#auth-errors To debug, I'm capturing the entire console log from

NotLoadingAPIFromGoogleMapsError occurring randomly with Google Maps Javascript API v3

大城市里の小女人 提交于 2020-12-12 11:06:59
问题 My webapp loads Google Maps JS API v3 in the html head like this: <head> <script src="https://maps.googleapis.com/maps/api/js?key=MY_API_KEY&libraries=places"></script> </head> Everything works fine, except in ~1 out of 100 mobile pageviews, Google Maps will make a callback to global gm_authFailure , which according to Google occurs when 'authentication fails' https://developers.google.com/maps/documentation/javascript/events#auth-errors To debug, I'm capturing the entire console log from