tingle-dd-map-field

0.1.2 • Public • Published

tingle-dd-map-field npm version

Install

npm install tingle-dd-map-field --save

Props

  • readOnly: boolean readOnly=true时,相当于node=VIEW

  • mode: enum 地图组件模式

//枚举
MapField.MODE = {
    VIEW: 0, //查看位置,不能修改,相当于readOnly=true
    LOCATE: 1, //定位到当前位置
    MODIFY: 2, //定位到参数传入的位置
  };
  • scope: number 定位选择范围, 默认值500

  • value: object poi

    • readOnly=true/mode=VIEW时 longitude, latitude, title是必须传入的
    • mode=MODIFY时 longitude, latitude是必须传入的
{
   province:'北京市',
   provinceCode:'110000',
   city:'北京市',
   cityCode:'010',
   adCode:'110101',
   adName:'东城区',
   direction:'',
   distance:76,
   postCode:'010',
   title:'故宫博物院-日曜天熙',
   snippet:'故宫内',
   longitude:116.396019,
   latitude:39.921153
}

Demos

Links

Package Sidebar

Install

npm i tingle-dd-map-field

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • injekt