remove advanced tracking

This commit is contained in:
Azgaar 2021-10-13 11:09:04 +03:00
parent 1a2243472b
commit b438fedf9a
6 changed files with 6 additions and 33 deletions

View file

@ -4,7 +4,6 @@
// download map as SVG
async function saveSVG() {
TIME && console.time("saveSVG");
track("export", "svg");
const url = await getMapURL("svg");
const link = document.createElement("a");
link.download = getFileName() + ".svg";
@ -18,7 +17,6 @@ async function saveSVG() {
// download map as PNG
async function savePNG() {
TIME && console.time("savePNG");
track("export", "png");
const url = await getMapURL("png");
const link = document.createElement("a");
@ -49,7 +47,6 @@ async function savePNG() {
// download map as JPEG
async function saveJPEG() {
TIME && console.time("saveJPEG");
track("export", "jpg");
const url = await getMapURL("png");
const canvas = document.createElement("canvas");
@ -379,7 +376,6 @@ function inlineStyle(clone) {
}
function saveGeoJSON_Cells() {
track("export", "getJSON cells");
const json = {type: "FeatureCollection", features: []};
const cells = pack.cells;
const getPopulation = i => {
@ -410,7 +406,6 @@ function saveGeoJSON_Cells() {
}
function saveGeoJSON_Routes() {
track("export", "getJSON routes");
const json = {type: "FeatureCollection", features: []};
routes.selectAll("g > path").each(function () {
@ -427,7 +422,6 @@ function saveGeoJSON_Routes() {
}
function saveGeoJSON_Rivers() {
track("export", "getJSON rivers");
const json = {type: "FeatureCollection", features: []};
rivers.selectAll("path").each(function () {
@ -450,8 +444,6 @@ function saveGeoJSON_Rivers() {
}
function saveGeoJSON_Markers() {
track("export", "getJSON markers");
const features = pack.markers.map(marker => {
const {i, type, icon, x, y, size, fill, stroke} = marker;
const coordinates = getQGIScoordinates(x, y);