> // mc.zoomIn(); //Not working
Define "not working". It throws an exception? It returns false?
Try adjusting the zoom level after setting the MapView to the content
view of the Activity. Does it work if you use setZoom instead? What is
the return from MapView.getZoomLevel()?
Cheers,
Justin
Android Team @ Google
On Aug 28, 1:50 am, "Rani v" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am writing a class to display basic Map, but it is showing only a blank
> screen ,can any one suggest me how to display the map
> sending you the code
> **
>
> *
>
> public* *class* MapExample *extends* MapActivity {
>
> *private* MapView mMapView;
>
> *private* String map = "Browse Map";
>
> /** Called when the activity is first created. */
>
> @Override
>
> *public* *void* onCreate(Bundle savedInstanceState) {
>
> *super*.onCreate(savedInstanceState);
>
> mMapView = *new* MapView(*this*, map);
>
> // Latitude and Longitude
>
> GeoPoint p = *new* GeoPoint((*int*) (28.38 * 1000000),
>
> (*int*) (77.12 * 1000000));
>
> // MapController manages panning and zooming of a map
>
> MapController mc = mMapView.getController();
>
> mc.setCenter(p);
>
> // mc.zoomIn(); //Not working
>
> setContentView(mMapView);
>
> mMapView.isSatellite();
>
> }
>
> }
> I am using *android-sdk-windows-0.9_beta *and* Eclipse 3.3 *
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---