2 Star 0 Fork 0

Many Peaks / MapLib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Zlib

mapLib

介绍

地图组件

版本

安装教程

1 加上网址

    allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
}

2 使用

    dependencies {
        //地图
    implementation 'com.gitee.ZhongZaiYunTu_qf:mapLib:1.1'
}

使用说明

  1. 跳转到地图选择点

1.1 跳转到地图选择界面

        ActivityUtils.startActivityForResult(this, LocationSelectionActivity.class, 123);

1.2 返回选择点数据

        @Override
        public void onActivityResult(int requestCode, int resultCode, Intent data) {
            super.onActivityResult(requestCode, resultCode, data);
            if (resultCode == Activity.RESULT_OK) {
                MapListEntity  mapBean = (MapListEntity) data.getSerializableExtra(BundleKey.ENTITY.name());
                 LatteLogger.json(GsonUtils.toJson(mapBean));
            }
        }
  1. 绘制地图界面

2.1 添加地址

        ActivityUtils.startActivity(AddressAddedActivity.class);

参与贡献

zlib License (C) 2021 钎凨 This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.

简介

定位位置获取(发布版本时,组织比个人稳定) 展开 收起
Java
Zlib
取消

发行版 (22)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/manypeaks/mapLib.git
git@gitee.com:manypeaks/mapLib.git
manypeaks
mapLib
MapLib
master

搜索帮助