Skip to content

MapView in android to display indoor floor plan

Notifications You must be signed in to change notification settings

Celine00/IndoorMapView

 
 

Repository files navigation

MapView in android to display indoor floor plan

Download

使用方法

  • dependencies 里添加
compile 'sysu.mobile.limk:indoormapview:0.24'
  • 创建一个MapView
<sysu.mobile.limk.library.indoormapview.MapView
    android:id="@+id/mapview"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    custom:debug="true"
    custom:max_scale="4"
    custom:min_scale="0.2" />
  • 调用Mapview执行相关操作
// 获取MapView对象
mMapView = (MapView) findViewById(R.id.mapview);
// 初始化MapView
mMapView.initNewMap(getAssets().open("gogo.png"), 1, 0, new Position(652, 684));
  • 更新:禁止地图移出MapView

About

MapView in android to display indoor floor plan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%