Save Game info with links and fields
Useful for plugins/extending
This commit is contained in:
parent
bc089cd5c8
commit
420ec8de16
@ -507,9 +507,9 @@ window.renderLink = function(ent) {
|
|||||||
weight:2,
|
weight:2,
|
||||||
clickable: false,
|
clickable: false,
|
||||||
guid: ent[0],
|
guid: ent[0],
|
||||||
|
data: ent[2],
|
||||||
smoothFactor: 0 // doesn’t work for two points anyway, so disable
|
smoothFactor: 0 // doesn’t work for two points anyway, so disable
|
||||||
});
|
});
|
||||||
|
|
||||||
// determine which links are very short and don’t render them at all.
|
// determine which links are very short and don’t render them at all.
|
||||||
// in most cases this will go unnoticed, but improve rendering speed.
|
// in most cases this will go unnoticed, but improve rendering speed.
|
||||||
poly._map = window.map;
|
poly._map = window.map;
|
||||||
@ -557,8 +557,9 @@ window.renderField = function(ent) {
|
|||||||
smoothFactor: 0, // hiding small fields will be handled below
|
smoothFactor: 0, // hiding small fields will be handled below
|
||||||
vertices: reg,
|
vertices: reg,
|
||||||
lastUpdate: ent[1],
|
lastUpdate: ent[1],
|
||||||
guid: ent[0]});
|
guid: ent[0],
|
||||||
|
data: ent[2]});
|
||||||
|
|
||||||
// determine which fields are too small to be rendered and don’t
|
// determine which fields are too small to be rendered and don’t
|
||||||
// render them, so they don’t count towards the maximum fields limit.
|
// render them, so they don’t count towards the maximum fields limit.
|
||||||
// This saves some DOM operations as well, but given the relatively
|
// This saves some DOM operations as well, but given the relatively
|
||||||
|
Loading…
x
Reference in New Issue
Block a user