# Worldmap Image Overlay from local File

**URL:** <https://discourse.nodered.org/t/worldmap-image-overlay-from-local-file/49157>\
**Category:** General\
**Created:** [1 August 2021 11:28 UTC](https://discourse.nodered.org/t/worldmap-image-overlay-from-local-file/49157 "2021-08-01T11:28:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koloblix](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Koloblix](https://discourse.nodered.org/u/Koloblix)\
**Post date:** [1 August 2021 11:28 UTC](https://discourse.nodered.org/t/worldmap-image-overlay-from-local-file/49157/1 "2021-08-01T11:28:20Z")

</div>

Hi,  
I want to use an image overlay for Worldmap. Is it possible to use an local file in?

In the discription is only an url to an webadress:

```auto
var imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];
msg.payload = { command : {lat:40.74, lon:-74.175, zoom:13 } };
msg.payload.command.map = {
    overlay:"New York Historical",
    url:'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
    bounds: imageBounds,
    opt:{ opacity:1.0, attribution:"&copy; University of Texas" }
};

```

How i have to set url? Or do i need to share this image file an an small webserver local on the machine where node red is runnig?

Have made an folder in node red directory with the image in ist, and tried `url: '/Folder/image.jpg'` but this seems not to work.

Any suggeestions?

Best regards

---

<div class="post-metadata">

**Author:** ![rko](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rko/32/45807_2.png) [@rko](https://discourse.nodered.org/u/rko)\
**Post date:** [1 August 2021 11:54 UTC](https://discourse.nodered.org/t/worldmap-image-overlay-from-local-file/49157/2 "2021-08-01T11:54:16Z")

</div>

Putting the file into a _static folder_ on your Node-RED installation and add the path of that static folder in your `settings.js` file should work.

See `httpStatic`

Then you should be able to load the file with [https://yourmachine](https://yourmachine):yourport/newark\_nj\_1922.jpg

Maybe there is an easier way.

---

<div class="post-metadata">

**Author:** ![Koloblix](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Koloblix](https://discourse.nodered.org/u/Koloblix)\
**Post date:** [1 August 2021 17:44 UTC](https://discourse.nodered.org/t/worldmap-image-overlay-from-local-file/49157/3 "2021-08-01T17:44:44Z")

</div>

ah, thanks this works.

---

<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:** [30 September 2021 17:45 UTC](https://discourse.nodered.org/t/worldmap-image-overlay-from-local-file/49157/4 "2021-09-30T17:45:22Z")

</div>

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