Fix track line color docs to be consistent with actuality

pull/112/head
Dave Conway-Jones 5 years ago
parent 552c65b812
commit a98ff9d087
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

@ -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** : <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.
- **SIDC** : NATO symbology code (can be used instead of icon). See below.

@ -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; }

Loading…
Cancel
Save