Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

add ruhrgebiet to map #599

Merged
merged 2 commits into from Jun 21, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions app/assets/javascripts/pages/welcome.coffee
Expand Up @@ -14,7 +14,7 @@ $ ->

koeln = new L.Popup()
koeln.setLatLng([50.938056,6.956944])
koeln.setContent("<a href='/move_to/koeln'>Köln</a>")
koeln.setContent("<a href='/move_to/koeln'>Köln</a>")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the encoding is broken now. Can you check that again?

map.addLayer(koeln)

berlin = new L.Popup()
Expand All @@ -24,13 +24,19 @@ $ ->

muenchen = new L.Popup()
muenchen.setLatLng([48.1368,11.5781])
muenchen.setContent("<a href='/move_to/muenchen'>München</a>")
muenchen.setContent("<a href='/move_to/muenchen'>München</a>")
map.addLayer(muenchen)

ruhrgebiet = new L.Popup()
ruhrgebiet.setLatLng([51.45564,7.01156])
ruhrgebiet.setContent("<a href='/move_to/ruhrgebiet'>Ruhrgebiet</a>")
map.addLayer(ruhrgebiet)

map.fitBounds([
[50.938056,6.956944],
[52.516667,13.383333],
[48.1368,11.5781]
[48.1368,11.5781],
[51.45564,7.01156]
], {padding: [50, 50]})

if $(".welcome_map").length > 0
Expand Down