From 9fd53d754e7768e9adcbff4a208c71d091fe2d11 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 31 Aug 2021 15:02:14 +0100 Subject: [PATCH] Reduce CoordinatesControl layout shifts --- src/leaflet/control/CoordinatesControl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leaflet/control/CoordinatesControl.ts b/src/leaflet/control/CoordinatesControl.ts index 5cf420c..88e56e6 100644 --- a/src/leaflet/control/CoordinatesControl.ts +++ b/src/leaflet/control/CoordinatesControl.ts @@ -54,7 +54,7 @@ export class CoordinatesControl extends Control { onAdd(map: Map) { const container = DomUtil.create('div', 'leaflet-control-coordinates'); - this._coordsContainer.textContent = this.options.showY ? '-----, ----- , -----' : '-----, -----'; + this._coordsContainer.textContent = this.options.showY ? '-----, ---, -----' : '-----, -----'; this._coordsContainer.dataset.label = this.options.label; container.appendChild(this._coordsContainer); @@ -123,7 +123,7 @@ export class CoordinatesControl extends Control { if(!this._location) { if (this.options.showY) { - this._coordsContainer.textContent = '-----, ----- , -----'; + this._coordsContainer.textContent = '-----, ---, -----'; } else { this._coordsContainer.textContent = '-----, -----'; }