using the example Unfolding Maps / MarkerSelectionApp/ on a Raspberry Pi works.
possibly same problem as with your other question, your code use
size(1000,1000);
instead P2D like above mentioned example