diff --git a/README.md b/README.md index 515b27d..bdd443a 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Optional properties include - **speed** : when combined with bearing, draws a vector. - **bearing** : when combined with speed, draws a vector. - **accuracy** : when combined with bearing, draws a polygon of possible direction. - - **lineColor** : CSS color name or #rrggbb value for bearing line or accuracy polygon + - **color** : CSS color name or #rrggbb value for bearing line or accuracy polygon - **icon** : font awesome icon name, weather-lite icon, :emoji name:, or http:// - **iconColor** : Standard CSS colour name or #rrggbb hex value. - **SIDC** : NATO symbology code (can be used instead of icon). See below. diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index 3440ade..53919eb 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -917,7 +917,7 @@ function setMarker(data) { var ll; var lli = null; var opt = {}; - opt.color = data.color || "#910000"; + opt.color = data.color || data.lineColor || "#910000"; opt.fillColor = data.fillColor || "#910000"; opt.stroke = (data.hasOwnProperty("stroke")) ? data.stroke : true; opt.weight = data.weight || 2; @@ -1386,7 +1386,7 @@ function setMarker(data) { marker = rightmenu(marker); // Add any remaining properties to the info box - var llc = data.lineColor; + var llc = data.lineColor || data.color; delete data.lat; delete data.lon; if (data.layer) { delete data.layer; }