Skip to content

Commit

Permalink
remove references to google maps
Browse files Browse the repository at this point in the history
  • Loading branch information
alyxbb committed Jun 12, 2024
1 parent 8a884f3 commit f556fe5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
cinPlaylistID = "PLsxUDJzU4VKAAH1pOogbzJx7pZgd-2zOx"
channelURL = "//youtube.com/ury1350"

[pageContext.gmaps]
APIKey = "AIzaSyACeeyIgdIhiSxV01OIPiA3MyJDqrOspLQ"
[pageContext.osm]
latitude = 53.948193
longitude = -1.054030

Expand Down
5 changes: 2 additions & 3 deletions structs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type PageContext struct {
CacheBuster string `toml:"cacheBuster"`
Pages []Page
Youtube youtube
Gmaps gmaps
Osm osm
CurrentYear int
}

Expand Down Expand Up @@ -99,8 +99,7 @@ type youtube struct {
ChannelURL string `toml:"channelURL"`
}

type gmaps struct {
APIKey string `toml:"apiKey"`
type osm struct {
Lat float32 `toml:"latitude"`
Lng float32 `toml:"longitude"`
}
Expand Down
4 changes: 2 additions & 2 deletions views/contact.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
<!-- Responsive map script -->
<script>
var placeName = "{{.PageContext.LongName}}";
var Lat = {{.PageContext.Gmaps.Lat}};
var Lng = {{.PageContext.Gmaps.Lng}};
var Lat = {{.PageContext.Osm.Lat}};
var Lng = {{.PageContext.Osm.Lng}};
</script>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
Expand Down

0 comments on commit f556fe5

Please sign in to comment.