Forums

Leaflet Maps Marker
[resolved] problems with setting/changing marker coordinates (7 posts)

  1. cheeseman1983
    Member
    Posted 4 months ago #

    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://wordpress.org/extend/plugins/leaflet-maps-marker/

  2. RobertHarm
    Member
    Posted 4 months ago #

    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.

  3. cheeseman1983
    Member
    Posted 3 months ago #

    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?

  4. RobertHarm
    Member
    Posted 3 months ago #

    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...

  5. cheeseman1983
    Member
    Posted 3 months ago #

    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

  6. RobertHarm
    Member
    Posted 3 months ago #

    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

  7. RobertHarm
    Member
    Posted 3 months ago #

    will be fixed with v1.6

Reply

You must log in to post.

About this Plugin

About this Topic