Read the statement by Michael Teeuw here.
MMM-RAIN-MAP
-
Hi all… I’m trying to put the above module in my MM. I got it all installed ok but when I looked at it I can’t figure out what the line:
mapUrl: “https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png”,
really means… I find no reference to {s},{z},{x},{y} refers.
I’m guessing x and maybe y are lat. and lon. but what is z? Distance above sea level? and what is the {s} following the https://. I’ve given up… I’ve looked all around including the reference to the other maps available but nowhere is there an explanation. I know I missed it but where is it? Thanks as usual…
Dennis -
@N6NG Assuming you are using jalibu/MMM-RAIN-MAP, the options in the README has the following info:
`Option to use an alternative map. In most cases you are fine with the default but you can find more maps` here. Type: string Default value: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' Alternative uncolored map: 'https://tiles.wmflabs.org/bw-mapnik/${z}/${x}/${y}.png'
With
here
pointing at the Tile Servers wikipedia.It seems to me that the expected usage is to leave the {s}, {x}. {y}, and {z} alone.
-
@drippyer Well I left it as the stock value but I’m still not getting the background map. I see indications of rain but no map to see where the rain is falling. I have tried to use other maps also but still no background map on my RAIN-MAP
Dennis -
Try adding this to your config
mapUrl: “https://a.tile.openstreetmap.de/${z}/${x}/${y}.png”,
-
@swvalenti I get the background map when I use that in my line and it works fine. But when I try to substitute the .de with .us or with .org (the original) I get no background map. All else staying the same.
???
Dennis -
-
@karsten13 Thank you… that explains a lot…
I’ll keep my eyes open.
Dennis