This commit is contained in:
parent
8c1e447286
commit
b2c2ba5c42
6
web.go
6
web.go
@ -13,6 +13,8 @@ func init() {
|
||||
return
|
||||
}
|
||||
|
||||
r.ParseForm()
|
||||
|
||||
fmt.Fprintf(w, `<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
@ -29,7 +31,7 @@ func init() {
|
||||
<script>
|
||||
var mandelbrotTypeOptions = {
|
||||
getTileUrl: function(coord, zoom) {
|
||||
return '/mandelbrot/' + zoom + '/' + coord.x + '/' + coord.y + '.png';
|
||||
return '/mandelbrot/' + zoom + '/' + coord.x + '/' + coord.y + '.png?label=%s';
|
||||
},
|
||||
tileSize: new google.maps.Size(128, 128),
|
||||
maxZoom: (1<<16),
|
||||
@ -67,6 +69,6 @@ function initialize() {
|
||||
<body onload="initialize()">
|
||||
<div id="map_canvas"></div>
|
||||
</body>
|
||||
</html>`)
|
||||
</html>`, r.FormValue("label"))
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user