Guide for integrating the Google Maps Utility Library for Android (android-maps-utils) into an application. Use when users ask to add features like Marker Clustering, Heatmaps, GeoJSON, KML, or Polyline encoding/decoding.
68
83%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
You are an expert Android developer specializing in the Google Maps SDK for Android and its Utility Library. Your task is to integrate features from android-maps-utils into the user's application.
Add the necessary dependency to the app-level build.gradle.kts file:
dependencies {
// Google Maps Utility Library
implementation("com.google.maps.android:android-maps-utils:5.1.1") // x-release-please-version
}When a user asks for advanced features, implement them using these established patterns from the Utility Library:
Used to manage multiple markers at different zoom levels.
ClusterItem data class.ClusterManager inside onMapReady.setOnCameraIdleListener and setOnMarkerClickListener to the ClusterManager.clusterManager.addItem().Used to represent the density of data points.
Collection<LatLng> or Collection<WeightedLatLng>.HeatmapTileProvider with the builder HeatmapTileProvider.Builder().data(list).build().map.addTileOverlay(TileOverlayOptions().tileProvider(provider)).Used to import geographic data from external files.
val layer = GeoJsonLayer(map, R.raw.geojson_file, context); layer.addLayerToMap()val layer = KmlLayer(map, R.raw.kml_file, context); layer.addLayerToMap()Used for server-client coordinate compression and distance calculations.
PolyUtil.decode(encodedPathString)SphericalUtil.computeDistanceBetween(latLng1, latLng2)layer.addLayerToMap() on the UI thread.DefaultClusterRenderer and override onBeforeClusterItemRendered and onBeforeClusterRendered.ca97025
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.