+//= require leaflet.locate
+
$(document).ready(function () {
var map = L.map("map", {
attributionControl: false,
L.OSM.zoom()
.addTo(map);
+ L.control.locate({
+ strings: {
+ title: I18n.t('javascripts.map.locate.title'),
+ popup: I18n.t('javascripts.map.locate.popup')
+ }
+ }).addTo(map);
+
if (OSM.home) {
map.setView([OSM.home.lat, OSM.home.lon], 12);
} else {
height: $headerHeight;
position: relative;
border-bottom: $keyline;
+ z-index: 1001;
h1, nav, nav > ul, nav > ul > li, .dropdown {
display: inline-block;
border-radius: 4px 0 0 0;
}
-.site .leaflet-control .zoomout,
+.leaflet-control .zoomout,
.control-key .control-button {
margin-bottom: 0;
border-radius: 0;
}
-.leaflet-control .zoomout, // For non-main page maps
.control-locate .control-button,
.control-share .control-button {
border-radius: 0 0 0 4px;
/* Rules for the sidebar */
#sidebar {
+ border-right: $keyline;
+
.alert {
background: #e00;
}
border-bottom: $keyline;
}
+ h4 {
+ font-weight: normal;
+ }
+
.icon.close {
position: absolute;
right: $lineheight;
float: right;
}
-.content_map #small_map {
- height: 100%;
- width: 100%;
- margin-bottom: $lineheight;
-}
-
/* Rules for the changeset list shown by the history tab etc */