Fix track line color docs to be consistent with actuality

This commit is contained in:
Dave Conway-Jones 2019-06-13 16:26:27 -04:00
parent 552c65b812
commit a98ff9d087
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ Optional properties include
- **speed** : when combined with bearing, draws a vector. - **speed** : when combined with bearing, draws a vector.
- **bearing** : when combined with speed, draws a vector. - **bearing** : when combined with speed, draws a vector.
- **accuracy** : when combined with bearing, draws a polygon of possible direction. - **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** : <a href="https://fontawesome.com/v4.7.0/icons/" target="mapinfo">font awesome</a> icon name, <a href="https://github.com/Paul-Reed/weather-icons-lite" target="mapinfo">weather-lite</a> icon, :emoji name:, or http:// - **icon** : <a href="https://fontawesome.com/v4.7.0/icons/" target="mapinfo">font awesome</a> icon name, <a href="https://github.com/Paul-Reed/weather-icons-lite" target="mapinfo">weather-lite</a> icon, :emoji name:, or http://
- **iconColor** : Standard CSS colour name or #rrggbb hex value. - **iconColor** : Standard CSS colour name or #rrggbb hex value.
- **SIDC** : NATO symbology code (can be used instead of icon). See below. - **SIDC** : NATO symbology code (can be used instead of icon). See below.

View File

@ -917,7 +917,7 @@ function setMarker(data) {
var ll; var ll;
var lli = null; var lli = null;
var opt = {}; var opt = {};
opt.color = data.color || "#910000"; opt.color = data.color || data.lineColor || "#910000";
opt.fillColor = data.fillColor || "#910000"; opt.fillColor = data.fillColor || "#910000";
opt.stroke = (data.hasOwnProperty("stroke")) ? data.stroke : true; opt.stroke = (data.hasOwnProperty("stroke")) ? data.stroke : true;
opt.weight = data.weight || 2; opt.weight = data.weight || 2;
@ -1386,7 +1386,7 @@ function setMarker(data) {
marker = rightmenu(marker); marker = rightmenu(marker);
// Add any remaining properties to the info box // Add any remaining properties to the info box
var llc = data.lineColor; var llc = data.lineColor || data.color;
delete data.lat; delete data.lat;
delete data.lon; delete data.lon;
if (data.layer) { delete data.layer; } if (data.layer) { delete data.layer; }