Google Map changing coordinates after saving post
Support › MB Geolocation › Google Map changing coordinates after saving postResolved
- This topic has 5 replies, 2 voices, and was last updated 4 years, 11 months ago by
Long Nguyen.
-
AuthorPosts
-
May 24, 2020 at 3:39 AM #19764
rohh
ParticipantHi, 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.
May 24, 2020 at 4:29 PM #19767Long Nguyen
ModeratorHi,
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.
May 24, 2020 at 5:11 PM #19768rohh
ParticipantHi,
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/b1afb161550040aa9edb71632cabfca1All best
May 25, 2020 at 8:01 AM #19773Long Nguyen
ModeratorHi,
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.
May 26, 2020 at 2:31 AM #19808rohh
ParticipantHi,
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 theSameSite
attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set withSameSite=None
andSecure
. 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.May 28, 2020 at 11:03 AM #19872Long Nguyen
ModeratorHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.