Add thousands separator and bug fix
This commit is contained in:
parent
75dea672f3
commit
1e21bbb94d
@ -563,15 +563,17 @@ window.renderField = function(ent) {
|
|||||||
icon: L.divIcon({
|
icon: L.divIcon({
|
||||||
className: 'fieldmu',
|
className: 'fieldmu',
|
||||||
iconSize: [100,12],
|
iconSize: [100,12],
|
||||||
html: 'MU: ' + ent[2].entityScore.entityScore}),
|
html: 'MU: ' + digits(ent[2].entityScore.entityScore)}),
|
||||||
clickable: false
|
clickable: false
|
||||||
});
|
});
|
||||||
|
|
||||||
// put both in one group, so they can be handled by the same logic.
|
// put both in one group, so they can be handled by the same logic.
|
||||||
var f = L.layerGroup([poly, fieldMu], {
|
var f = L.layerGroup([poly, fieldMu]);
|
||||||
|
f.options = {
|
||||||
vertices: reg,
|
vertices: reg,
|
||||||
lastUpdate: ent[1],
|
lastUpdate: ent[1],
|
||||||
guid: ent[0]});
|
guid: ent[0]
|
||||||
|
};
|
||||||
|
|
||||||
// However, LayerGroups (and FeatureGroups) don’t fire add/remove
|
// However, LayerGroups (and FeatureGroups) don’t fire add/remove
|
||||||
// events, thus this listener will be attached to the field. It
|
// events, thus this listener will be attached to the field. It
|
||||||
|
Loading…
x
Reference in New Issue
Block a user