Sorry, but I have a few more questions about the WorldMap module.
-
How can I disable the "double-click => zoom" behavior?
(If the user clicks twice on a marker, it should not zoom in)
I can see, there is amap.doubleClickZoom.disable();command inside the.jscode, but I do not know how to call it from a node? -
In the top left corner, there is a Node-Red icon, which can be clicked, and that is closing the whole page and opening nodered.org instead

Can it be disabled or force-hidden? -
Or even better would be to hide the upper titlebar completely, if possible?
(It's just wasting precious vertical pixels for a big unnecessary title.) -
Why is it not possible to create markers with infinite TTL ?
- that line is commented out from source code!

- it would not need to create timeouts, read default value, etc.
- if
=0conflicts with other things, at leastttl: -1should be possible to be used to skip startingdoTidyUp()function at all.
- that line is commented out from source code!
var stale = null;
function setMaxAge() {
maxage = document.getElementById('maxage').value;
if (stale) { clearInterval(stale); }
//if (maxage > 0) { <<<< WHY ???
stale = setInterval( function() { doTidyUp() }, 20000); // clear markers from all layers every 20 secs
}
setMaxAge();
(Took me weeks of debugging my own code before realising what is causing my markers to disappear! )
IMHO there should be a big fat red warning about this default behaviour at the help, between Install and Usage.
Something like:
Warning 
Markers will disappear after default timeout = ca. 600 seconds, if not updated.
Cleanup is happening every 20 seconds.
Default value can be changed at the upper-right menu, or by adding different value for each marker at creation. -1 = infinite.
Example: {..., "ttl": 172800 } = 48 hours.
