i have implemented ontap(in index) to show the dialog popup and
ontap(geopiont p,mapview v) to animate and zoom the map on tap.
so i have these methods
*************
        @Override
                protected boolean onTap(int index) {
                        OverlayItem item = mOverlays.get(index);
                        AlertDialog.Builder dialog = new AlertDialog.Builder(
                                        HelloGoogleMaps.this);
                        dialog.setTitle(item.getTitle());
                        dialog.setMessage(item.getSnippet());
                        dialog.show();
                        return true;
                }

                @Override
                public boolean onTap(GeoPoint point, MapView mapView) {

                        mc.animateTo(point);
                        mapView = (MapView) findViewById(R.id.mapview);

                        mapView.setSatellite(true);
                        mc.setZoom(18);
                        mapView.invalidate();
                        return super.onTap(point, mapView);
                }

        }

but it doestnt work...i m not getting any dialog.

i want the functionality that ..it should show the dialog and later on
tap , it should zoom.

pls suggest some modification in it.
and let me know the diffrnces of the 2 taps..CAN WE USE THE 2 ONTAP
FUNCTION IN ONE MAP ACTIVITY???





On Dec 13, 4:07 pm, ahmed jabir <feelsocial.andr...@gmail.com> wrote:
> ???
> On Dec 13, 2010 2:56 PM, "Atik" <atik0...@gmail.com> wrote:
>
>
>
> > hello All,
> > i want to implement app like.
> > i want to show marker on the map. on tap it should display the dailog,
> > and again i want that ontap, the map should get the zoom upto 20
> > level..
>
> > so can any one tell me how to do this..
>
> > or what is the differnce between above two methid if i ma using the
> > both methods in code
> > OnTap(int index)------for showing dialog
> > OnTap(Geopoint p,mapview v)-----------for zooming map
>
> > pls help...
> > in code how it will work for tap, if i want to show the dailog as well
> > as want to zoom the map
>
> > thxxxx
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubs­cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to