Skip to content

Commit 7c1baa8

Browse files
author
corvis
committed
Merge remote-tracking branch 'origin/master'
2 parents 75e0825 + 0842f67 commit 7c1baa8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ JQuery Location Picker plugin
33

44
![Location Picker](http://logicify.github.io/jquery-locationpicker-plugin/images/basic_ui.png)
55

6-
This plug-in allows to easily find and select a location on the Google map. Along with a single point selection, it allows to choose an area by providing its center and the radius. All the data can be saved to any HTML input element automatically as well as be processed by Javascript (callback support).
6+
This plug-in allows to easily find and select a location on the Google map. Along with a single point selection, it allows to choose an area by providing its center and the radius in meters. All the data can be saved to any HTML input element automatically as well as be processed by Javascript (callback support).
77

88
The other feature of the plug-in is automatic address resolver which allows to get address line from the selected latitude and longitude. 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.
99

locationpicker.jquery.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,16 @@
146146
if (!inputBinding) return;
147147
var currentLocation = GmUtility.locationFromLatLng(gmapContext.location);
148148
if (inputBinding.latitudeInput) {
149-
inputBinding.latitudeInput.val(currentLocation.latitude);
149+
inputBinding.latitudeInput.val(currentLocation.latitude).change();
150150
}
151151
if (inputBinding.longitudeInput) {
152-
inputBinding.longitudeInput.val(currentLocation.longitude);
152+
inputBinding.longitudeInput.val(currentLocation.longitude).change();
153153
}
154154
if (inputBinding.radiusInput) {
155-
inputBinding.radiusInput.val(gmapContext.radius);
155+
inputBinding.radiusInput.val(gmapContext.radius).change();
156156
}
157157
if (inputBinding.locationNameInput) {
158-
inputBinding.locationNameInput.val(gmapContext.locationName);
158+
inputBinding.locationNameInput.val(gmapContext.locationName).change();
159159
}
160160
}
161161

0 commit comments

Comments
 (0)