41 Star 112 Fork 37

kinegratii / Bootstrap-AMapPositionPicker

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

AMapPositionPicker

概述

AMapPositionPicker是一款基于高德地图的位置选择插件,使用jQuery开发。

特性

主要特性有:

  • AMD & CMD 引入
  • data-*属性配置
  • 初始位置数据
  • 浏览器定位
  • 字段显示格式、验证
  • 数据单向绑定
  • 支持地理逆编码
  • 外观样式定制
  • 工具:在地图上显示点标记

使用方法

  1. 依次引入高德地图JS、jQuery、Bootstrap和bootstrap.AMapPositionPicker.min.js文件。
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=您申请的key值"></script>
<script type="text/javascript" src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script type="text/javascript" src="./dist/bootstrap.AMapPositionPicker.min.js"></script>
  1. 在目标输入框初始化选项。

html代码

<input type="text" id="id_address_input" name="address"/>

JS代码

$("#id_address_input").AMapPositionPicker();

更多示例请可查看 开发文档

构建

项目使用gulp工具构建。

生成 release 文件

gulp release

作者和协议

本项目基于MIT协议开源。

The MIT License (MIT) Copyright (c) 2016-2017 kinegratii Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

AMapPositionPicker 是一款基于高德地图的位置选择插件,使用 jQuery 开发。 展开 收起
取消

发行版 (4)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/kinegratii/Bootstrap-AMapPositionPicker.git
git@gitee.com:kinegratii/Bootstrap-AMapPositionPicker.git
kinegratii
Bootstrap-AMapPositionPicker
Bootstrap-AMapPositionPicker
master

搜索帮助