Skip to content

Commit df3b4c3

Browse files
author
Dmitry Berezovsky
committed
OnChanged callback will be invoked after initialization
1 parent 090e5e3 commit df3b4c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

locationpicker.jquery.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@
309309
GmUtility.setPosition(gmapContext, new google.maps.LatLng(settings.location.latitude, settings.location.longitude), function(context){
310310
updateInputValues(settings.inputBinding, gmapContext);
311311
context.settings.oninitialized($target);
312+
var currentLocation = GmUtility.locationFromLatLng(gmapContext.location);
313+
settings.onchanged.apply(gmapContext.domContainer, [currentLocation, context.radius, false]);
312314
});
313315
// Set up input bindings if needed
314316
setupInputListenersInput(settings.inputBinding, gmapContext);

0 commit comments

Comments
 (0)