I use tikz-3dplot and I expect that rectangle, grid and similar objects are rotated along with the rest part of the figure. However, they are drawn as if they are in 2D. How do I force a rectangle to be drawn in the rotated coodinates?
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{patterns, arrows, matrix, positioning, decorations.markings, arrows.meta, decorations.pathreplacing}
\usepackage{tikz-3dplot}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\begin{document}
\tdplotsetmaincoords{70}{110}
\def\mycolor{blue}
\begin{tikzpicture}[scale=1, tdplot_main_coords, axis/.style={->,\mycolor,thick}]
\def\latnum{8}
\def\lonnum{8}
\draw[axis] (0,0,0) -- (\latnum+1,0,0) node[anchor=north east]{\huge $lat$};
\draw[axis] (0,0,0) -- (0,\lonnum+1,0) node[anchor=north west]{\huge $lon$};
\fill [orange] (\latnum-2,\lonnum-2,0) rectangle (2,2,0);
\end{tikzpicture}
\end{document}

\draw(A)--(B)--(C)--(D)--cycle;. – Symbol 1 Apr 30 '17 at 18:42\fill. How do I do that in 3D? – Antonio Apr 30 '17 at 19:50\fill [orange] (\latnum,\lonnum,0) -- ++(-2,0,0) -- ++(0,-2,0) -- ++(2,0,0) -- cycle;Thank you. – Antonio Apr 30 '17 at 20:09