Title: [Plugin: Leaflet Maps Marker] problems with setting/changing marker coordinates
Last modified: August 20, 2016

---

# [Plugin: Leaflet Maps Marker] problems with setting/changing marker coordinates

 *  Resolved [cheeseman1983](https://wordpress.org/support/users/cheeseman1983/)
 * (@cheeseman1983)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/)
 * when i add a new marker, the geolocation is always saved with the coordinates
   48.000000 and 13.000000. mostly it’s not possible to change the coordinates also.
 * but sometimes it was possible to change the coordinates, but to other ones as
   i pointed via a marker on a map.
 * implementation here: [http://www.klimakultur.at/weltumweltwoche-klimagenusswoche-2012/](http://www.klimakultur.at/weltumweltwoche-klimagenusswoche-2012/)
 * [http://wordpress.org/extend/plugins/leaflet-maps-marker/](http://wordpress.org/extend/plugins/leaflet-maps-marker/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/#post-2541126)
 * mhhh – lat/lon values for markers and layer centers are saved with the mysql-
   type decimal(9,6).
    What I could imagine is, that your mysql database is configured
   to round data types like these (I had this problem before, when I used float-
   data-type, so I switched to decimal().
 * Is the lat/lon value correctly entered in form field when selecting a marker 
   position by mouse click or do you always get 48.000000 and 13.000000 when selection
   a position by mouseclick?
 * If you don´t get any results, an admin access to your installation would help
   finding the problem.
 *  Thread Starter [cheeseman1983](https://wordpress.org/support/users/cheeseman1983/)
 * (@cheeseman1983)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/#post-2541312)
 * it seems it is the rounding problem. i’ve chosen a point far away and it rounded
   again to non-float.
 * Can i fix this inside wordpress or do i need admin rights for the database?
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/#post-2541313)
 * please see if the lon/lat values are rounded in the database by checking the 
   table wp_leafletmapsmarker_markers. I guess
    that this is where the problem is
   located and has to be fixed. Unfortunately I am no expert in mysql configurations…
 *  Thread Starter [cheeseman1983](https://wordpress.org/support/users/cheeseman1983/)
 * (@cheeseman1983)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/#post-2541337)
 * Response from the admin in german:
 * in der Datenstruktur steht in der Tabelle wp_leafletmapsmarker_markers die Datenfelder“
   lon” und “lat” auf: decimal(9,6), also eine 3-stellige Dezimalzahl mit 6 Kommastellen.
   Die eingetragenen Werte stehen allerdings auf 48.000000 bzw. 12.000000
 * Dasselbe gilt für die tabelle wp_leafletmapsmarker_layers und die Felder “layerviewlat”
   und “layerviewlon”. Das Problem muss also irgendwo anders liegen, irgendwo im
   Quellcode wird wohl ein Datentyp als Integer definiert sein.
 * Das kann ich aber leider nicht nachvollziehen.
 * translation:
    data type is decimal (9,6) for wp_leafletmapsmarker_markers and
   wp_leafletmapsmarker_layers, so the problem should be in the source code of the
   plugin, not in the database
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/#post-2541338)
 * mhhh – bin grad etwas überfragt woran dieser Fehler liegen könnte. Kannst du 
   mit kurzfristig Adminzugriff auf dein Blog geben, damit ich dort debuggen kann?
   Würde die Fehlerbehebung wesentlich beschleunigen…
    lg Robert
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/#post-2541343)
 * will be fixed with v1.6

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Leaflet Maps Marker] problems with setting/changing marker coordinates’
is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-leaflet-maps-marker-problems-with-settingchanging-marker-coordinates/#post-2541343)
 * Status: resolved