Fix for bad handling of mapbox id.

to close #208
This commit is contained in:
Dave Conway-Jones 2022-10-26 18:51:01 +01:00
parent 6236928ff5
commit 13926ef385
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
4 changed files with 4 additions and 12 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v2.30.2 - Fix for bad handling of mapbox id. Issue #208
- v2.30.1 - Don't resend bounds if not changed. Issue #209 - v2.30.1 - Don't resend bounds if not changed. Issue #209
- v2.30.0 - Add show/hide ruler option. PR #206 - v2.30.0 - Add show/hide ruler option. PR #206

View File

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates ### Updates
- v2.30.2 - Fix for bad handling of mapbox id. Issue #208
- v2.30.1 - Don't resend bounds if not changed. Issue #209 - v2.30.1 - Don't resend bounds if not changed. Issue #209
- v2.30.0 - Add show/hide ruler option. PR #206 - v2.30.0 - Add show/hide ruler option. PR #206
- v2.29.0 - Change locate to be a toggle and add command (trackme) to set style. Issue #202 - v2.29.0 - Change locate to be a toggle and add command (trackme) to set style. Issue #202
@ -22,16 +23,6 @@ map web page for plotting "things" on.
- v2.26.1 - Add QTH/Maidenhead option also - v2.26.1 - Add QTH/Maidenhead option also
- v2.26.0 - Add UTM and MGRS to coordinate display options. - v2.26.0 - Add UTM and MGRS to coordinate display options.
- v2.25.0 - Add bounds command to set overall map bounds. - v2.25.0 - Add bounds command to set overall map bounds.
- v2.24.3 - Fix geojson incorrect fill.
- v2.24.2 - Changes to drawing colours to be more visible.
- v2.24.1 - Fix ellipse accuracy
- v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
- v2.23.5 - Fix addtoheatmap. Issue #192
- v2.23.4 - Fix opacity of area borders
- v2.23.3 - Fix initial load of maps
- v2.23.2 - Add convex-hull example
- v2.23.1 - Fix saving of custom map layer
- v2.23.0 - Give logo an id so it can be overridden by toplogo command. PR #188.
- see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list of changes. - see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list of changes.

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "2.30.1", "version": "2.30.2",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

View File

@ -538,7 +538,7 @@ If <i>Web Path</i> is left empty, then by default <code>⌘⇧m</code> - <code>c
options: olist options: olist
}]}); }]});
$("#node-input-maplist").on('change', function(event, type, value) { $("#node-input-maplist").on('change', function(event, type, value) {
if (value.indexOf("MB3d") > -1) { if (value && value.indexOf("MB3d") > -1) {
mshort = [{ value:"MB3d", label:"Mapbox 3D" }]; mshort = [{ value:"MB3d", label:"Mapbox 3D" }];
$('#node-input-maplist option').prop('selected', false); $('#node-input-maplist option').prop('selected', false);
$("#node-input-maplist").val("MB3d"); $("#node-input-maplist").val("MB3d");