Google MAP API 平滑迁移为MapABC API

2,878 views

转帖备用一下,发现利用google mapview的satellite模式叠加了路线图,由于各种原因,路线图与satellite图有偏移,视图显示较乱。 目前还在寻找只显示satellite视图的方法,或者只能试着采用国内的地图API了,mapabc备用

问题1:
为什么要从Google Map Android API迁移到MapABC Map Android API?
答:MapABC Android API 实现了 Google Android API的所有功能,并在
Google Android API 的基础上做了功能扩展和本土化工作。如:POI搜索,路劲规
划,周边搜索,实时交通信息等。同时MapABCAndroid API还支持基站和WiFi
定位等。
另:Google 已退出中国市场,到目前为止还没有获得在中国从事互联网服务的
资质,存在若干不确定因素 。
问题2:
如何从Google Map Android API迁移到 MapABC Map Android API?
答:MapABC Android API 兼容 Google Map Android API,其迁移过程比
较简单。具体步骤如下:
1.在 http://code.mapabc.com/ 上下载程序包(如 V5.0Beta 程序包)。如下图
2.在 http://code.mapabc.com/key_mobile.shtml 上申请MapABC移动版Key
3.在 Eclipse下新建一个Android Project (在选择 Build Target 时不必选择 Google APIs,选择普通 android X.X就可以)。
4. 在新建的android Project 上导入 MapABC API 开发包
项目右键 Build Path Configure Build Path…
 

 

5.将基于Google Android API 的项目源码转移到新建的Android Project项目中。

6.将项目中 com.google.android.maps 替换为 com.mapabc.mapapi



7.将res/layout下用到 MapView的com.google.android.maps.MapView替换为com.mapabc.mapapi.MapView,同时将android:apiKey 替换为新申请的MapABC key。
8.测试APP功能是否正常。
9.打包项目生成APK(调试和正式发布的MapABC key 可以是同一个)。
10.迁移完毕.

转载本站文章请注明,转载自:阿达基站路测的天空[http://blog.signalsitemap.com]

本文链接:Google MAP API 平滑迁移为MapABC API | 阿达基站路测的天空

This entry was posted in 地图News and tagged . Bookmark the permalink.

Comments are closed.