Completed MapDraw.
Fixed svgen to generate valid JSON.