Simple information balloon annotation for Android MapView
This project provides an easy way to annotate map overlay items with a simple information balloon when using the Android Maps external library (com.google.android.maps
).
Create a subclass of BalloonItemizedOverlay
in the same way you would do for the base ItemizedOverlay
class. Rather than overriding onTap()
(which is already implemented to invoke the balloon view display for each item tap), you override onBalloonTap()
to handle a screen tap event on the balloon itself.
The data displayed in each balloon is mapped to the title and snippet arguments you provide to the constructor of each OverlayItem
.
The repository contains a working sample application project which fully demonstrates its usage.
Author: Jeff Gilfelt
The code in this project is licensed under the Apache Software License 2.0.
Copyright (c) 2012 readyState Software Ltd.