diff --git a/src/scripts/initMap.js b/src/scripts/initMap.js index ce83d39..6759903 100644 --- a/src/scripts/initMap.js +++ b/src/scripts/initMap.js @@ -62,7 +62,7 @@ L.Control.GoToCurrentLocation = L.Control.extend({ onAdd: function (map) { const locationButton = document.createElement('button'); - locationButton.textContent = 'Konumuma Git'; + locationButton.textContent = 'Konum İzni Ver'; locationButton.classList.add('custom-map-control-button'); @@ -71,7 +71,7 @@ L.Control.GoToCurrentLocation = L.Control.extend({ locationButton.addEventListener('click', () => { if (watchId === -1) { startWatchingLocation() - map.setView(currentLocationMarker.getLatLng(), 12); + locationButton.textContent = 'Konumuma Git'; } else { map.setView(currentLocationMarker.getLatLng(), 12); } diff --git a/src/scripts/initSelectionMap.js b/src/scripts/initSelectionMap.js index 865624c..0afa126 100644 --- a/src/scripts/initSelectionMap.js +++ b/src/scripts/initSelectionMap.js @@ -53,7 +53,7 @@ L.Control.GoToCurrentLocation = L.Control.extend({ onAdd: function (map) { const locationButton = document.createElement('button'); - locationButton.textContent = 'Konumuma Git'; + locationButton.textContent = 'Konum İzni Ver'; locationButton.classList.add('custom-map-control-button'); @@ -62,7 +62,7 @@ L.Control.GoToCurrentLocation = L.Control.extend({ locationButton.addEventListener('click', (ev) => { if (watchId === -1) { startWatchingLocation() - map.setView(currentLocationMarker.getLatLng(), 12); + locationButton.textContent = 'Konumuma Git'; } else { map.setView(currentLocationMarker.getLatLng(), 12); }