# Web-worldmap cutomization

**URL:** <https://discourse.nodered.org/t/web-worldmap-cutomization/31897>\
**Category:** General\
**Created:** [23 August 2020 06:32 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897 "2020-08-23T06:32:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjkini](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cjkini/32/27656_2.png) [@cjkini](https://discourse.nodered.org/u/cjkini)\
**Post date:** [23 August 2020 06:32 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897/1 "2020-08-23T06:32:08Z")

</div>

Hi @dceejay ,  
1.Thanks for this world map node. This is so wonderful node to use.  
2. I have question about action=click payload. Currently, when we click the marker on the map, we will get the payload of :  
{"action":"click","name":"KVDC","layer":"unknown","draggable":true,"lat":2.929812,"lon":101.657711}  
3. In my map design, i include context menu properties like this-\> contextmenu:'\<button name=$name onclick='feedback(this.name)'\>Clear'. Thus, this will give me a button popup.  
4.When i right click the button popup, i get this payload -\> {"action":"feedback","name":"KVDC"}. This payload is very limited without having info of lat and long, since i need these 3 info (name,lat,long) so that i can pass to my delete function to delete the marker.  
5. Can you advice me how to get the complete info (name,lat,long), when i right click my button popup?

Thanks for your help in advance.

Regards,  
CJ

---

<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:** [24 August 2020 10:30 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897/2 "2020-08-24T10:30:17Z")

</div>

Yes - makes sense. Added to version 2.5.1

---

<div class="post-metadata">

**Author:** ![cjkini](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cjkini/32/27656_2.png) [@cjkini](https://discourse.nodered.org/u/cjkini)\
**Post date:** [24 August 2020 16:23 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897/3 "2020-08-24T16:23:32Z")

</div>

Hi @dceejay.  
Thanks for this upgrade. However, I found some glitch with this right click button.  
The issue here is, if my marker is having a long name e.g (Smith Anderson School), that right click action seem not trigger any payload. However, if I change it to its abbreviation e.g (SAS), the right click action give us the required payload which are :  
{"action":"feedback","name":"SAS","layer":"unknown","lat":2.946833,"lon":101.711689} . Can you advice how do we solve this glitch?  
Tq

---

<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:** [24 August 2020 17:04 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897/4 "2020-08-24T17:04:49Z")

</div>

Can you provide a failing example thanks.

---

<div class="post-metadata">

**Author:** ![cjkini](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cjkini/32/27656_2.png) [@cjkini](https://discourse.nodered.org/u/cjkini)\
**Post date:** [25 August 2020 03:31 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897/5 "2020-08-25T03:31:38Z")

</div>

Hi @dceejay

I solve the above problem by changing the naming format. Instead of naming it as Smith Anderson School, I changed to Smith-Anderson-School and with this the right click action give us the required payload e.g (name,lat,long) and can be sent to delete function and this will resulted the deletion of marker from the map.

Thanks

---

<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:** [25 August 2020 08:01 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897/6 "2020-08-25T08:01:16Z")

</div>

Hi - I just tried it with a simple name with a space and the payload came back containing the name as expected... so If it really isn't working for you I'd like to understand why.

---

<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:** [8 September 2020 08:01 UTC](https://discourse.nodered.org/t/web-worldmap-cutomization/31897/7 "2020-09-08T08:01:22Z")

</div>

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