function moveMarker(moveType, evnetType) {
  const offset = 100;

  // get marker latlng from marker
  map.eachLayer((layer) => {
    if (layer instanceof L.Marker) {
      // get marker latlng from marker
      const latlngMarker = layer.getLatLng();

      // convert latlng to container point
      const latLng = map.latLngToContainerPoint(latlngMarker);

      // move marker to new place
      const moveToNewPlace = changePostionByClickButton(
        latLng,
        offset,
        evnetType,
        moveType,
      );

      // convert container point to latlng
      const newLatLng = map.containerPointToLatLng(moveToNewPlace);

      // set new latlng to marker
      layer.setLatLng(newLatLng);

      // move map to new latlng
      map.panTo([newLatLng.lat, newLatLng.lng]);
    }
  });
}
Move marker

@param {string} moveType
@param {string} evnetType