From f68cee3dce076307c37f6131efb05b948a4d7e8c Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 4 Mar 2021 11:32:28 +0000 Subject: [PATCH] Fix leader length to be one minute if speed in m/s Update readme re docker mapserver hints --- CHANGELOG.md | 1 + README.md | 7 +++++++ package.json | 2 +- worldmap.html | 2 +- worldmap.js | 2 +- worldmap/index.html | 2 +- worldmap/index3d.html | 9 ++++----- worldmap/worldmap.js | 15 ++++++++++----- 8 files changed, 26 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9096fb8..45c58d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### Change Log for Node-RED Worldmap + - v2.8.8 - Change length of speed leader to show where you will be in 1 min if speed in m/s - v2.8.7 - Delay start of ui widget. - v2.8.6 - Better checking of type property before guessing it's geojson. Issue #153 - v2.8.4 - Add addToForm(n,v) option and $form - to make contextmenu form submission easier. diff --git a/README.md b/README.md index a4542ea..d3d646c 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ map web page for plotting "things" on. ### Updates +- v2.8.8 - Change length of speed leader to show where you will be in 1 min if speed in m/s - v2.8.7 - Delay start of ui widget. - v2.8.6 - Better checking of type property before guessing it's geojson. Issue #153 - v2.8.4 - Add addToForm(n,v) option and $form - to make contextmenu form submission easier. @@ -630,6 +631,12 @@ You can then add a new WMS Base layer by injecting a message like Optionally set `"wms":"grey"` to set the layer to greyscale which may make your markers more visible. +**Hint**: if can use a docker container like https://hub.docker.com/r/geodata/mapserver/ then assuming you have the mapfile 'my-app.map' in the current working directory, you could mount it as: +``` +docker run -d --name mapserver -v $(pwd):/maps:ro -p 1881:80 geodata/mapserver +``` +then the url should be of the form `"url": "http://localhost:1881/?map=/maps/my-app.map",` where *my-app.map* is the name of your map file. A quick test of the server would be to browse to http://localhost:1881/?map=/maps/my-app.map&mode=map + ## Examples and Demo Flow diff --git a/package.json b/package.json index 5e871f6..70d1db3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "2.8.7", + "version": "2.8.8", "description": "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies": { "cgi": "0.3.1", diff --git a/worldmap.html b/worldmap.html index 7231fa3..c42ce49 100644 --- a/worldmap.html +++ b/worldmap.html @@ -1,6 +1,6 @@