BrilliantPlugins / geometa-acf

A GeoMeta custom field type for ACF
GNU General Public License v2.0
9 stars 3 forks source link

Map wrapping drawing can result in >180, <-180 longitude #7

Open stuporglue opened 6 years ago

stuporglue commented 6 years ago

TODO: Disable map wrapping so that coordinates are always inbounds.

Figured out what the deal is and it is an issue with how the ACF plugin stores a drawn object if you dont use the centered version of the map and only affects longitude. If you use the wrapped part of the map you will go outside the bounds of the sphere and it will be 360 degrees added to the actual longitude. I am not sure if this is an issue with the geometa library or the ACF map part of the plugin. Any comments would be appreciated.

See: https://wordpress.org/support/topic/geo-table-does-not-match-post-meta-table/