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