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; // w w w . j ava2s.com import android.graphics.Canvas; import com.dennytech.smartmap.impl.autonavi.ANOverlay; import com.dennytech.smartmap.impl.google.GoogleOverlay; public class SMOverlay implements IOverlay, OverlayCallBack { private IOverlay mWrapper; public SMOverlay(SMMapFragment mapFragment) { if (mapFragment.getActivity() instanceof com.amap.mapapi.map.MapActivity) { mWrapper = new ANOverlay(mapFragment.mapView(), this); } else { mWrapper = new GoogleOverlay(mapFragment.mapView(), this); } } @Override public Object real() { return mWrapper.real(); } @Override public void draw(Canvas canvas, IMapView mapView, boolean shadow) { } }