mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-10-18 23:54:37 +02:00
25 lines
877 B
Text
25 lines
877 B
Text
|
doctype html
|
||
|
html
|
||
|
head
|
||
|
title Stadtratmonitor Leipzig - Karte
|
||
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||
|
= stylesheet_link_tag 'https://unpkg.com/leaflet@1.0.1/dist/leaflet.css'
|
||
|
= javascript_include_tag 'vendor/modernizr'
|
||
|
= javascript_include_tag 'https://unpkg.com/leaflet@1.0.1/dist/leaflet.js'
|
||
|
= csrf_meta_tags
|
||
|
|
||
|
body
|
||
|
.row
|
||
|
.small-12.columns
|
||
|
.clearfix
|
||
|
h3#title = 'Karte'
|
||
|
div#map/
|
||
|
javascript:
|
||
|
var map = L.map('map').setView([51.4437366804, 11.865234375], 9);
|
||
|
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||
|
{
|
||
|
attribution: 'Map data @ <a href="http://openstreetmap.org">OpenStreetMap</a> contributors</a>',
|
||
|
maxZoom: 12,
|
||
|
minZoom: 8
|
||
|
}
|
||
|
).addTo(map);
|