Fix track line color docs to be consistent with actuality
This commit is contained in:
parent
552c65b812
commit
a98ff9d087
@ -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…
Reference in New Issue
Block a user