/**
 * 和手机定位系统相关的API<br>
 * @module lbs
 */

/**
 * @class lbs
 */

/**
 * 获取当前位置的经纬度,如果是在微信端定位,需要开发者自行导入高德地图的js,具体可参考高德地图的jssdk文档
 * @namespace cmp
 * @method getCurrentPosition
 * @param {Object} options 配置参数
 *      @param {Number} [options.maximumAge] 定义一个位置信息的缓存生命周期,以毫秒为单位
 *      @param {Number} [options.timeout] 由于获取位置是异步函数,所以这里定义了获取当前位置的超时,以毫秒为单位
 *      @param {Boolean} [options.enableHighAccuracy] 告诉设备需要更加精确的定位服务,默认的一般使用基于网络的定位,但使用卫星定位更加准确
 *      @param {Function} options.success 定位成功回调
 *      @param {Function} [options.error] 定位失败回调
 * @example
 * ```
 * <script>
 *    cmp.lbs.getCurrentPosition({
 *        success:function(result){
 *            result = {
 *                success:true,
 *                coordinate:{
 *                    longitude:101001, //经度
 *                    latitude:28822 //维度
 *                }
 *            }
 *        },
 *        error:function(error){
 *           error = {
 *              msg:"定位失败提示语"
 *           }
 *        }
 *    });
 * </script>
 * ```
 */

/**
 * 表单-地图标注(只支持在cmp里)
 * @namespace cmp
 * @method markLocation
 * @param {Object} options 配置参数
 *      @param {Function} options.success 定位成功回调
 *      @param {Function} [options.error] 定位失败回调
 * @example
 * ```
 * <script>
 *    cmp.lbs.markLocation({
 *        success:function(result){
 *             //do something with result
 *        },
 *        error:function(error){
 *        }
 *    });
 * </script>
 * ```
 */

/**
 * 表单-拍照定位(只支持在cmp里)
 * @namespace cmp
 * @method takePicture
 * @param {Object} options 配置参数
 *      @param {Function} options.success 定位成功回调
 *      @param {Function} [options.error] 定位失败回调
 * @example
 * ```
 * <script>
 *    cmp.lbs.takePicture({
 *        success:function(result){
 *             //do something with result
 *        },
 *        error:function(error){
 *        }
 *    });
 * </script>
 * ```
 */

/**
 * 表单-位置定位,获取当前的经纬度,以及时间、地名信息(只支持在cmp里)
 * @namespace cmp
 * @method getLocationInfo
 * @param {Object} options 配置参数
 *      @param {Function} options.success 定位成功回调
 *      @param {Function} [options.error] 定位失败回调
 * @example
 * ```
 * <script>
 *    cmp.lbs.getLocationInfo({
 *        success:function(result){
 *             //do something with result
 *        },
 *        error:function(error){
 *        }
 *    });
 * </script>
 * ```
 */

/**
 * 显示地图信息(只支持在cmp里)
 * @namespace cmp
 * @method showLocationInfo
 * @param {Object} options 配置参数
 *      @param {String} options.lbsUrl 获取lbs信息的url地址 http://10.5.6.240:88/seeyon/rest/cmplbs/1814357976477972035
 *      @param {String} [options.userName] 用户名(可以不传)
 *      @param {String} [options.memberIconUrl] 用户头像url地址 (可以不传)
 *      @param {Function} options.success 成功回调
 *      @param {Function} [options.error] 失败回调
 * @example
 * ```
 * <script>
 *    cmp.lbs.showLocationInfo({
 *        lbsUrl:"http://10.5.6.240:88/seeyon/rest/cmplbs/1814357976477972035",
 *        userName:"hezi",
 *        memberIconUrl:"http://10.5.6.240:88/seeyon/rest/avtart/101001"
 *        success:function(result){
 *             //do something with result
 *        },
 *        error:function(error){
 *        }
 *    });
 * </script>
 * ```
 */
    
Top