Geotag plugin – map coordinates not displayed correctly – bad position
-
problem with decimal part of lat and long numbers when working with coordinates in db and javascript, so the position shown is e.g. (50; 13) instead of (50.1545;13.934) etc.
Maybe problem with locale (I’m using czech version of WP) or there is an error in coordinates computing.
In database the coords are saved with decimal points but some are with decimal point as “,” and some with “.” – I don’t know what changed this, happend in the process of theming site (some content with positions was already created – the old posts were saved in db with “.” as decimal point – when shown, these were translated in geotag for JS to “,” which google js cannot recognize – position lost)
While new posts are saved in db with decimal point as “,” and then when edited the decimal part of nuber is lost as well when handed over to google js – just whole part of nuber is sent as coords – so the position is lost again..
Probably problem with locale setting.
- The topic ‘Geotag plugin – map coordinates not displayed correctly – bad position’ is closed to new replies.