This directory contains the Compose samples for the Google Maps SDK for Android. We use a state-driven approach and lean on the maps-compose library.
| Feature | Status | Source Code | Screenshot | Description |
|---|---|---|---|---|
| Basic Map | ✅ Done | Source Code (Activity) | ![]() |
Initializes a basic, interactive Google Map with standard road layers and default controls. Region Tag: maps_android_compose_init_basic |
| Custom Configuration | ✅ Done | Source Code (Activity) | ![]() |
Configures custom map properties such as satellite type layers, compass visibility, and hides default zoom controls. Region Tag: maps_android_compose_init_custom |
| Move Camera | ✅ Done | Source Code (Activity) | ![]() |
Demonstrates how to move the map camera instantly to a targeted coordinate and zoom level without animations. Region Tag: maps_android_compose_camera_move |
| Animate Camera | ✅ Done | Source Code (Activity) | ![]() |
Demonstrates how to smoothly animate the map camera to a target position over a specified duration in milliseconds. Region Tag: maps_android_compose_camera_animate |
| Camera Restrictions | ✅ Done | Source Code (Activity) | ![]() |
Constrains camera panning and zooming strictly within a geographic LatLngBounds box (e.g., Singapore bounds). Region Tag: maps_android_compose_camera_bounds |
| Basic Marker | ✅ Done | Source Code (Activity) | ![]() |
Adds a standard red pin marker to the map centered over Singapore coordinates, complete with title and snippet popups. Region Tag: maps_android_compose_marker_basic |
| Custom Marker Icon | ✅ Done | Source Code (Activity) | Customizes the standard marker icon to a default azure color, demonstrating how to pass custom drawable/descriptor objects. Region Tag: maps_android_compose_marker_custom_icon |
|
| Marker Composable | ✅ Done | Source Code (Activity) | ![]() |
Renders arbitrary Jetpack Compose layout structures directly on the map as custom interactive markers (e.g., rounded red badges). Region Tag: maps_android_compose_marker_composable |
| Custom Info Window | ✅ Done | Source Code (Activity) | ![]() |
Replaces the standard marker balloon popup with an arbitrary styled Compose layout (e.g., yellow rectangular banner). Region Tag: maps_android_compose_marker_info_window |
| Polylines | ✅ Done | Source Code (Activity) | ![]() |
Draws a styled solid blue vector line connecting three coordinate vertices on the map. Region Tag: maps_android_compose_polyline |
| Polygons | ✅ Done | Source Code (Activity) | ![]() |
Draws a closed, filled red triangular area with a solid red border. Region Tag: maps_android_compose_polygon |
| Circle Overlay | ✅ Done | Source Code (Activity) | ![]() |
Draws a translucent green geographic circle centered at Singapore coordinates. Region Tag: maps_android_compose_circle |
| Marker Clustering | ✅ Done | Source Code (Activity) | ![]() |
Groups adjacent markers dynamically inside cluster badges to avoid map clutter. Region Tag: maps_android_compose_clustering |
| GeoJSON Layer | ✅ Done | Source Code (Activity) | ![]() |
Parses and overlays a GeoJSON data layer dynamically in Compose using MapEffect to obtain the underlying GoogleMap instance safely.Region Tag: maps_android_compose_geojson_layer |
| KML Layer | ✅ Done | Source Code (Activity) | ![]() |
Parses and overlays a KML data stream dynamically in Compose using MapEffect.Region Tag: maps_android_compose_kml_layer |
| Ground Overlay | ✅ Done | Source Code (Activity) | ![]() |
Displays a static flat image stretched flatly over geographic coordinate bounds. Region Tag: maps_android_compose_ground_overlay |
| Tile Overlay | ✅ Done | Source Code (Activity) | ![]() |
Overlays custom dynamic styled map tile layers on top of the default viewport. Region Tag: maps_android_compose_tile_overlay |
| WMS Tile Overlay | ✅ Done | Source Code (Activity) | ![]() |
Displays dynamically loaded raster map tile layers fetched from a Web Map Service (WMS) using EPSG:3857 projection. Region Tag: maps_android_compose_wms_tile_overlay |
| Compose Bitmap Descriptor | ✅ Done | Source Code (Activity) | ![]() |
Renders custom graphics dynamically to standard marker descriptors using standard Canvas drawing. Region Tag: maps_android_compose_remember_bitmap_descriptor |
| Scale Bar Widget | ✅ Done | Source Code (Activity) | ![]() |
Displays an on-screen dynamic map distance scale bar overlay widget that reacts to pinch-to-zoom events. Region Tag: maps_android_compose_scale_bar |


















