Is there a way to programmatically (via js) update the value of the google map field ?
I’m retrieving the gps coordinates of an image when it’s uploaded but would like to update the google map field with these data, without submitting the post.
So far, I’m able to change the input of the search bar, but it does not create a pin nor change the actual location of the map…
I would guess the reason the map isn’t updated is because it does not recognise when the field is being filled programmatically. It might be solved by triggering the enter button after you’ve filled the field.
Try something like this:
var e = jQuery.Event("keydown");
e.which = 50; // # Some key code value
Are the values saved when you’re saving the post at least?