![]() We are investigating alternate methods for Android still and hope to resolve this better in a future update. On iOS, we render the map directly into the webview and so the same transparency effects are not required. If you can't see your map on Android, this should be the first thing you check. In a typically Ionic application, that means setting transparency on elements such as IonContent and the root HTML tag to ensure that it can be seen. This means that as the developer, you must ensure that the webview is transparent all the way through the layers to the very bottom. On Android, the map is rendered beneath the entire webview, and uses this component to manage its positioning during scrolling events. This is resolved by modifying the module that declares your component to allow for custom web components. The plugin will automatically register this web component for use in your application.įor Angular users, you will get an error warning that this web component is unknown to the Angular compiler. The Google Maps Capacitor plugin ships with a web component that must be used to render the map in your application as it enables us to embed the native view more effectively on iOS. $kotlin_version: version of :kotlin-stdlib-jdk7 (default: 1.7.0).$androidxCoreKTXVersion: version of re:core-ktx (default: 1.8.0).$kotlinxCoroutinesVersion: version of :kotlinx-coroutines-android and :kotlinx-coroutines-core (default: 1.6.3).$googleMapsUtilsKtxVersion: version of :maps-utils-ktx (default: 3.4.0).$googleMapsKtxVersion: version of :maps-ktx (default: 3.4.0).$googleMapsUtilsVersion: version of :android-maps-utils (default: 2.3.0).$googleMapsPlayServicesVersion: version of :play-services-maps (default: 18.0.2).This plugin will use the following project variables (defined in your app's adle file): The Google Maps SDK for Android requires you to add your API key to the AndroidManifest.xml file in your project. If you are developing on a M1 Macbook, building and running on physical devices is still supported and is the recommended approach. This is a known and acknowledged issue and requires a fix from Google. The Google Maps SDK currently does not support running on simulators using the new M1-based Macbooks. Read about Configuring ist in the iOS Guide for more information on setting iOS permissions in Xcode. NSLocationWhenInUseUsageDescription ( Privacy - Location When In Use Usage Description).NSLocationAlwaysUsageDescription ( Privacy - Location Always Usage Description).To use this, Apple requires privacy descriptions to be specified in ist: The Google Maps SDK supports the use of showing the users current location via enableCurrentLocation(bool). Additional information about obtaining these API keys can be found in the Google Maps documentation for each platform. This is required for all three platforms, Android, iOS, and Javascript. These can be obtained from the Google Cloud Console. To use the Google Maps SDK on any platform, API keys associated with an account with billing enabled are required.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |