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.autonavi; // www . ja v a2 s .c o m import com.amap.mapapi.core.GeoPoint; import com.amap.mapapi.map.MapController; import com.dennytech.smartmap.IGeoPoint; import com.dennytech.smartmap.IMapController; public class ANMapController implements IMapController { MapController realMC; public ANMapController 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); } }