If you think the Android project android_maplib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
* Project: NextGIS Mobile/*www.java2s.com*/
* Purpose: Mobile GIS for Android.
* Author: Dmitry Baryshnikov (aka Bishop), bishop.dev@gmail.com
* *****************************************************************************
* Copyright (c) 2012-2015. NextGIS, info@nextgis.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/package com.nextgis.maplib.api;
import android.graphics.Bitmap;
import com.nextgis.maplib.datasource.GeoEnvelope;
import com.nextgis.maplib.datasource.GeoPoint;
publicinterface IMapView
extends IRenderer
{
public Bitmap getView(boolean clearBackground);
public Bitmap getView(float x, float y, boolean clearBackground);
public Bitmap getView(float x, float y, float scale);
publicvoid setViewSize(int w, int h);
publicfloat getZoomLevel();
/**
* Set new map extent according zoom level and center
*
* @param zoom
* A zoom level
* @param center
* A map center coordinates
*/publicvoid setZoomAndCenter(float zoom, GeoPoint center);
public GeoPoint getMapCenter();
public GeoEnvelope getFullBounds();
public GeoEnvelope getCurrentBounds();
public GeoEnvelope getLimits();
publicvoid setLimits(GeoEnvelope limits, int limitsType);
public GeoPoint screenToMap(final GeoPoint pt);
public GeoPoint mapToScreen(final GeoPoint pt);
public GeoEnvelope screenToMap(final GeoEnvelope env);
}