• Resolved chaosad2

    (@chaosad2)


    Hi,

    I try to use [overviewmap], but don’t really understand how it works.

    I created two custom fields with ACF, called “latitude_depart” and “longitude_depart”.

    Then I use this code :

    [leaflet-map fitbounds]
    [overviewmap debug lat=latitude_depart lon=longitude_depart]
    [hover class=leafext-overview-tooltip]

    I can see the map and just “no leaflet-marker custom fields”.

    Are ACF fields doesn’t work ?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author hupe13

    (@hupe13)

    You need at least one custom field – for latlng. Herein you put lat and lng in any form, see column latlng-orig and give the custom field a name. The default name is overview-latlng. Then you write

    [overviewmap debug latlng=name]

    or if you use the default name overview-latlng:

    [overviewmap debug]

    If it don’t show any errors you can omit debug and the marker are shown on the map:

    [leaflet-map fitbounds]
    [overviewmap latlng=name]

    Does this work?

    Thread Starter chaosad2

    (@chaosad2)

    Yes, ACF fields plugin.

    I changed some parameters in ACF, I can see “debug table”, with coordinates, OK.

    But no marker on the map. ??

    • This reply was modified 7 months, 1 week ago by chaosad2.
    • This reply was modified 7 months, 1 week ago by chaosad2.
    Plugin Author hupe13

    (@hupe13)

    Does it work with ACF fields, or just with classic custom fields ?

    I tested it with the classic (default) custom fields only. You mean the ACF plugin? I will test it.

    Thread Starter chaosad2

    (@chaosad2)

    Yes, ACF plugin.

    Well, I changed some parameters in ACF and now I can see “debug table”, with coordinates : OK, it seems to work with ACF plugin.

    But there’s no marker on the map. ??

    Plugin Author hupe13

    (@hupe13)

    And if you omit debug?

    Thread Starter chaosad2

    (@chaosad2)

    I can’t see markers, with or without “debug”.

    Here is my code :

    [overviewmap debug show_thumbnails]
    [leaflet-map height=100svh fitbounds]
    [hover class=leafext-overview-tooltip]
    [zoomhomemap]
    [locatecontrol]
    [geosearch]

    • This reply was modified 7 months, 1 week ago by chaosad2.
    Plugin Author hupe13

    (@hupe13)

    [leaflet-map height=100svh fitbounds]
    [overviewmap show_thumbnails]
    [hover class=leafext-overview-tooltip]
    [zoomhomemap]
    [locatecontrol]
    [geosearch]
    Thread Starter chaosad2

    (@chaosad2)

    Great !

    Thank you for your help !

    Plugin Author hupe13

    (@hupe13)

    I have a question about ACF: Does the custom field appear on every post / page or it is possible to hide it, if it is empty? It seems, there is the next bug. This does not work correct in my tests.

    Thread Starter chaosad2

    (@chaosad2)

    Well,, I don’t know, because I don’t have any empty custom fields !

    All of my fields are automatically filled with calculated gpx datas (as lat and lng, coordinates of the first gpx waypoint of my track).

    But in ACF plugin, I can’t see any option to easily hide a field if it’s empty.

    One more question after testing overviewmap : what about negative lat or lng ? For these coords, marker is shown just below the map. (you can actually see it on the page I need help with).

    Plugin Author hupe13

    (@hupe13)

    what about negative lat or lng ?

    Bug. :-((

    Plugin Author hupe13

    (@hupe13)

    Fixed.

    Thread Starter chaosad2

    (@chaosad2)

    Thznk you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Overview map’ is closed to new replies.