導航:首頁 > 軟體資訊 > app上地圖用什麼開發的

app上地圖用什麼開發的

發布時間:2024-10-24 21:31:44

1. 查看衛星地圖的軟體

查看衛星地圖的軟體是Earth-地球。

Earth-地球是北斗航路公司開發的地球衛星地圖App。它不僅是一款地圖導航神器,還可以提供全球各地高清實景地圖,讓你可以用360度全景旋轉視角瀏覽全貌。

App里的圖像數據更是涵蓋了海量的街道、景區、景點、名勝古跡等等,讓你足不出戶游遍全球各地的每一個角落。

它的功能跟海外的谷歌地圖類似,但由於一些限制,谷歌地圖在國內無法使用,它可以很好地替代谷歌地圖。

App無需登錄打開即可使用,首頁就是一個地球界面,通過滑動屏幕或者在搜索框輸入地址都可以查找精確地理位置。

Earth-地球產品功能:

地圖模式,教你認識世界地圖上的各個國家版塊。右上角的工具箱里還有個「測量與繪圖」功能,這個功能非常適合有測繪需求的人使用。

晝夜模型,閱覽地球的自轉的酷炫晝夜面貌。

熱門標識,在地球上查看各地的科普特點,例如大熊貓、天津快板等。網路全書式動物介紹,直觀呈現棲息地,相關信息及時掌握。

多球模式,地理課上可以棗御展示給枯沖學生看,陸地板塊和海洋的不沒岩殲同。

衛星模式,衛星圖需要載入時間,使用時耐心等待地球數據載入。

2. 在手機App上怎樣顯示地圖

通過一個簡單的示例一步步介紹如何在android應用中使用網路地圖api。

1)下載網路地圖移動版API(Android)開發包
要在Android應用中使用網路地圖API,就需要在工程中引用網路地圖API開發包,這個開發包包含兩個文件:mapapi.jar和libBMapApiEngine.so。下載地址:http://dev..com/wiki/static/imap/files/BaiMapApi_Lib_Android_1.0.zip
2)申請API Key
和使用Google map api一樣,在使用網路地圖API之前也需要獲取相應的API Key。網路地圖API Key與你的網路賬戶相關聯,因此您必須先有網路帳戶,才能獲得API Key;並且,該Key與您引用API的程序名稱有關。
網路API Key的申請要比Google的簡單多了,其實只要你有網路帳號,應該不超過30秒就能完成API Key的申請。申請地址:http://dev..com/wiki/static/imap/key/
3)創建一個Android工程
這里需要強調一點:網路地圖移動版api支持Android 1.5及以上系統,因此我們創建的工程應基於Android SDK 1.5及以上。
工程創建完成後,將mapapi.jar和libBMapApiEngine.so分別拷貝到工程的根目錄及libs/armeabi目錄下,並在工程屬性->java Build Path->Libraries中選擇「Add JARs」,選定mapapi.jar,這樣就可以在應用中使用網路地圖API了。

4)在布局文件中添加地圖控制項(res/layout/main.xml)

[xhtml] view plain
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com..mapapi.MapView android:id="@+id/map_View"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
/>
</LinearLayout>

5)創建Activity繼承com..mapapi.MapActivity

[java] view plain
package com.liufeng.map;

import android.graphics.drawable.Drawable;
import android.os.Bundle;

import com..mapapi.BMapManager;
import com..mapapi.GeoPoint;
import com..mapapi.MapActivity;
import com..mapapi.MapController;
import com..mapapi.MapView;

public class MainActivity extends MapActivity {
private BMapManager mapManager;
private MapView mapView;
private MapController mapController;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// 初始化MapActivity
mapManager = new BMapManager(getApplication());
// init方法的第一個參數需填入申請的API Key
mapManager.init("", null);
super.initMapActivity(mapManager);

mapView = (MapView) findViewById(R.id.map_View);
// 設置地圖模式為交通地圖
mapView.setTraffic(true);
// 設置啟用內置的縮放控制項
mapView.setBuiltInZoomControls(true);

// 用給定的經緯度構造一個GeoPoint(緯度,經度)
GeoPoint point = new GeoPoint((int) (47.118440 * 1E6), (int) (87.493147 * 1E6));

// 創建標記maker
Drawable marker = this.getResources().getDrawable(R.drawable.iconmarka);
// 為maker定義位置和邊界
marker.setBounds(0, 0, marker.getIntrinsicWidth(), marker.getIntrinsicHeight());

// 取得地圖控制器對象,用於控制MapView
mapController = mapView.getController();
// 設置地圖的中心
mapController.setCenter(point);
// 設置地圖默認的縮放級別
mapController.setZoom(12);
}

@Override
protected boolean isRouteDisplayed() {
return false;
}

@Override
protected void onDestroy() {
if (mapManager != null) {
mapManager.destroy();
mapManager = null;
}
super.onDestroy();
}

@Override
protected void onPause() {
if (mapManager != null) {
mapManager.stop();
}
super.onPause();
}

@Override
protected void onResume() {
if (mapManager != null) {
mapManager.start();
}
super.onResume();
}
}

6)在AndroidManifest.xml中配置

[xhtml] view plain
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.liufeng.map"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MainActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
</manifest>

說明:上面的應用只是簡單的展示了網路地圖(交通地圖),並將一個指定的點(根據經緯度確定)展示在手機屏幕的中心。當然,實際項目中涉及的map應用不會這么簡單,網路地圖API提供了豐富的功能介面。

3. Android app在國內該使用哪個地圖SDK

一般國內的話,使用的網路sdk或者高德地圖,畢竟他們兩家做的還是不錯的,有很多豐富的api可以使用,實現一些具體的邏輯。

閱讀全文

與app上地圖用什麼開發的相關的資料

熱點內容
程序員賽車的gif 瀏覽:407
購買新車能用到什麼app 瀏覽:771
阿里演算法工程師待遇 瀏覽:401
java的jar命令 瀏覽:687
編程渣的人該怎麼辦 瀏覽:714
修改器顯示文件夾為空的 瀏覽:856
單片機按鈕實現播放音樂 瀏覽:972
音量皮膚怎麼設置的安卓 瀏覽:320
編譯目錄無效 瀏覽:967
java韓順平下載 瀏覽:857
用python抓取基金凈值 瀏覽:265
渦旋壓縮機的優點 瀏覽:54
加密提取碼視頻 瀏覽:108
app上地圖用什麼開發的 瀏覽:376
python屏幕截圖選擇屏幕1或者2 瀏覽:466
centos7內網中安裝編譯器 瀏覽:39
手機下載電影無法解壓 瀏覽:95
eos程序員教程 瀏覽:967
法語中的命令式有幾種變位 瀏覽:619
倒排表設計python 瀏覽:910