+
+
-
-
diff --git a/common/webapp/public/lang/en.conf b/common/webapp/public/lang/en.conf index b3fbdfd9..55ba3045 100644 --- a/common/webapp/public/lang/en.conf +++ b/common/webapp/public/lang/en.conf @@ -135,6 +135,7 @@ sun: "Sun" block: "Block" } + clipboard: "click to copy" } info: { title: "Info" diff --git a/common/webapp/src/js/PopupMarker.js b/common/webapp/src/js/PopupMarker.js index 1cf38b7b..0e41a2dd 100644 --- a/common/webapp/src/js/PopupMarker.js +++ b/common/webapp/src/js/PopupMarker.js @@ -70,6 +70,10 @@ export class PopupMarker extends Marker { return true; } + static blockClipboardFormat = (pos, isHires) => isHires ? `${pos.x} ${pos.y} ${pos.z}` : `${pos.x} ${pos.z}`; + static chunkClipboardFormat = (pos, isHires) => isHires ? `${pos.x} ${pos.y} ${pos.z}` : `${pos.x} ${pos.z}`; + static regionClipboardFormat = pos => `r.${pos.x}.${pos.z}.mca` + onMapInteraction = evt => { let isHires = true; let int = evt.detail.hiresHit; @@ -96,7 +100,9 @@ export class PopupMarker extends Marker { if (isHires) { this.element.innerHTML = ` -