package com.algobase.share.maps; import java.lang.Runnable; import java.io.File; import android.location.Location; import android.graphics.Point; import android.view.View; public interface IMapView { public String getTileSource(); public String getTileURL(); public int getTileSize(); public int getTileRows(); public int getTileCols(); public View getView(); public void setUseDataConnection(boolean b); public void setTileSource(String src); public void setMapDirectory(File dir); public void setOverlay(IMapOverlay overlay); public void setZoomFactor(float f); public void animToZoomLevel(int z); public void setRotation(float phi); public void setRotationAnim(float phi); public float getRotation(); public void setHeading(float h); public float getHeading(); public void setZoom(int z); public void setZoom0(int z); public void setZoomLevel(int z); public void zoomIn(); public void zoomOut(); public void zoomToSpan(double lat_span, double lon_span); public void zoomToFit(double lat_min, double lon_min, double lat_max, double lon_max); public int getMapHeight(); public int getMapWidth(); public int getBufferHeight(); public int getBufferWidth(); public int getZoomLevel(); public void setCenter(double lat, double lon); public void setCenter(Location loc); public void getCenter(double coord[]); public void animateTo(double lat, double lon, int zoom_d, float heading); public void animateTo(double lat, double lon, int zoom_d); public void animateTo(Location loc, int zoom_d, float heading); public void animateTo(Location loc, int zoom_d); public boolean isSatellite(); public boolean isStreetView(); public boolean isTraffic(); //public void setSatellite(boolean b); public void setStreetView(boolean b); public void setTraffic(boolean b); public boolean getShowRadar(); public void setShowRadar(boolean b); public void radarStep(); public int getMaxZoomLevel(); public void windowCoords(double[] lat, double[] lon); public void toPixels(double lat, double lon, Point p); public void toPixels(Location loc, Point p); public Location fromPixels(int x, int y); public float metersToEquatorPixels(float meter); public void invalidate(); public void postInvalidate(); public void setAnimFinish(Runnable r); public void drawTiles(); public long numberOfTiles(); public long numberOfTiles(int minLevel, int maxLevel); public long numberOfExistingTiles(); public long numberOfExistingTiles(int minLevel, int maxLevel); public void downloadTiles(int level, int num); }