jquery-locationpicker-plugin

JQuery Location Picker plugin

  • 所有者: Logicify/jquery-locationpicker-plugin
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

JQuery Location Picker plugin

Location Picker

This plug-in allows finding and selecting a location on the Google map. Along with single point selection, it allows area selection by choosing a point and specifying a radius. The selection can be saved to any HTML input element or processed by Javascript with callback support.

An optional automatic address resolver can reverse geocode the selection to an address. The plug-in also supports searching by address typed into the bound input element which uses auto-complete feature from Google API to make the search process easier. In this case the marker will be automatically positioned on the map after successful address resolution.

Usage

The plug-in requires jQuery and the Google Maps API. Integration is pretty simple:

  • Add jQuery and Google Maps API to the <head> of your HTML file:
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
// be careful to include the parameter "libraries=places"
<script type="text/javascript" src='http://maps.google.com/maps/api/js?sensor=false&libraries=places'></script>
<script src="js/locationpicker.jquery.js"></script>
  • Put container somewhere in your page's <body>:
<div id="somecomponent" style="width: 500px; height: 400px;"></div>
  • Attach the plug-in to container:
<script>
$('#somecomponent').locationpicker();
</script>

Documentation and Examples

Documentation along with examples available here.

Credits

主要指标

概览
名称与所有者Logicify/jquery-locationpicker-plugin
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2013-10-03 13:16:53
推送于2018-12-25 21:34:08
最后一次提交2017-10-09 19:28:29
发布数15
最新版本名称0.1.16 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数389
关注者数24
派生数260
提交数92
已启用问题?
问题数120
打开的问题数52
拉请求数15
打开的拉请求数10
关闭的拉请求数12
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?