remove entity type from created data structure - it's not needed

This commit is contained in:
Jon Atkins 2015-01-10 00:23:03 +00:00
parent 7b16b406a1
commit cd61e6e74f

View File

@ -248,7 +248,7 @@ window.Render.prototype.createPortalEntity = function(ent) {
var latlng = L.latLng(ent[2][2]/1E6, ent[2][3]/1E6);
var data = {
type: ent[2][0],
// type: ent[2][0],
team: ent[2][1],
latE6: ent[2][2],
lngE6: ent[2][3],
@ -326,7 +326,7 @@ window.Render.prototype.createFieldEntity = function(ent) {
}
var data = {
type: ent[2][0],
// type: ent[2][0],
team: ent[2][1],
points: ent[2][2].map(function(arr) { return {guid: arr[0], latE6: arr[1], lngE6: arr[2] }; })
};
@ -377,7 +377,7 @@ window.Render.prototype.createLinkEntity = function(ent,faked) {
}
var data = { // TODO add other properties and check correction direction
type: ent[2][0],
// type: ent[2][0],
team: ent[2][1],
oGuid: ent[2][2],
oLatE6: ent[2][3],