Support Forum
Support › Meta Box Geolocation › Google Map changing coordinates after saving postResolved
Hi, I have a problem with the map metabox. When I write the address in the text field, the map refreshes and shows correct location. After saving the page and refreshing the address remains the same, but the location on map changes. It does not always come back to the same place though. It seems like it has some constant shift in the coordinates. Always shows everything correctly on input, and after saving the coordinates change.
Hi,
Please see my screen record https://www.loom.com/share/ca767d5c1d8c46e9bc073eb042d5f67e.
The map shows the address field as well after saving and refreshing the page. Make sure you are using the latest version of Meta Box plugin v5.3.0 and please take a screen record of this problem. I will take a closer look and give a quick response.
Hi,
Thanks for your fast response, here is the video showing the issue. Please, notice that when I choose New York for the second time, it shows me the same area as for the first time. It saves new data, but it looks like the system shifts the coordinates somehow.
I use MetaBox AIO and everything is updated. My main MetaBox plugin is 5.3.0 and AIO is 1.11.8.
Here is the link:
https://www.loom.com/share/b1afb161550040aa9edb71632cabfca1
All best
Hi,
It looks very strange, on my testing site it does not show the problem like your screen record. Could you please deactivate all plugins except Meta Box and Meta Box AIO then check the problem again? Also, please open the console tab of the browser developer tools and let me know if there is any JavaScript error.
Hi,
I have deactivated the plugins, did not help at all. This is all that I can find in the console:
deprecated.min.js:2 wp.components.IconButton is deprecated. Please use wp.components.Button instead.
c @ deprecated.min.js:2
(anonymous) @ components.min.js:7
je @ react-dom.min.js:78
Rg @ react-dom.min.js:87
ph @ react-dom.min.js:218
lh @ react-dom.min.js:126
O @ react-dom.min.js:121
ze @ react-dom.min.js:118
(anonymous) @ react-dom.min.js:53
unstable_runWithPriority @ react.min.js:26
Ma @ react-dom.min.js:52
mg @ react-dom.min.js:52
V @ react-dom.min.js:52
Sb @ react-dom.min.js:213
Mg @ react-dom.min.js:85
e @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
o @ data.min.js:2
(anonymous) @ data.min.js:2
p @ data.min.js:2
(anonymous) @ redux-routine.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
dispatch @ data.min.js:2
(anonymous) @ redux-routine.min.js:2
(anonymous) @ redux-routine.min.js:2
e @ redux-routine.min.js:2
(anonymous) @ redux-routine.min.js:2
r.any @ redux-routine.min.js:2
(anonymous) @ redux-routine.min.js:2
e @ redux-routine.min.js:2
(anonymous) @ redux-routine.min.js:2
Show 3 more frames
post.php?post=142&action=edit:1 [DOM] Found 2 elements with non-unique id #_wpnonce: (More info: https://goo.gl/9p2vKq) <input type="hidden" id="_wpnonce" name="_wpnonce" value="cc204ea090"> <input type="hidden" id="_wpnonce" name="_wpnonce" value="d6b98f58fb">
post.php?post=142&action=edit:1 A cookie associated with a cross-site resource at http://gstatic.com/ was set without the SameSite
attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None
and Secure
. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
Hi,
Could you please share the code which creates fields Map and Text? I will check the code on my end and let you know if there is any problem.