Only handle marker if it's there
This commit is contained in:
parent
4eb745401c
commit
e9a7f66bdc
@ -1,6 +1,6 @@
|
||||
### Change Log for Node-RED Worldmap
|
||||
|
||||
- v2.38.2 - Better fix for geojson multipoint icons.
|
||||
- v2.38.3 - Better fix for geojson multipoint icons.
|
||||
- v2.38.1 - Fix for geojson multipoint icons.
|
||||
- v2.38.0 - Return client headers as part of connect message.
|
||||
- v2.37.4 - Fix sessionid specific data not to be sent on reload/refresh
|
||||
|
@ -13,7 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
|
||||
|
||||
### Updates
|
||||
|
||||
- v2.38.2 - Better fix for geojson multipoint icons.
|
||||
- v2.38.3 - Better fix for geojson multipoint icons.
|
||||
- v2.38.1 - Fix for geojson multipoint icons.
|
||||
- v2.38.0 - Return client headers as part of connect message.
|
||||
- v2.37.4 - Fix sessionid specific data not to be sent on reload/refresh
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-contrib-web-worldmap",
|
||||
"version": "2.38.2",
|
||||
"version": "2.38.3",
|
||||
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
|
||||
"dependencies": {
|
||||
"@turf/bezier-spline": "~6.5.0",
|
||||
|
@ -2853,7 +2853,7 @@ function doGeojson(n,g,l,o) {
|
||||
className: "natoicon",
|
||||
});
|
||||
}
|
||||
else if (feature.properties["marker-symbol"].substr(0,3) === "fa-") {
|
||||
else if (feature.properties.hasOwnProperty("marker-symbol") && feature.properties["marker-symbol"].substr(0,3) === "fa-") {
|
||||
try {
|
||||
var col = feature.properties["marker-color"] ?? "#910000";
|
||||
var imod = "";
|
||||
|
Loading…
Reference in New Issue
Block a user