Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 840 Bytes

readme.md

File metadata and controls

30 lines (25 loc) · 840 Bytes

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