Only call beginPath once per MultiPolygon

This commit is contained in:
Tim Schaub
2016-09-26 06:13:01 -06:00
parent d8fbc09326
commit f444800fc6
5 changed files with 123 additions and 8 deletions

View File

@@ -383,7 +383,12 @@
function resembleCanvas(canvas, referenceImage, tolerance, done) {
if (showMap) {
document.body.appendChild(canvas);
var wrapper = document.createElement('div');
wrapper.style.width = canvas.width + 'px';
wrapper.style.height = canvas.height + 'px';
wrapper.appendChild(canvas);
document.body.appendChild(wrapper);
document.body.appendChild(document.createTextNode(referenceImage));
}
resemble(referenceImage)