calculate an svg width and height from the viewport and map extent