UNPKG

imobile_for_javascript

Version:

iMobile for JavaScript,是SuperMap iMobile推出的一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。

27 lines (25 loc) 518 B
/** * Created by will on 2016/7/4. */ import { NativeModules } from 'react-native'; let M = NativeModules.JSMaps; /** * @class Maps * @deprecated */ export default class Maps{ /** * 根据序号返回地图 * @memberOf Maps * @param {number} index - 地图序号 * @returns {Promise.<*>} */ async get(index){ try{ var {mapName} = await M.get(this.mapsId,index); return mapName; }catch(e){ console.error(e); } } }