offscreenCutoffPG.endDraw();
// Transforms (outer) map pane, and draws inner map + marker onto canvas
// This cuts off marker at the border.
PGraphics canvasPG = papplet.g;
canvasPG.pushMatrix();
canvasPG.translate(offsetX, offsetY);
if (canvasPG.is3D()) {
canvasPG.applyMatrix(matrix);
} else {
canvasPG.applyMatrix(matrix.m00, matrix.m01, matrix.m03, matrix.m10, matrix.m11, matrix.m13);