diff options
Diffstat (limited to 'docs/html/resources/tutorials/views')
-rw-r--r-- | docs/html/resources/tutorials/views/hello-mapview.jd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/resources/tutorials/views/hello-mapview.jd b/docs/html/resources/tutorials/views/hello-mapview.jd index 836d22c..ac5e826 100644 --- a/docs/html/resources/tutorials/views/hello-mapview.jd +++ b/docs/html/resources/tutorials/views/hello-mapview.jd @@ -255,7 +255,7 @@ to define its coordinates on the map.</p> <pre> List<Overlay> mapOverlays = mapView.getOverlays(); Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker); -HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable);</pre> +HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable, this);</pre> <p>All overlay elements on a map are held by the {@code MapView}, so when you want to add some, you have to get a list from the <code>getOverlays()</code> method. Then instantiate the {@link |