jquery-locationpicker-plugin

JQuery Location Picker plugin

  • Owner: Logicify/jquery-locationpicker-plugin
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With OwnerLogicify/jquery-locationpicker-plugin
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2013-10-03 13:16:53
Pushed At2018-12-25 21:34:08
Last Commit At2017-10-09 19:28:29
Release Count15
Last Release Name0.1.16 (Posted on )
First Release Name0.1.0 (Posted on )
用户参与
Stargazers Count389
Watchers Count24
Fork Count260
Commits Count92
Has Issues Enabled
Issues Count120
Issue Open Count52
Pull Requests Count15
Pull Requests Open Count10
Pull Requests Close Count12
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private