aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
  • Tools
  • About
  • Programming
  • Public Cloud
  • Software
  • Software Engineering

Learn About Google Cloud’s Updated Renderer For The Maps SDK For Android

  • aster_cloud
  • May 4, 2023
  • 3 minute read

We’re always looking for ways to improve your Google Maps Platform development experience on Android, so  we’ve been working on an updated renderer for the Maps SDK for Android to give you access to more features and better performance.

Thanks to those developers  who opted in to use our updated renderer back in October 2021. Your feedback on what worked well and what needed improvement was implemented in the latest version ready for you to try out now. The upgraded map renderer is available as of version 18.0.0 of the Maps SDK for Android. We encourage you to opt-in to use it and let us know how it’s working.


Partner with aster.cloud
for your next big idea.
Let us know here.


cyberpogo

Benefits of the new map renderer include:

  • Reduced network load, processing demand, and memory consumption
  • Faster cold starts than the previous renderer
  • A more stable and improved user experience
  • Improved gesture handling for better animations, plus smoother panning and zooming
  • More fluid transitions and clearly positioned map labels
  • Cloud-based maps styling feature
  • Advanced polyline customizations

Devices that can use the new renderer:

  • Android 5.0 (API level 21) or later
  • 2 GB or more of data storage
  • Using Google Play services version 21.39.14 or later

Devices using Android 4.4W (API level 20) and earlier; with less than 2 GB of data storage; or using Google Play services versions 21.39.13 or older, will continue to use the legacy renderer.

How to upgrade to the new map renderer

  • Update your app dependencies to use com.google.android.gms:play-services-maps:18.0.0 or higher.
  • Update your code to explicitly import MapsInitializer, and MapsInitializer.Renderer.
  • Update your code to call MapsInitializer.initialize(), to request Renderer.LATEST.
  • Use OnMapsSdkInitializedCallback to determine which version of the renderer was returned.
Read More  Don’t Run All Code, Run Only What’s Changed: Optimizing IaC Deployment With Cloud Build

Your code must call MapsInitializer.initialize() before any MapView, MapFragment, or SupportMapFragment has been created. We recommend calling this in onCreate for your app’s Application, or Activity, before its content view is set.

Examples

Here are two code samples for how to call MapsInitializer.initialize() to request a renderer version.

import com.google.android.gms.maps.MapsInitializer;
import com.google.android.gms.maps.MapsInitializer.Renderer;
import com.google.android.gms.maps.OnMapsSdkInitializedCallback;
​
class MapRendererOptInApplication extends Application implements OnMapsSdkInitializedCallback {
​
  @Override
  public void onCreate() {
    super.onCreate();
    MapsInitializer.initialize(getApplicationContext(), Renderer.LATEST, this);
  }
​
  @Override
  public void onMapsSdkInitialized(MapsInitializer.Renderer renderer) {
    switch (renderer) {
      case LATEST:
        Log.d("MapsDemo", "The latest version of the renderer is used.");
        break;
      case LEGACY:
        Log.d("MapsDemo", "The legacy version of the renderer is used.");
        break;
    }
  }
}

Java code sample

import com.google.android.gms.maps.MapsInitializer
import com.google.android.gms.maps.MapsInitializer.Renderer
import com.google.android.gms.maps.OnMapsSdkInitializedCallback
​
internal class MapRendererOptInApplication : Application(), OnMapsSdkInitializedCallback {
  override fun onCreate() {
    super.onCreate()
    MapsInitializer.initialize(applicationContext, Renderer.LATEST, this)
  }
​
  override fun onMapsSdkInitialized(renderer: MapsInitializer.Renderer) {
    when (renderer) {
      Renderer.LATEST -> Log.d("MapsDemo", "The latest version of the renderer is used.")
      Renderer.LEGACY -> Log.d("MapsDemo", "The legacy version of the renderer is used.")
    }
  }
}

Kotlin code sample

We’re here to help

Not working right? Need help? Please let us know what’s going on by submitting an issue to our issue tracker, and we’ll help you out as soon as possible. Check out the docs for complete details on how to opt-in and start to use the new Maps renderer for Android. We look forward to hearing your feedback on how it works for you. Already upgraded to the new renderer? Please take a moment to fill in this short survey to help us make it even better! Thanks!

Read More  Fetching Data And Binding It To The UI In The MAD Skills Series


For more information on Google Maps Platform, visit our website: https://cloud.google.com/maps-platform/


By Ilya Bezdelev Product Manager, Google Maps Platform
Originally published at Google Cloud

Source: Cyberpogo


Our humans need coffee too! Your support is highly appreciated, thank you!

aster_cloud

Related Topics
  • Android
  • Google Cloud
  • Google Maps Platform
  • Kotlin
  • SDK
You May Also Like
View Post
  • Architecture
  • Platforms
  • Software
  • Solutions
  • Technology

What To Expect From Apple’s WWDC 2023

  • June 1, 2023
View Post
  • Programming
  • Software Engineering
  • Technology

Build a Python App to Alert You When Asteroids Are Close to Earth

  • May 22, 2023
View Post
  • Programming

Illuminating Interactions: Visual State In Jetpack Compose

  • May 20, 2023
View Post
  • Data
  • Public Cloud

Cloud Data Loss Prevention’s Sensitive Data Intelligence Service Is Now Available In Security Command Center

  • May 18, 2023
View Post
  • Multi-Cloud
  • Public Cloud
  • Software Engineering

Policy Controller Dashboard: Now Available For All Anthos And GKE Environments

  • May 18, 2023
View Post
  • Containers
  • Public Cloud
  • Software
  • Software Engineering

How To Easily Migrate Your Apps To Containers — Free Deep Dive And Workshop

  • May 18, 2023
View Post
  • Design
  • Engineering
  • Public Cloud

Kubernetes Costs Less, But Less Than What?

  • May 18, 2023
View Post
  • Software
  • Technology

Somehow OpenSearch Has Succeeded

  • May 16, 2023

Stay Connected!
LATEST
  • 1
    Building A Kubernetes Platform: How And Why To Apply Governance And Policy
    • June 4, 2023
  • 2
    Leave, This “United” “Kingdom”, This “Great” “Britain”
    • June 4, 2023
  • 3
    Amazing Federated Multicloud Apps
    • June 2, 2023
  • 4
    What’s The Future Of DevOps? You Tell Us. Take The 2023 Accelerate State Of DevOps Survey
    • June 2, 2023
  • 5
    Resolving Deployment Issues With Ts-node And Azure Development Pipelines
    • June 1, 2023
  • 6
    What To Expect From Apple’s WWDC 2023
    • June 1, 2023
  • 7
    What Is Platform Engineering And Why Adopt It In Your Company?
    • June 1, 2023
  • 8
    Four Steps To Managing Your Cloud Logging Costs On A Budget
    • May 31, 2023
  • 9
    Red Hat Puts Podman Container Management On The Desktop
    • May 30, 2023
  • 10
    The Agile Mindset: A Path to Personal Fulfillment and Growth
    • May 30, 2023
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    Huawei ICT Competition 2022-2023 Global Final Held In Shenzhen — 146 Teams From 36 Countries And Regions Win Awards
    • May 27, 2023
  • 2
    Huawei OceanStor Pacific Scale-Out Storage Tops IO500 Rankings
    • May 26, 2023
  • 3
    MongoDB And Alibaba Cloud Extend Global Partnership
    • May 25, 2023
  • 4
    Tricentis Launches Quality Engineering Community ShiftSync
    • May 23, 2023
  • 5
    G7 2023: The Real Threat To The World Order Is Hypocrisy.
    • May 27, 2023
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.