Remove map

Requires Google API key.
This commit is contained in:
Martin Polden 2018-03-04 16:49:01 +01:00
parent 3f1e267750
commit 5ff72def9c
2 changed files with 0 additions and 9 deletions

View File

@ -202,13 +202,11 @@ func (s *Server) DefaultHandler(w http.ResponseWriter, r *http.Request) *appErro
Host string
JSON string
Port bool
Map bool
}{
response,
r.Host,
string(json),
s.LookupPort != nil,
response.Country != "" && response.City != "",
}
if err := t.Execute(w, &data); err != nil {
return internalServerError(err)

View File

@ -96,13 +96,6 @@ $ http {{ .Host }}/port/8080
}</pre>
{{ end }}
</div>
{{ if .Map }}
<div class="pure-u-1 pure-u-md-1-2">
<h2>Map</h2>
<p><img src="https://maps.googleapis.com/maps/api/staticmap?size=500x166&amp;scale=2&amp;markers=color%3Aorange%7Clabel%3AS%7c{{ .City }},{{ .Country }}" width="500" height="166"/>
</p>
</div>
{{ end }}
<div class="pure-u-1 pure-u-md-1-2">
<h2>FAQ</h2>
<h3>How do I force IPv4 or IPv6 lookup?</h3>