Getting Started
Understanding the terms of service
Usage limits and billing
Using the Google Maps Platform
Errors and troubleshooting
Google Maps Platform Services
Google Maps SDK for iOS
Google Maps SDK for Android
URL signing
Getting StartedWhat is the Google Maps Platform?The Google Maps Platform is a set of APIs and SDKs that allows developers to embed Google Maps into mobile apps and web pages, or to retrieve data from Google Maps. There are several offerings. Depending on your needs, you may find yourself using one or a combination of these APIs and SDKs: Show Maps:
Routes:
Places:
See Get Started with Google Maps Platform. Which API do I need?For help in finding the right API based on your functional requirements, take a look at the API picker. How do I start using the APIs on my site?See the Overview, Developer, and Get Started guides for the specific API or SDK you are interested in. For example, check out the guides for Maps SDK for Android or Maps JavaScript API. Which countries does the Google Maps Platform cover?The Google Maps team is constantly pushing new map data out and increasing our international coverage. Consult the Google Maps coverage data for the latest coverage information. You can filter the data with the filter box at the top of the page. Please note that coverage data can change if licensing agreements with the data providers change. Also see:
Yes. Google Maps now offers the ability to embed the map that you're viewing into your website or blog, without any programming or use of the Google Maps Platform. More information is available here. How do I deliver Maps applications on mobile devices?To incorporate maps in an Android application, use the Maps SDK for Android. To incorporate maps in a native iOS application, use the Maps SDK for iOS. The Maps JavaScript API has been developed to cater to mobile devices, and is suitable for browser applications targeted at both the desktop and devices that include a web browser with a full JavaScript implementation, such as the Apple iPhone. For applications targeted at devices not suitable for using the Maps JavaScript API, the Maps Static API delivers map images in GIF, JPG, and PNG formats, including markers and polylines. Note that use of the Maps Static API outside of browser based applications requires that the map image be linked to Google Maps. Which web browsers do the Maps JavaScript API and Maps Embed API support?The Maps JavaScript API and Maps Embed API support the following web browsers: Desktop
Beginning in August 2021, a warning message will appear to Internet Explorer 11 users at the top of maps. The last version of the Maps JavaScript API to support Internet Explorer 11 is v3.47. Support for Internet Explorer 11 will be entirely discontinued in August 2022. This also applies to the IE mode in Edge. Android
Printing from the Maps JavaScript API is not supported. This is because printing support is inconsistent across commonly used browsers. How can I be notified when there are changes to Google Maps Platform products?You should subscribe to the Google Maps Platform Blog for news updates across the various Google Geo developer offerings. How do I contact technical support?See Google Maps Platform Support and Resources for information about available support options. When is technical support available? The support team is available 24x5 (weekdays from Monday 9 a.m. Tokyo time to Friday 5 p.m. Pacific time) excluding regional holidays for "service unusable" issues. How can I recover access to my Google Account?If you lost access to your Google Account (e.g. or ), you can try restoring the account access by retrieving or resetting your password. Visit the How to recover your Google Account or Gmail article in Google Account Help.
If you lost access to the project where you manage your Google Maps Platform implementation, you can try to recover it. If you have access to your project-associated Google Account:
If you do not have access to your project-associated Google Account:
Developing on the new Arm-based Macs is possible, however, it requires building and running on a physical iOS device. This is a temporary limitation while we look into adding more support for developing on simulators. Understanding the terms of serviceWhat are the terms of service for Google Maps Platform products?The Google Maps Platform Terms of Service are available at: https://cloud.google.com/maps-platform/terms Does my site meet the Google Maps Platform Terms of Service?You can use the Google Maps Platform within your applications as long as your site meets the Google Maps Platform Terms of Service. However, there are some uses of the Google Maps Platform that we just don't want to see: maps that identify the places to buy illegal drugs in a city, for instance, or any other illegal activity. We also respect people's privacy, so the Google Maps Platform shouldn't be used to identify private information about individuals. You should use your own counsel to determine whether your application complies with the Google Maps Platform Terms of Service before you develop and launch it. Google engineers can only offer technical assistance and are not qualified to offer legal advice. Google reserves the right to suspend or terminate your use of the service at any time, so please read the Maps APIs Terms carefully. Can I directly access map tiles and satellite imagery?You may not access map tiles or satellite imagery through any mechanism besides the Google Maps Platform (such as the creation of your own mapping API or the use of a bulk tile download script). Your application's access to the tiles will be blocked if it accesses them outside of the Google Maps Platform. See the Google Maps Platform Terms of Service for more details. There is no restriction on displaying real-time data (tracking) with Google Maps Platform products provided that the application complies with the Google Maps Platform Terms of Service. Can I use Google Maps in my non-Web application?Yes, Google Maps Platform products can now be used in non-Web applications, provided that they adhere to the other restrictions of the Google Maps Platform Terms of Service. The Maps JavaScript API is only supported when run in one of the supported browsers. Can I use Google Maps Platform products on a site that is password protected?Yes, Google Maps, Routes, Places services can be used with private-access applications. See the Google Maps Platform Terms of Service for more details. Can I create an application that includes Google Maps Platform data in a document?If your application generates a document, either in electronic or printed form, no data from Google Maps Platform, including images, may be included in the document. Please see the Google Maps Platform Terms of Service "No Scraping" section for more details. How can I opt out of including my content in Google search results?We are no longer collecting this data. The use of the indexing parameter has been deprecated and has no effect. You no longer need to opt out explicitly, but we encourage you to remove this parameter at your earliest convenience. To remove your page or site from search results, follow the instructions provided in our webmaster help center. Can I generate a map image using the Maps Static API which I store and serve from my website?You may not store and serve copies of images generated using the Maps Static API from your website. All web pages that require static images must link the src attribute of an HTML img tag or the CSS background-image attribute of an HTML div tag directly to the Maps Static API so that all map images are displayed within the HTML content of the web page and served directly to end users by Google. Usage limits and billingHow do I set up billing for my project? See Get Started with Google Maps Platform. How do Google Cloud Platform Free Tier customers upgrade to a paid account? The Google Cloud Platform Free Tier program provides customers a no-charge trial with a $300 credit to use with any Google Cloud Platform (GCP) service, including the Google Maps Platform (GMP) APIs. When the no-charge trial ends, you must upgrade to a paid account to continue using these services. To upgrade to a paid account, visit the Cloud Console. Does the Google Maps Platform have usage limits?There are no maximum daily limits on the number of requests you can make to Google Maps Platform products, and the only usage limits are related to the maximum number of queries per second (QPS). (For Distance Matrix, the limit is set in events per second (EPS) calculated as the sum of client-side and server-side queries.) The following table shows the usage limit for each API. API Usage limit Directions 50 QPS Distance Matrix 1000 EPS Elevation 100 QPS Geocoding 50 QPS Geolocation 100 QPS Dynamic Maps 500 QPS Static Maps 500 QPS Street View Image API 500 QPS Time Zone 500 QPS Places (except for mobile) 100 QPS Roads 500 QPSIn order to govern expenditures, you can monitor your API usage, and set daily limits to all requests to any billable API. Google Maps Platform products must be deployed in compliance with the standard Google Maps Platform Terms of Service. How is usage cost calculated?For an overview of pricing for the Google Maps Platform products, please see the Pricing Sheet. To learn more about how Google Maps Platform APIs are billed, please see Understanding billing for Maps, Routes, and Places. How are map loads counted on the Google Maps Platform?A single map load is charged when any of the following occur:
Street View panoramas are charged separately from map loads:
After a web page or application loads a map, or a static map image, or a Street View panorama, any user interactions with it, such as panning, zooming, or switching map layers, do not generate additional map loads or affect usage limits. How do I monitor my usage?You can monitor the usage of individual APIs in the Google Cloud Console.
To see a traffic report and billing information for an entire project, follow these steps:
To learn more, see Google Maps Platform Reporting as well as Monitoring your API Usage and Capping API Usage. What happens if I exceed the request rate (QPS) limits?If you exceed the QPS limits of a given Google Maps Platform product, the API will return an error message. If you repeatedly exceed the limits, your access to the API may be temporarily blocked. If you exceed the request QPS limits or otherwise abuse the service, requests will return a specific error message. If you continue to exceed limits, your access to the Google Maps Platform may be blocked. Note: Four of the web service APIs have an equivalent client-side service available in the Maps JavaScript API: Directions, Distance Matrix, Elevation, and Geocoding. Usage limits exceeded If you exceed the usage limits you will get an OVER_QUERY_LIMIT status code as a response. This means that the web service will stop providing normal responses and switch to returning only status code OVER_QUERY_LIMIT until more usage is allowed again. This can happen within a few seconds, if the error was received because your application sent too many requests per second. If you regularly exceed your QPS usage limits, consider lowering usage, by optimizing applications to use Google Maps Platform products more efficiently. See the Optimization Guide for more information. My site gets a lot of traffic. Can I use Google Maps Platform products?Yes. However we recommend that you familiarize yourself with the usage limits for any of the Google Maps Platform that your application relies on. If my web site or application becomes suddenly popular, will my maps stop working?Once you have a billing account, if you exceed the no-charge, $200-monthly usage limit and you do not have a valid payment method on your billing account (credit card, bank transfer, ...), the API ceases to function until you add a valid payment method. How will usage be calculated and billed?Usage is calculated at the end of each day, and priced as shown in the Pricing Sheet. At the end of every month, the total usage is charged to the payment method associated with your billing account. For more information, see Google Maps Platform Billing. How much does it cost to use the Google Maps Platform?See the Pricing Sheet for an overview of cost per API. If your application generates requests or map load volumes below the complimentary $200 per month usage, your usage is not charged. Usage that exceeds the $200 monthly credit will be charged to your billing account. For more details, see our guide to understanding Google Maps Platform billing. Additional currencies may be available within the console. When you select a different currency, rates will convert from the USD equivalent listed on our Pricing Sheet. I've set up billing. How do I view my bill?Google charges you at the beginning of each month for the previous month's activity, using your specified payment method. For details about your bill, see our guide to understanding Google Maps Platform billing. Additional resources:
The Google Maps Platform provides ways to set daily request limits and set maximum daily billable limits. You can cap the maximum daily limit on usage to protect against unexpected increases. You can also set budget alerts to receive email notifications when the charges on the billing account reach a threshold you set. Capping the maximum daily billable limit: To avoid a large bill, you can set a daily cap on usage to protect against unexpected increases in use. You can change this limit in the Cloud Console by taking the following steps:
Alternatively, you can edit multiple quotas for multiple APIs using the IAM & admin Quotas dashboard. Tip: Use a simple equation to determine your daily cap depending on how much you want to spend. For example: (Monthly spend / price per each)/30 = requests per day cap (for one API). For instance, on the Maps JavaScript API, 28,000 calls can be made per month within the no-charge tier. If you cap your Maps JavaScript API daily quota to 903 (ie 28,000 / 31), you will not be charged. Note that your implementation may use multiple billable APIs, so adjust your equation as needed. Remember, a $200 USD Google Maps Platform credit is available each month, so be sure to factor that into your calculation.Setting and managing budget alerts: Set up budget alerts to send email notifications to billing administrators when the charges on the billing account reach a threshold you set. Billing administrators will be sent email notifications when the estimated charges on the billing account exceed 50%, 90%, and 100% of the threshold. Key Point: Setting a budget does not cap API usage. The purpose of budgets is to allow you to create alerts so that you know how your spending is trending over time. Alerts prompt you to take action to control your costs, but do not prevent the use of your services when the budget is met or exceeded. If you prefer to set a hard cap on API usage to prevent accruing costs, see Capping API Usage. I got a message saying that my project is linked to the "Google Maps Platform Transition Account", but I don't have access to that account. What do I do?The "Google Maps Platform Transition Account" was created to help certain customers transition to our new pay-as-you-go pricing plan. This transition account enabled Google to provide these customers with a one-time credit, so that they could continue using Google Maps Platform up to the limit of the $200 no-charge tier. Once this limit is exceeded, the billing account will shut down and you will lose access to the service. To avoid service interruptions, we urge you to set your own billing account, and continue to enjoy the $200 monthly no-charge tier. To change the billing account for your project:
If you have not created and attached a billing account to your project, your Maps Platform APIs will be limited to 1 request per day. You can get higher quota by creating and attaching a billing account. To do this, see Get Started with Google Maps Platform. Once you have created and attached a billing account, your daily quota limit will be removed. You can decide to set a limit to prevent unexpected spend, in the Cloud Console. I received a billing violation notice. How do I resolve this?You have received this notice because Google has determined that your account has been using multiple billing accounts. This is a violation of Google's terms, as defined in section 3.2.4 of the Google Maps Platform Terms of Service. Under these terms, it is forbidden to create multiple billing accounts. To learn more, see the Billing Account Violation FAQ. Using the Google Maps PlatformWhich keys or credentials should I use for different Maps products?Each time you use Google Maps Platform products, you must include an API key to validate your request. The Google Maps Platform is available for Android, iOS or Web apps, and via HTTP web services. API Key:
Digital Signature:
Restrictions:
The table below indicates the key/credential and application restriction for each Google Maps Platform API/SDK. API/SDK Credential & Application Restriction Maps SDK for Android API key with Android restriction1 Places SDK for Android API key with Android restriction1 Maps SDK for iOS API key with iOS restriction1 Places SDK for iOS API key with iOS restriction1 Maps JavaScript API API key with HTTP referer restriction1 Maps Static API API key with HTTP referer restriction1 + Digital Signature2 Street View Static API API key with HTTP referer restriction1 + Digital Signature2 Maps Embed API API key with HTTP referer restriction1 Directions API API key with IP address restriction1 Distance Matrix API API key with IP address restriction1 Elevation API API key with IP address restriction1 Geocoding API API key with IP address restriction1 Geolocation API API key with IP address restriction1 Roads API API key with IP address restriction1 Time Zone API API key with IP address restriction1 Places API API key with IP address restriction11 API key restrictions
are optional, but we strongly recommend you restrict all API keys for greater security.
2 Depending on usage, a
digital signature may be required for the
Maps Static API
and
Street View Static API.
Regardless of usage, we strongly recommend that you use
both an API key and a digital signature to authenticate your requests.
How do I switch my key restriction type from an HTTP referer to an IP address restriction?
Important: If you are using any of the web service APIs with an API key that has referer restrictions, your requests will fail with the error message: "API keys cannot have referer restrictions when used with this API." You should switch to using an API key with IP address restrictions. Before you switch the API key restriction type from HTTP referer to IP address, ensure that all the APIs that use the API key support the IP restriction type. APIs of the same restriction type can use the same restricted key. If you need to enforce more than one restriction, add a separate key with the required restriction. See how to add a new API key. Learn more about API key restrictions associated with Google Maps Platform products. To switch an API key with HTTP referer restriction to IP address restriction, do the following:
Version change information for many of the Maps APIs are available at the following links:
You can also check which version of the Google Maps Platform a particular bug was introduced and fixed in using the Google Maps Platform Issue Tracker at: https://issuetracker.google.com/bookmark-groups/76561 How can I load the API into a page asynchronously after the page has loaded?Just specify the callback parameter when loading the API. More information and sample code can be found in the Getting Started chapter of the Maps JavaScript API documentation. How can I get Google Maps Platform products to display in a language other than English?By default the API will attempt to load the most appropriate language based on the users location or browser settings. Some APIs allow you to explicitly set a language when you make a request. More information on how to set the language is available in the documentation for each API:
Google often updates supported languages. This list may not be exhaustive and is subject to change. Language Code Language Language Code Language af Afrikaans ja Japanese sq Albanian kn Kannada am Amharic kk Kazakh ar Arabic km Khmer hy Armenian ko Korean az Azerbaijani ky Kyrgyz eu Basque lo Lao be Belarusian lv Latvian bn Bengali lt Lithuanian bs Bosnian mk Macedonian bg Bulgarian ms Malay my Burmese ml Malayalam ca Catalan mr Marathi zh Chinese mn Mongolian zh-CN Chinese (Simplified) ne Nepali zh-HK Chinese (Hong Kong) no Norwegian zh-TW Chinese (Traditional) pl Polish hr Croatian pt Portuguese cs Czech pt-BR Portuguese (Brazil) da Danish pt-PT Portuguese (Portugal) nl Dutch pa Punjabi en English ro Romanian en-AU English (Australian) ru Russian en-GB English (Great Britain) sr Serbian et Estonian si Sinhalese fa Farsi sk Slovak fi Finnish sl Slovenian fil Filipino es Spanish fr French es-419 Spanish (Latin America) fr-CA French (Canada) sw Swahili gl Galician sv Swedish ka Georgian ta Tamil de German te Telugu el Greek th Thai gu Gujarati tr Turkish iw Hebrew uk Ukrainian hi Hindi ur Urdu hu Hungarian uz Uzbek is Icelandic vi Vietnamese id Indonesian zu Zulu it ItalianYou can see what the map will look like in any of the languages listed above in this sample application. Can the Google Maps Platform be accessed over SSL (HTTPS)?The Maps JavaScript API, Maps Static API, and Web Service APIs can be accessed over secure (HTTPS) connections. Please see the documentation for the API concerned for information on how to access the API over SSL. Note that the Maps Static API does not support custom icon URLs that use HTTPS; the default icon will be displayed. How do I report a bug or request a new feature in the Google Maps Platform?If you experience behavior that you believe may be a bug, please begin by raising it in the relevant forum. This will allow other developers to validate the bug, and rule out any potential issues with your code. If you wish to request a feature, please also first raise it in the relevant forum to confirm that a solution that meets your requirements is not already available. Once you have confirmed that you have identified a new bug, or that your requirements cannot be met by the existing functionality of the Google Maps Platform products, please report your bug or feature request using the Google Maps Platform Issue Tracker. Before adding a bug or feature request to the Issue Tracker please be sure to check that the bug or feature concerned has not already been added. If it has, you can star the issue to register your interest and be notified of updates. How do Google Maps Platform APIs use site cookies?Maps SDK for Android and Maps SDK for iOS use cookies subject to Google's Privacy Policy, such as calculating daily and 7-day active users and service abuse prevention. These cookies are not associated with any signed-in Google Account and are not logged with the rest of the information collected from the API calls. I can't find the answer to my question. Who should I contact?Google's Developer Relations team maintains a presence on Stack Overflow a collaboratively-edited question and answer site for programmers. It's a great place to ask technical questions about developing and maintaining Google Maps applications. More information about asking questions on Stack Overflow is available on the Support page. For best results when requesting help, please keep the following in mind:
Errors and troubleshootingWhat does this error mean?If you encounter an error while loading or running the Google Maps APIs, please see the following links to find explanations for the error codes:
Under certain circumstances, a darkened map, or 'negative' Street View image, watermarked with the text "for development purposes only", may be displayed. This behavior typically indicates issues with either an API key or billing. To use Google Maps Platform products, you must have a billing account and all requests must include a valid API key. The following flow will help troubleshoot this: How do I resolve the error codes: OVER_DAILY_LIMIT or OVER_QUERY_LIMIT? These error codes can be returned for any of the following reasons:
To use Google Maps Platform products, you must have a billing account, and all requests must include a valid API key. To fix this, take the following steps:
There are various scenarios which may cause this error:
View and Edit your API Key Credentials To view your API keys and manage any restrictions, do the following:
You are using any of the web service APIs with an API key restricted to an HTTP referer. For security reasons, web service APIs need to use API keys restricted to IP addresses. Switch your key restriction type from an HTTP referer restriction to an IP address restriction, or create a new API key if your key is already used with the Maps JavaScript API. Google Maps Platform ServicesI need to convert addresses to latitude/longitude pairs. Can I do that with the Google Maps Platform?Yes, this process is called "geocoding." The Maps JavaScript API includes a class for performing a geocoding service. The class is: google.maps.Geocoder. Alternatively, Google also provides the Geocoding API, which offers a REST interface that can respond in JSON and XML formats. Which countries is geocoding available in?To see countries currently supported by the Google Maps Platform geocoders, please consult the Google Maps coverage data. The accuracy of geocoded locations may vary per country, so you should consider using the returned location_type field to determine if a good enough match has been found for the purposes of your application. Please note that the availability of geocoding data depends on our contracts with data providers, so it is subject to change. The API geocoder and Google Maps geocoder sometimes use different data sets (depending on the country). The API geocoder occasionally gets updated with new data, so you can expect to see results changing or improving over time. How should I format my geocoder queries to maximise the number of successful requests?The geocoder is designed to map street addresses to geographical coordinates. We therefore recommend that you format geocoder requests in accordance with the following guidelines to maximize the likelihood of a successful query:
The Google Maps Platform geocoder requires that U.S. numbered highways be specified in addresses as follows:
See the document: Geocoding Strategies, which details the pros and cons of different geocoding strategies. How do I provide driving directions with the Google Maps Platform?The Directions API allows you to provide driving directions for single and multi-leg journeys. Routing options help you shape directions with a travel mode (driving), a single or a set of routes, and restrictions (no toll roads). The service is available in the following forms:
To see countries currently supported by Driving Directions in the Google Maps Platform products, consult the Google Maps coverage data. Please note that the availability of driving directions data depends on our contracts with data providers, and is subject to change. In which countries are transit directions available?The Directions API and Distance Matrix API support all Google Transit partners, except those in Japan. Which KML and GeoRSS features are supported in the Maps JavaScript API?The KmlLayer class in the Maps JavaScript API enables developers to overlay KML/KMZ and GeoRSS files on top of the map. Documentation and examples can be found here. What are the limits on the size and complexity of KML that can be displayed using the KmlLayer class of the Maps JavaScript API?The size and complexity limits on the display of KML using the KmlLayer class are documented here. How do I render KML files that are hosted on intranet sites on a map?The KmlLayer class that generates KML overlays in the Maps JavaScript API uses a Google hosted service to retrieve and parse KML files for rendering. Consequently it is not possible to display KML files that are not hosted at a URL that is available publicly accessible, or that require authentication to access. If you need to develop applications that use KML files hosted on intranet sites we recommend that you render the KML on the client side by using third-party JavaScript libraries. As the KML file is analyzed by the browser, performance may be lower than by using the KmlLayer class. What is the maximum number of markers or path vertices supported by the Maps Static API?There is no limit to the number of markers or path vertices supported by the Maps Static API. When using custom icons, up to five unique icons can be specified per request, but each can be used multiple times within the map. Note that Maps Static API URLs can contain a maximum of approximately 8,192 characters which constrains the number of markers and path vertices that can be specified based on the number of decimal places used when specifying each latitude/longitude pair. For information on how the number of decimal places used relates to the accuracy on the Earth see the Wikipedia article on Decimal Degrees. Why can't I access Google Maps Platform products for certain countries?Maps APIs may not be used in Prohibited Territories. Refer also to the Terms of Service. How do I report a problem on the Google basemap? Send feedback through Google Maps for wrong or missing map information such as:
For correction of a place or business listing, suggest an edit. If Maps content needs to be removed for legal reasons, submit a legal request. For critical or time-sensitive requests, file a support case with specific details on what needs to be fixed. How is performance monitored for the services used with Maps JavaScript API?Some client-side features are instrumented to report success or failure for the purpose of calculating the SLO (Service Level Objective). This information is sent to Google at maps.googleapis.com/maps_api_js_slo/log in calls that log SLO information. This information includes success status, latency, and version/channel of the Maps JavaScript API in use. The calls may be batched for performance. Please note that you may need to allow maps.googleapis.com in your Content Security Policy to ensure these calls are not blocked at browser-level. For example: Content-Security-Policy: default-src 'self' maps.googleapis.com; with HTTP headers, or <meta http-equiv="Content-Security-Policy" content="default-src 'self' maps.googleapis.com;"> with HTML Meta Tags. Google Maps SDK for iOSIn Xcode 12, apps do not build correctly for the simulator. How can I fix this?To fix this issue, open your Xcode project Build Settings, and add arm64 to the Excluded Architectures for "iOS Simulator" builds only. For more information, see the following StackOverflow thread. How do I resolve the error: kGMSPlacesRateLimitExceeded? If you are seeing this error, you may be using a deprecated version of the Places SDK for iOS. Version 2.7.0 of the Places SDK for iOS has been turned off, and is no longer available. Please update your app to use the latest version as soon as possible. See the migration guide for details. I'm getting crashes when debugging with an iOS 8.x device. What should I do?If you experience issues when debugging with devices running iOS 8.x, follow these steps to disable GPU frame capture in the XCode scheme you are running:
Beginning with the iPhone X, iPhones have a screen shape featuring rounded corners, a notch at the top for the device's sensor housing, and an indicator at the bottom of the screen for accessing the Home screen. As of iOS 11.0 SDK, Apple added the Safe Area API allowing developers to position elements in an area which is safe from being clipped by the new screen shape. The Google Maps iOS SDK has many visual elements and controls, such as an indoor picker and the report a problem link. With version 2.4, these visual elements and controls could be clipped by the new screen shape. In landscape mode, the indoor floor picker may be clipped by either the notch or the home button indicator. With the Google Maps iOS SDK 2.5 release these layout issues are fixed automatically. When your app is used on an iPhone X or later, the padding on GMSMapView and GMSPanoramaView are increased so that the visual elements aren't clipped. By default, we will always include your padding. The Google Maps iOS SDK assumes that padding is intended to pad from within the safe area. If you design your interface with the assumption that everything is positioned within the safe area, this will work without any extra effort. If you have designed an interface which doesn't work with our default adjustment, we have introduced a new property to GMSMapView, called paddingAdjustmentBehavior. GMSMapView now allows you to pick from one of three padding adjustments behaviors: 'Always' (default), 'Automatic', and 'Never'. If GMSMapView is set to use the 'Always' padding behavior, it will always add the safe area insets to the padding. This allows you to design your interface with the assumption that all placement is from the edges of the safe area. This is the default value. If GMSMapView is set to use the 'Automatic' padding behavior, it will always choose the larger of padding or safe area inset. This will allow you to add padding from the screen edge while always ensuring that all elements stay within the safe area. If GMSMapView is set to use the 'Never' padding behavior, it will never add the safe area insets to the padding. This is the behavior prior to the 2.5 release and may be useful if your padding already takes into consideration the safe area, or if our other behaviors don't act well with your interface. It is your responsibility to ensure that the Google logo and copyright notices are always visible, as specified in the Google Maps Platform Terms of Service. In contrast, GMSPanoramaView doesn't have an optional padding property. This means that there is no padding to adjust and GMSPanoramaView will always apply any necessary padding to ensure that all visual elements are within the safe area. Google Maps SDK for AndroidHow do I resolve the error: 9005 PLACES_API_RATE_LIMIT_EXCEEDED? If you are seeing this error, you may be using a deprecated version of the Places SDK for Android. The Google Play services version of the Places SDK for Android has been turned off, and is no longer available. Please update your app to use the latest version as soon as possible. See the migration guide for details. My app only shows blank grey tiles instead of a map. How can I resolve this?A common reason that a blank grey tiles are shown instead of a map is authentication issues. You can follow the steps below to troubleshoot those issues by using adb logcat.
URL signingCan I sign URLs using JavaScript?We strongly recommend against signing URLs using JavaScript as this would expose your URL signing secret to end users. Therefore signatures should only be generated by server side components. Why am I receiving a HTTP 403 Forbidden response to my Maps API web service requests?An HTTP 403 response indicates a permission issue, likely because the signature could not be verified for this request. This could be because:
|