node-red-contrib-web-worldmap 2.21.1 → 2.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,10 +37,8 @@ Base.isWebSocket = function(request) {
|
|
|
37
37
|
|
|
38
38
|
Base.validateOptions = function(options, validKeys) {
|
|
39
39
|
for (var key in options) {
|
|
40
|
-
if (options.hasOwnProperty(key)) {
|
|
41
40
|
if (validKeys.indexOf(key) < 0)
|
|
42
41
|
throw new Error('Unrecognized option: ' + key);
|
|
43
|
-
}
|
|
44
42
|
}
|
|
45
43
|
};
|
|
46
44
|
|
package/package.json
CHANGED
package/worldmap/worldmap.js
CHANGED
|
@@ -1144,7 +1144,7 @@ var addOverlays = function(overlist) {
|
|
|
1144
1144
|
|
|
1145
1145
|
// Add the OpenSea markers layer
|
|
1146
1146
|
if (overlist.indexOf("SN")!==-1) {
|
|
1147
|
-
overlays["ship
|
|
1147
|
+
overlays["ship navigation"] = L.tileLayer('https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png', {
|
|
1148
1148
|
maxZoom: 19,
|
|
1149
1149
|
attribution: 'Map data: © <a href="https://www.openseamap.org">OpenSeaMap</a> contributors'
|
|
1150
1150
|
});
|
package/worldmap.html
CHANGED
|
@@ -293,7 +293,7 @@ If <i>Web Path</i> is left empty, then by default <code>⌘⇧m</code> - <code>c
|
|
|
293
293
|
<p>Icons of type <i>plane</i>, <i>ship</i>, <i>car</i>, <i>uav</i> or <i>arrow</i> will use built in SVG icons that align to the
|
|
294
294
|
<code>bearing</code> value.</p>
|
|
295
295
|
<p>Font Awesome (<a href="https://fontawesome.com/v4.7.0/icons/" target="_new">fa-icons 4.7</a>) can also be used, as can
|
|
296
|
-
NATO symbology codes (SIDC), or <a href="https://github.com/dceejay/RedMap/blob/master/emojilist.md" target="_new">:emoji name:</a>,
|
|
296
|
+
NATO symbology codes (<a href="https://spatialillusions.com/unitgenerator/">SIDC</a>), or <a href="https://github.com/dceejay/RedMap/blob/master/emojilist.md" target="_new">:emoji name:</a>,
|
|
297
297
|
or the url of a small icon image (32x32)</p>
|
|
298
298
|
<p>See the <a href="https://www.npmjs.com/package/node-red-contrib-web-worldmap" target="_new">README</a> for further
|
|
299
299
|
details and examples of icons and commands for drawing <b>lines</b> and <b>areas</b>, and to <b>add layers</b> and
|