v 0.8.02b

This commit is contained in:
Azgaar 2019-04-21 23:17:28 +03:00
parent a90e26a713
commit bf53458009
2 changed files with 9 additions and 2 deletions

View file

@ -197,7 +197,8 @@ function uploadFile(file, callback) {
const parsed = parseFloat(mapVersion);
let message = "", load = false;
if (isNaN(parsed) || data.length < 26 || !data[5]) {
message = `The file you are trying to load is not a valid .map file`;
message = `The file you are trying to load is outdated or not a valid .map file.
<br>Please try to open it using an ${archive}`;
} else if (parsed < 0.7) {
message = `The map version you are trying to load (${mapVersion}) is too old and cannot be updated to the current version.
<br>Please keep using an ${archive}`;

View file

@ -69,7 +69,13 @@ function addLabelOnClick() {
const name = Names.getCulture(culture);
const id = getNextId("label");
labels.select("#addedLabels").append("text").attr("id", id)
let group = labels.select("#addedLabels");
if (!group.size()) group = labels.append("g").attr("id", "addedLabels")
.attr("fill", "#3e3e4b").attr("opacity", 1).attr("stroke", "#3a3a3a")
.attr("stroke-width", 0).attr("font-family", "Almendra SC").attr("data-font", "Almendra+SC")
.attr("font-size", 18).attr("data-size", 18).attr("filter", null);
group.append("text").attr("id", id)
.append("textPath").attr("xlink:href", "#textPath_"+id).text(name)
.attr("startOffset", "50%").attr("font-size", "100%");