I would like to center a picture and draw an arrow to the part of the picture to have a text box with description. I have come up with an idea which is to put text box and picture under the same 'tikzpicture' but my picture doesn't go center that I want.
What I did is:
\begin{figure}[H]
\centering
\begin{tikzpicture}% based on https://tex.stackexchange.com/a/9561/ (Caramdir's fantastic answer to another question)
\node (map) [anchor=south west, inner sep=0pt] at (1.35,0.0)
{\fbox{\includegraphics[scale=.5]{photo/map.png}}};
\node (box) [draw, rectangle] at (0.0,1.0) {Location};
\begin{scope}[x={(map.south east)},y={(map.north west)}]
\draw [->](box)--(.35,.4);
\end{scope}
\end{tikzpicture}
\caption{Map}
\label{fig:map}
\end{figure}
Any help is appreciated!

pgfinterruptedboundingboxas in\begin{pgfinterruptboundingbox} \node (box) [draw, rectangle] at (0.0,1.0) {Location}; \begin{scope}[x={(map.south east)},y={(map.north west)}] \draw [->](box)--(.35,.4); \end{scope} \end{pgfinterruptboundingbox}should solve this issue. – leandriis Oct 08 '20 at 08:47