Merge pull request #365 from vita10gy/data-save

Save Game info with links and fields
This commit is contained in:
Stefan Breunig 2013-03-02 09:02:50 -08:00
commit 637a395feb

View File

@ -507,9 +507,9 @@ window.renderLink = function(ent) {
weight:2,
clickable: false,
guid: ent[0],
data: ent[2],
smoothFactor: 0 // doesnt work for two points anyway, so disable
});
// determine which links are very short and dont render them at all.
// in most cases this will go unnoticed, but improve rendering speed.
poly._map = window.map;
@ -557,8 +557,9 @@ window.renderField = function(ent) {
smoothFactor: 0, // hiding small fields will be handled below
vertices: reg,
lastUpdate: ent[1],
guid: ent[0]});
guid: ent[0],
data: ent[2]});
// determine which fields are too small to be rendered and dont
// render them, so they dont count towards the maximum fields limit.
// This saves some DOM operations as well, but given the relatively