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