# Clickable Image map with global variable

**URL:** <https://discourse.nodered.org/t/clickable-image-map-with-global-variable/40634>\
**Category:** General\
**Created:** [8 February 2021 21:56 UTC](https://discourse.nodered.org/t/clickable-image-map-with-global-variable/40634 "2021-02-08T21:56:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamil100](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jamil100/32/35986_2.png) [@Jamil100](https://discourse.nodered.org/u/Jamil100)\
**Post date:** [8 February 2021 21:56 UTC](https://discourse.nodered.org/t/clickable-image-map-with-global-variable/40634/1 "2021-02-08T21:56:21Z")

</div>

Hello everyone,

I placed an image on my dashboard and I'm using the HTML map tag to click on a specific figure inside that image. Now I was able to get it running but I would like that when I press this figure, to set a global variable to a specific value in my flow like for example global.variable = machine1

```auto

<map name="robot">
  <area shape="rect" coords="350,150,500,300" alt="Machine 1" ng-click="send({topic: 'map', payload: 'machine1'})">
</map>

```

But I don't know how to do that.

I would appreciate any help.

Thanks

---

<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 April 2021 21:57 UTC](https://discourse.nodered.org/t/clickable-image-map-with-global-variable/40634/2 "2021-04-09T21:57:00Z")

</div>

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