Shrink 2x and shift down so we can see the whole set

Fix 0x zoom - dividing by 0 is not fun
This commit is contained in:
2018-08-02 23:34:39 -06:00
parent cd0cb9195a
commit ba0ef17b06
2 changed files with 11 additions and 9 deletions

8
web.go
View File

@@ -23,10 +23,10 @@ var mandelbrotTypeOptions = {
getTileUrl: function(coord, zoom) {
return '/mandelbrot/' + zoom + '/' + coord.x + '/' + coord.y + '.png';
},
tileSize: new google.maps.Size(256, 256),
maxZoom: (1<<16) - 1,
minZoom: 0,
name: 'Mandelbrot'
tileSize: new google.maps.Size(128, 128),
maxZoom: (1<<16),
minZoom: 1,
name: '0xdeadbeef Mandel Mapper'
};
var mandelbrotMapType = new google.maps.ImageMapType(mandelbrotTypeOptions);