Map Overlays (Android)

This article describes how to add interactive map overlays.

Map Overlays Overview

Map overlays are colored shapes you can draw on your maps using area placemarks. You can make these overlays interactive.

A map overlay example is included in the Android Sample app.

Map Overlay Code

Use this code to implement a map overlay.

Placemark myPlacemark;  // known placemark
Context c = getActivity();

if(placemark.getArea() != null && c != null) {

    // Create the OverlayMarker
    OverlayMarker om = new OverlayMarker.Builder(c,

    // Selection notification via onMarkerSelect() is enabled by default

    // Add the OverlayMarker to the map
    List<Marker> markerList = Arrays.asList((Marker)om);
        new Transaction.Builder().setAnimationDuration(500)
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.