• Resolved eugenegrant

    (@eugenegrant)


    leaflet-parentgroup not working as expected.
    The child menu elements are not indented.
    Also the parent checkbox(Places) is not working as expected.

    Here are the relevant shortcodes:

    <!-- wp:shortcode -->
    [leaflet-optiongroup option="iconClass" values="school,park,other" groups="Schools,Parks,Other"]
    <!-- /wp:shortcode -->

    <!-- wp:shortcode -->
    [leaflet-parentgroup parent=Places childs="Schools,Parks,Other"]
    <!-- /wp:shortcode -->

    WordPress v6.5.2

    Leaflet Map v3.4.1

    Extensions for Leaflet Map v4.3.1

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

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

    (@hupe13)

    It works as expected, see my examples. I may consider offering more options for the design of the control panel.

    But what is the shortcode for your marker? Every marker popup is open. How did you do it?

    Thread Starter eugenegrant

    (@eugenegrant)

    Sorry for wasting your time.
    I set about putting together a cut down version of the map on my test server to send to you but it worked. The live site had a lower version of PHP than the test server.
    Upgraded the PHP version on the live site and all is working now as expected.

    Plugin Author hupe13

    (@hupe13)

    Sorry for wasting your time.

    No problem. I checked the php version, both Leaflet Map plugins work with php 7.4. Which was your old php version?

    But what is the shortcode for your marker? Every marker popup is open. How did you do it?

    There was such a question in the support forum. To my knowledge, Leafletjs can only display one popup at a time. How did you do it?

    Thread Starter eugenegrant

    (@eugenegrant)

    >>Which was your old php version?
    v7.1

    >>But what is the shortcode for your marker? Every marker popup is open. How did you do it?

    To always display the tooltip label, i added the following crude lines to \wp-content\plugins\leaflet-map\class.leaflet-map.php
    at the end of the “add_popup_to_shape($atts, $content, $shape)” function :

        // add permanent tooltip
        $title = str_replace(array("\r\n", "\n", "\r"), '<br>', $title);
        $title = addslashes($title);
        $title = htmlspecialchars($title);
        $title = "window.WPLeafletMapPlugin.unescape('{$title}')";
        echo "{$shape}.bindTooltip($title,{permanent: true,offset: [-25, 0], direction: 'left'}).openTooltip();";
    Plugin Author hupe13

    (@hupe13)

    Ah, it is the tooltip, thank you very much. You don’t need to change the source, see here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.