Skip to content

Commit 090e5e3

Browse files
author
Dmitry Berezovsky
committed
map method provides address components
1 parent 43a1f4a commit 090e5e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

locationpicker.jquery.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,13 @@
262262
* }
263263
*/
264264
if (params == undefined) { // Getter is not available
265+
var locationObj = GmUtility.locationFromLatLng(gmapContext.location);
266+
locationObj.formattedAddress = gmapContext.locationName;
267+
locationObj.addressComponents = gmapContext.addressComponents;
265268
return {
266269
map: gmapContext.map,
267-
marker: gmapContext.marker
270+
marker: gmapContext.marker,
271+
location: locationObj
268272
}
269273
} else {
270274
return null;

0 commit comments

Comments
 (0)