# Node-red-contrib-web-worldmap question - maps not loading on boot

**URL:** <https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829>\
**Category:** General\
**Created:** [24 August 2022 05:09 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829 "2022-08-24T05:09:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [24 August 2022 05:09 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/1 "2022-08-24T05:09:26Z")

</div>

(From my other thread but now I'm confused with this problem)

Forgive me if I am missing something, but on initial "set up" things were looking great.

I would inject a message and then look at the map. There would be a marker at the location I specified.

Flow:

```auto
[{"id":"ec9da974.051b48","type":"inject","z":"f7d630bfc1b2f259","name":"EXAMPLE","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payloadType":"str","x":170,"y":110,"wires":[["f77a7ed4.f955d"]]},{"id":"f77a7ed4.f955d","type":"function","z":"f7d630bfc1b2f259","name":"Add person to map","func":"var thing = {\n name:\"Me\", \n lat: -33.8688,\n lon: 151.2093,\n icon:\"home\",\n label:\"home\",\n iconColor:\"darkred\",\n// extrainfo:\"Hello to Jason Isaacs\"\n};\nmsg.payload = thing;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":110,"wires":[["f83930ff.b21488","e64c60c06227987f"]]},{"id":"f83930ff.b21488","type":"worldmap","z":"f7d630bfc1b2f259","name":"","lat":"-33.86","lon":"151.20","zoom":"14","layer":"OSMC","cluster":"18","maxage":"30","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","allowFileDrop":"false","path":"/worldmap","overlist":"DN,BU,SN,AC,TL","maplist":"OSMG,OSMC,OSMH,EsriC,EsriS,EsriT,EsriO,EsriDG,NatGeo,UKOS,OS45,OS00,OpTop","mapname":"","mapurl":"","mapopt":"","mapwms":false,"x":590,"y":110,"wires":[]}]

```

Inject, go to the page.... Blank blue screen.

I've seen this tread: [Possible same problem](https://discourse.nodered.org/t/problem-node-red-contrib-web-worldmap/51168/2)

But I can't say.

It was suggested - there - to stop / start node-red and look at the log.  
I didn't see the log post and it was "closed" with a _It started working_ message.

If I look at the `layer` button (top right) it is `OSM GREY`.  
Most other selections I get `no map data available` on the screen.

 ![Screenshot from 2022-08-24 15-06-59](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb07aef72dda95cffa3913d3f3fa545d79c38444.png)

But if I (and it isn't happening this time - of course) mess around with it long enough it works.  
Today as I am trying to understand what is _wrong_ it is playing even more hard ball and simply not showing me the map - even if I inject messages with location messages.

Someone?  
Please.

## Update:

Sorry... That is only if I select `Esri`.... The others give me their version of the blue screen.  
(Be it blue, light blue, grey or what ever.)

---

<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 2022 13:24 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/2 "2022-08-24T13:24:49Z")

</div>

The flow you posted has the map node set to use a custom map provider and then doesn't supply one so the default will be blank.. You need to configure the node vaguely correctly with a default base map, sensible start location and zoom level.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [24 August 2022 21:40 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/3 "2022-08-24T21:40:42Z")

</div>

Ok. I changed the `base map` in the node's config.

Now working ok.

And now to the _dumb question_.

> [@dceejay](#):
>
> has the map node set to use a custom map provider and then doesn't supply one so the default will be blank.

as in the provider doesn't support a base map? Ah, ok. Just the `doesn't supply one` threw me to what the `one` was.  
In hindsight it is obvious, but there seems to be a serious problem with me and how I parse things. Sure that's my problem.

So now I have changed it to _one that does support a base map_ the other will works.  
(Just checked and it now seems to be working)

If `OSM` don't support a `base map` - as I had it selected in the flow I posted - why is it an option in the `base map` list?

---

<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 2022 22:19 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/4 "2022-08-24T22:19:50Z")

</div>

OSM is a perfectly fine base map. But you didn’t set that. You set custom provider as your base map… and then didn’t provide a custom provider url …

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [24 August 2022 22:30 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/5 "2022-08-24T22:30:48Z")

</div>

I'm not trying to be difficult, but... (Sorry)

> [@dceejay](#):
>
> But you didn’t set that.

Well that's what I see when I edit/open the map node.

I don't have a _custom provider_.

But if I changed the node from `OSM` and put it as `ESRI` it now works.  
Ok, that isn't the full name, but enough to explain what I am doing.

---

<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 2022 07:52 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/6 "2022-08-25T07:52:50Z")

</div>

When I import the flow you pasted above I see

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/5059ce3e9cc384c6d7f910214b7098d6c23fa8cb.png)

Which has no base map files selected - and the default one set to a custom provider which has no url - so of course it will be blank

If I set it to

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/c/fc1e4d1e54c1f3b3c7a8575489a06d52b36bd5f7.png)  
Where OSM is one of the two selected (and also Esri) .  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f89d6b684cec61766b33b223d3150a996c953132.png)  
then it shows OSM as the default map no problem.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0a4b7e71b18731765e575084739ca97d6de7d7c3.jpeg)

A default worldmap node will default to

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5e03e451ddb2b31d0543e685650205ae499ce623.png)  
Which includes OSM and OSM grey as the default - so you must have changed from the defaults.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [25 August 2022 09:26 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/7 "2022-08-25T09:26:06Z")

</div>

Ok, thanks. Interesting.

So now this is what I am seeing.

(Pictures say more - I think)

 ![Screenshot from 2022-08-25 19-16-53](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/926fe9c1ba80a28941e9cd555e039fcf8e1ab6da.png)

On the GUI side of things:

 ![Screenshot from 2022-08-25 19-16-59](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/d/4dcfe3802ecfabed62693af267f8b67d6061e93a.png)

I'm not sure if ESRI are _free_ or what ever.  
So on the GUI side of things I do this:

 ![Screenshot from 2022-08-25 19-17-14](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fbe905be24510db990492b41f75e7f2930aa105f.png)

Ok, blue is better than nothing.

So I have to zoom out about 6 (I honestly didn't count but it wasn't just a couple) times and I see this:

 ![Screenshot from 2022-08-25 19-21-46](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/3771bec729dd46a59e9d222eab965119dc6811b6.jpeg)

I'm guessing `OPEN` in the name is better/good.

But I still seem to be missing understanding how in the EDIT screen setting I set the `default` map and then how that _interacts_ with the GUI side of things and selecting a different one.

If/when I change the maps on the GUI side, I am not always seeing the screen change to the newer selected map style.

Seems I'm slipping down the knowledge ladder just now. 😕

P.S.  
Only for better inclusion here is the node exported from what is now set.

```auto
[
    {
        "id": "f83930ff.b21488",
        "type": "worldmap",
        "z": "f7d630bfc1b2f259",
        "name": "",
        "lat": "-33.86",
        "lon": "151.20",
        "zoom": "14",
        "layer": "EsriT",
        "cluster": "18",
        "maxage": "30",
        "usermenu": "show",
        "layers": "show",
        "panit": "false",
        "panlock": "false",
        "zoomlock": "false",
        "hiderightclick": "false",
        "coords": "none",
        "showgrid": "false",
        "allowFileDrop": "false",
        "path": "/worldmap",
        "overlist": "DN,BU,SN,AC,TL",
        "maplist": "OSMG,OSMC,OSMH,EsriC,EsriS,EsriT,EsriO,EsriDG,NatGeo,UKOS,OS45,OS00,OpTop",
        "mapname": "",
        "mapurl": "",
        "mapopt": "",
        "mapwms": false,
        "x": 590,
        "y": 110,
        "wires": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [25 August 2022 09:43 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/8 "2022-08-25T09:43:42Z")

</div>

Ok, so things are _working_.... I zoom in and it looks better.

But.... `ERSI Satellite` selected. I zoom in and this what I see.  
This has the details. Good.

 ![Screenshot from 2022-08-25 19-37-34](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/5/35e50349876e1b200811f6998e37d0f1bb3fce0b.jpeg)

Zoom out and the detail goes away. But that is strange, as earlier on (HOURS ago) I got high detail when zoomed out.  
This zoom level is really really zoomed in.

 ![Screenshot from 2022-08-25 19-37-37](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/724a0fc9b3d7d6ac4103b4a976b6656fecadb7dd.jpeg)

Which, ok, _is the way it is_ but that is confused because as I continue to zoom out, you can see there is higher details being loaded, but then flushed.

 ![Screenshot from 2022-08-25 19-37-38](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/502b5388da0cd683570ccc6bb23749b2aeef8885.jpeg)

Sorry, but I just seem to not be getting something.

---

<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:** [24 October 2022 09:44 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-question-maps-not-loading-on-boot/66829/9 "2022-10-24T09:44:16Z")

</div>

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