# More WorldMap questions

**URL:** <https://discourse.nodered.org/t/more-worldmap-questions/101142>\
**Category:** General\
**Tags:** node-red-contrib-web-worldmap\
**Created:** [27 May 2026 14:54 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142 "2026-05-27T14:54:14Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [27 May 2026 14:54 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/1 "2026-05-27T14:54:14Z")

</div>

Sorry, but I have a few more questions about the [WorldMap](https://www.npmjs.com/package/node-red-contrib-web-worldmap) module.

1. 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 a `map.doubleClickZoom.disable();` command inside the `.js` code, but I do not know how to call it from a node?

2. 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](http://nodered.org) instead ☹  
Can it be disabled or force-hidden?

3. 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.)_

4. Why is it not possible to create markers with infinite TTL ?

```js
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](https://www.npmjs.com/package/node-red-contrib-web-worldmap#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.

### Thanks if forward for any help! 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 May 2026 17:14 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/2 "2026-05-27T17:14:41Z")

</div>

Hi

1. That's probably a sensible default anyway - will add.

2. and 3) - If you create your own webpage you can embed the worldmap in an iframe and it removes the top bar for you (That way you can have your own logos/ top bar etc)

3. you can already set the ttl per msg to 0 for infinite - or indeed set default for whole map using the node configuration page - which is fairly big and fat.  
 ![Screenshot 2026-05-27 at 17.24.59](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/1/b1b1f45a085bdbbb684e09e2cc039edcccbc8f69.png)

But yes - will push out v5.8.0 soon with the double click fix.

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [28 May 2026 00:09 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/3 "2026-05-28T00:09:46Z")

</div>

## ^ Thanks for the above and the quick answer ! 🙂

Will wait for the fixes.

About MaxAge:

> [@dceejay](#):
>
> you can already set the ttl per msg to 0 for infinite - or indeed set default for whole map using the node configuration page - which is fairly big and fat.  
> ![Screenshot 2026-05-27 at 17.24.59](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/1/b1b1f45a085bdbbb684e09e2cc039edcccbc8f69.png)

Obviously I knew about that, that why I'm telling You:

- it is not working the way it should!
- I've analysed Your code, and no matter, if I set 0 or Empty, markers will still disappear after a few days of running.
- Max timeout can not be bigger than 2147483647ms = 24.8days !  
_(There should be a check for that.)_
- It consumes unnecessary CPU + memory.

### So probably it is a bug.

Looking at the code I guess I see what's wrong:

```js
var maxage = 900;
...
    if (data.hasOwnProperty("ttl")) { // save expiry time for this marker
        if (data.ttl > 0) {
            marker.ts = parseInt(Date.now()/1000) + Number(data.ttl);
        } 
// missing:
        else delete marker.ts;

        delete data.ttl;
    }
    else if (maxage > 0) {
        marker.ts = parseInt(Date.now()/1000) + Number(maxage);
    }
// Also missing:
    else { // if (maxage <= 0) 
        delete data.ts;
        // ??? what else ???

```

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [8 June 2026 02:31 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/4 "2026-06-08T02:31:14Z")

</div>

### Just a quick note:

I've installed [v5.8.0](https://www.npmjs.com/package/node-red-contrib-web-worldmap) the day it appeared, (also restarted NR, Ctrl+F5 in Browser,)  
but double click still "zooms in". Both:

- anywhere on the map,
- and on any mark. ☹

Is there a "spacial way" to prevent it I haven't found yet?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 June 2026 07:59 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/5 "2026-06-08T07:59:06Z")

</div>

Please recheck - I have just re-checked and double clicking on an icon no longer zooms in.  
(double clicking on map does zoom in)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 June 2026 08:11 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/6 "2026-06-08T08:11:58Z")

</div>

Try clearing the browser cache.

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [10 June 2026 14:48 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/7 "2026-06-10T14:48:03Z")

</div>

> [@dceejay](#):
>
> (double clicking on map does zoom in)

And how do I disable that behaviour ?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 June 2026 14:51 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/8 "2026-06-10T14:51:48Z")

</div>

You don’t. You asked for

> [@PizzaProgram](#):
>
> 1. (If the user clicks twice on a marker, it should not zoom in)

Which is what it now does.

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [10 June 2026 14:54 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/9 "2026-06-10T14:54:07Z")

</div>

Sorry, You are right! My bad.  
Still, is it possible to disable double-click thing please?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 June 2026 15:54 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/10 "2026-06-10T15:54:55Z")

</div>

![Screenshot 2026-06-10 at 16.53.54](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/6/f68bff08a22f407f08191bb56d02d0a18837aa74.png)

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [10 June 2026 15:56 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/11 "2026-06-10T15:56:45Z")

</div>

Obviously without those two disabled !  
Users still need to:

- zoom with mouse-scroll
- zoom with touch-pull

OR

Are Your saying, if I disable those, I can still receive those events, and give order to WM to make the zoom somehow ?

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [10 June 2026 16:02 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/12 "2026-06-10T16:02:43Z")

</div>

### EndDragging (move)

An other strange behaviour I've noticed:

- if `myPoint.clickable = false`,
- but `myPoint.draggable = true`,
- I do not receive `"action" = "move"` events !

I think this is a BUG.  
If `myPoint.draggable = true` I should be able to receive those, since the object is still draggable !

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 June 2026 16:04 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/13 "2026-06-10T16:04:36Z")

</div>

I would argue that you have to click to drag- so if can’t click then you can’t drag

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [10 June 2026 16:30 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/14 "2026-06-10T16:30:15Z")

</div>

# Current behaviour is:

- If `"clickable" = false` \>\> I still receive click events ! 👍  
_(This way I can decide what to do in the function.)_
- popped is disabled
- but not receiving `"move"` events ! 👎
- while still can drag it!

This is totally inconsistent.

# Fixed behaviour would be:

- by disabling "clickable", everything would be disabled. (Like a GlobalSwitch)
  - no move
  - no events
  - no popup

- ! But ! in this case we need to Introduce a new property: `poppable` to separate it.

## This way we had:

1. `"poppable" : false` disables popup only + popped events
2. `"draggable" : false` disables dragging + "move" events
3. ... maybe even introduce `"rightclick"` or `"contextable"` as 3th sub-option.
4. `"clickable" : false` disables both 1 + 2 + 3 + click events = EVERYTHING

### \< OFF \> Personal opinion:

_I fully understand, that developing something that is growing and changing is not easy. I face it myself day by day.  
IMHO "clickable" was a bad choice for naming the "poppable" behaviour. But that's the past, we have to deal with it now, and keep some backward compatibility._

So we have to move forward, and the only way I see now is to:

- make "clickable" a global thing,
- and define sub-properties to fine tune how click should behave. (pop, move, context)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 June 2026 16:38 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/15 "2026-06-10T16:38:52Z")

</div>

Will think about it while on vacation. Maybe.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 June 2026 09:16 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/16 "2026-06-11T09:16:03Z")

</div>

Yes the draggable event should still occur if draggable is enabled - now fixed v5.8.1

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [11 June 2026 09:32 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/17 "2026-06-11T09:32:07Z")

</div>

Thanks for the quick fix!

- Did You think about my proposals?

My goal was:

- 1 click -\>\> Select
- 2th click on the same, selected Mark -\>\> Pop Up!
- 3th click on the same, selected Mark -\>\> Pop Down.
- ... clicking on something else -\>\> pop should disappear from the "unselected".

Currently if I click a Mark, there is a flickering, because first it pops up, what I immediatelly UnPop.  
Whit this fix it will be possible to prevent automatic popup.

## Just an other idea:

- instead of: "click disabling" all Marks one by one,
- introducing a global switch at WM setup window: **"AutoPopup"** (default true)

PS:  
I know that pop + context can be "disabled" by setting them to "" empty string.  
But **destroying** is not the same as _"temporally preventing"_ from clicking it.

I'm testing my final work now with only 10 GPS points, and it's already taking `>200ms` to refresh all of them via MQTT. Already spent weeks to optimise whatever can be optimised to run those function as fast as possible. (Each of them is 50+ lines)  
Rebuilding complex popup + context menus would consume even more CPU.  
Especially with 200 GPS points on a non-cooled industrial POS PC with low arithmetic capabilities.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 June 2026 09:44 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/18 "2026-06-11T09:44:33Z")

</div>

You should be able to just send the changes. So just the name of the marker and the new data. Why rebuild every time ? Can’t you hold prebuilt data at your end and send it or “” as appropriate ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 September 2026 09:45 UTC](https://discourse.nodered.org/t/more-worldmap-questions/101142/19 "2026-09-09T09:45:24Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
