maybe related to #182

This commit is contained in:
Stefan Breunig 2013-02-16 12:50:32 +01:00
parent 634dc12d73
commit 4e837a4084

View File

@ -233,10 +233,13 @@ window.renderPortal = function(ent) {
old.options.details = ent[2];
return;
}
// there were changes, remove old portal
removeByGuid(ent[0]);
}
// there were changes, remove old portal. Dont put this in old, in
// case the portal changed level and findEntityInLeaflet doesnt find
// it.
removeByGuid(ent[0]);
var latlng = [ent[2].locationE6.latE6/1E6, ent[2].locationE6.lngE6/1E6];
// pre-loads player names for high zoom levels