unfolding
unfolding copied to clipboard
Resizing MaskedPGraphicsMapDisplay
MaskedPGraphicsMapDisplay has a problem when resizing. From looking at the source, I think needs to override resize() to recreate the buffer at the new size, otherwise changing the size of the map doesn't work.
@Override
public void resize(float width, float height){
super.resize(width, height);
pg = papplet.createGraphics((int) width, (int) height, P3D);
}
fixes it here.