Browse Source

move zoom control

pull/5/head
Aaron Parecki 9 years ago
parent
commit
a500b5fa0f
3 changed files with 7 additions and 2 deletions
  1. +5
    -0
      compass/public/assets/map.css
  2. +1
    -1
      compass/public/assets/map.js
  3. +1
    -1
      compass/resources/views/layouts/map.blade.php

+ 5
- 0
compass/public/assets/map.css View File

@ -2,6 +2,11 @@ html, body, #map {
height: 100%; height: 100%;
} }
.leaflet-top .leaflet-control-zoom {
margin-top: 60px;
margin-left: 26px;
}
table.calendar { table.calendar {
width: 100%; width: 100%;
} }

+ 1
- 1
compass/public/assets/map.js View File

@ -5,7 +5,7 @@ layer.maxZoom = 24;
layer.maxNativeZoom = 24; layer.maxNativeZoom = 24;
layer.addTo(map); layer.addTo(map);
new L.Control.Zoom({ position: 'bottomleft' }).addTo(map);
new L.Control.Zoom({ position: 'topleft' }).addTo(map);
var geojsonLineOptions = { var geojsonLineOptions = {
color: "#0033ff", color: "#0033ff",

+ 1
- 1
compass/resources/views/layouts/map.blade.php View File

@ -6,10 +6,10 @@
<link rel="stylesheet" href="/assets/pure-min.css"> <link rel="stylesheet" href="/assets/pure-min.css">
<link rel="stylesheet" href="/assets/font-awesome-4.4.0/css/font-awesome.min.css"> <link rel="stylesheet" href="/assets/font-awesome-4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/assets/styles.css"> <link rel="stylesheet" href="/assets/styles.css">
<link rel="stylesheet" href="/assets/map.css">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/assets/jquery-1.11.3.min.js"></script> <script src="/assets/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" href="/assets/leaflet-0.7.3/leaflet.css" /> <link rel="stylesheet" href="/assets/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="/assets/map.css">
</head> </head>
<body> <body>

Loading…
Cancel
Save