dceejay / RedMap

A web map app for Node-RED to put blobs on
Apache License 2.0
110 stars 60 forks source link

All map layers are not available in the configuration #83

Closed oliv3 closed 5 years ago

oliv3 commented 5 years ago

Hi, I can select "Watercolor" as a map layer, in the worldmap window. But, I can't select it from the configuration dialog box in the editor ? Screenshot_2019-03-19_02-10-37-b

oliv3 commented 5 years ago

Also, these layers don't show up in the worldmap page:

Most probably because I'm viewing map outside of UK :) Can they be disabled/hidden somehow ?

Where is the Hike Bike base layer viewable ?

dceejay commented 5 years ago

HikeBike comes from https://hikebikemap.org/ which does indeed seem to be fairly dead at the moment... no idea if this is permanent or not.

UK layers only cover the UK area but should work OK.

Hide from where ? the user view ?

oliv3 commented 5 years ago

UK layers work, yes, but just for UK. At first I was surprised because my default map center and zoom were in another part of the world, so there was only an empty layer. Zooming out of course showed the UK in the end. Well, one can live with them in the drop-down menu of the user view, and that would mean adding another option in the node configuration, not really needed. So it's just a detail. I'd like to be able to select "Watercolour" in the configuration node, though :)

dceejay commented 5 years ago

ok - will tidy -up and add ability to delete layers via a command so you can clean up on connect if you like

oliv3 commented 5 years ago

Oh, perfect ! Thanks.

dceejay commented 5 years ago

example - function to clear up a lot of layers

msg.payload = {command:{
    map:{
        delete:[
            "UK OS 1919-47",
            "UK OS 1900",
            "UK OS Opendata",
            "Hike Bike",
            "Terrain",
            "Nat Geo",
            "Watercolor",
            "ship nav",
            "public transport",
            "heatmap",
            "railways",
            "roads"
        ]
    }
}};
return msg;
oliv3 commented 5 years ago

Great, many thanks again !