API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Class com.google.android.maps.MapView

The superclass changed from android.view.View to android.view.ViewGroup.

Removed Constructors
com.google.android.maps(Context) Constructs a mapView object.
com.google.android.maps(Context, AttributeSet, Map) Constructs a mapView object.
 

Added Constructors
MapView(Context, AttributeSet) Constructs a MapView object.
MapView(Context, AttributeSet, int) Constructs a MapView object.
MapView(Context, String) Constructs a MapView object.
 

Removed Methods
OverlayController createOverlayController() @return A new OverlayController bound to this MapView.
void displayZoomDialog(float, float) Display a zoom dialog.
void freezeTo(Bundle) Saves the state of the MapView to a Bundle.
boolean isEdgeZooming() Returns true if you can zoom the map by sliding your finger along the right edge of the screen.
boolean isShowMyLocation() @return true if the user's current location is shown on the map
boolean onLongPress(float, float) Call this view's OnLongPressListener, if it is defined.
void setOnLongPressListener(OnLongPressListener) Register a callback to be invoked when the user presses and holds on the view.
void thawFrom(Bundle) Restores the state of the MapView to a Bundle.
void toggleEdgeZooming() Toggles the current value for edge zooming and stores that as a preferences.
void toggleSatellite() Toggles from satellite to map mode (and back).
void toggleShowMyLocation() Toggles whether the user's current location is shown or not
void toggleStreetView() Toggles whether the Street View overlay is shown.
void toggleTraffic() Toggles whether traffic is shown on the map.
 

Added Methods
boolean checkLayoutParams(LayoutParams) Just checks if p instanceof LayoutParams.
void displayZoomControls(boolean) Makes the zoom controls visible and optionally requests focus upon them so they can be accessed via keys.
LayoutParams generateDefaultLayoutParams() Returns a set of layout parameters with a width of android.view.ViewGroup.LayoutParams.WRAP_CONTENT, a height of android.view.ViewGroup.LayoutParams.WRAP_CONTENT and with the coordinates (0, 0).
LayoutParams generateLayoutParams(LayoutParams)  
LayoutParams generateLayoutParams(AttributeSet)  
List<Overlay> getOverlays() Access the overlay list.
Projection getProjection() Get a projection for converting between screen-pixel coordinates and latitude/longitude coordinates.
View getZoomControls() Returns a View containing a android.widget.ZoomControls widget (i.e.
void onRestoreInstanceState(Bundle) Restores the state of the MapView to a Bundle.
void onSaveInstanceState(Bundle) Saves the state of the MapView to a Bundle.
void setSatellite(boolean) Sets the map mode to "satellite" mode, loading tiles of aerial imagery with roads and names superimposed.
void setStreetView(boolean) Control whether Street View availability (blue outlines) is shown on the map.
void setTraffic(boolean) Control whether traffic is shown on the map.
 

Changed Methods
void computeScroll() Method was inherited from android.view.View, but is now defined locally. Captures scroll events and uses them to pan the map.
GeoPoint getMapCenter() Change in return type from Point to GeoPoint.
Returns the current center-point position of the map, as a GeoPoint (latitude and longitude).
void onDraw(Canvas) Change from non-final to final.
The main draw method.
void onLayout(boolean, int, int, int, int) Method was inherited from android.view.View, but is now defined locally.  
void onMeasure(int, int) Method was inherited from android.view.View, but is now defined locally. Change from non-final to final.
 
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff