//var width = 700, // height = 800, var vBoxWidth = 1200, vBoxHeight = 900, bgWidth = 900, bgHeight = 1500, clicked; //Object used for local storage of the user selections - had to use underscores instead of hyphen /* var pageData = { deathmatch_list: 0, time_since_spawn: 10, } */ //var interpolationColours = ["#55ff00", "#fffc00", "#ff0400"]; // green - yellow - red function convert2WebXCoord(x) { return ((x + project.map.coords.x)/project.map.scale); } function convert2WebYCoord(y) { return (((-1)*y + project.map.coords.y)/project.map.scale); } function convert2WebCoords(p) { return [convert2WebXCoord(p[0]), convert2WebYCoord(p[1])]; } /* function convertFromWebXCoord(x) { return (-1) * ((project.map.coords.x) - (x*project.map.scale)); } function convertFromWebYCoord(y) { return ((project.map.coords.y) - (y*project.map.scale)); } */ /* function updateMapHeight() { // Adjust the height of the map automatically var windowHeight = $("#content").height() - 20; //$("#map-wrapper").css("height", windowHeight); $("#map").css("height", windowHeight); $("#map").css("width", "70%"); $("#map-side-options").css("height", windowHeight); } */ var headerAndFilters = { headerType: "header-sc-map", // social club filtering header disabledFields: // disables header fields [ false, // platforms false, // locations false, // age false, // gamers false, // game-types false, // dates+builds ], }; function initPage() { initHeaderAndFilters(headerAndFilters); //var localData = retrieveLocalObject(config.currentFilename); //pageData = (localData) ? localData : pageData; //pageData.deathmatch_list $("#content-body") .append( $("