Back to project page SmartMap.
The source code is released under:
Apache License
If you think the Android project SmartMap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dennytech.smartmap.impl.google; /* w w w .j a v a2s .c om*/ import com.dennytech.smartmap.IGeoPoint; import com.dennytech.smartmap.IMapController; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapController; public class GoogleMapController implements IMapController { MapController realMC; public GoogleMapController wrap(MapController mc) { realMC = mc; return this; } public void setCenter(IGeoPoint point) { if (realMC != null) { realMC.setCenter((GeoPoint) point.real()); } } public int setZoom(int zoomLevel) { return realMC.setZoom(zoomLevel); } public void animateTo(IGeoPoint point) { if (realMC != null && point != null) { realMC.animateTo((GeoPoint) point.real()); } } @Override public void zoomToSpan(int latSpanE6, int lonSpanE6) { realMC.zoomToSpan(latSpanE6, lonSpanE6); } }