diff --git a/index.html b/index.html index d16dce8..1ce0b0c 100644 --- a/index.html +++ b/index.html @@ -74,6 +74,7 @@ contents += '

Distributed as-is with no warranty

'; contents += '

Stop your bike in a safe place before using

'; contents += '

Requires internet access to view maps and location

'; + contents += '

This is a link!

'; contents += '

Allow smartphone browser to show your location
- iPhone > Settings > Privacy > Location Services (On) > Safari (While Using)
- Android (to come)

'; contents += '

Click OK if browser asks permission to show your location

'; contents += 'Allow Current Location screen'; @@ -117,19 +118,19 @@ color: 'blue', distanceMarkers: { showAll: 11, offset: 1609, bgcolor: 'bg-blue'} // meters per mile; bgcolor defined in style.css }).addTo(map); - controlLayers.addOverlay(WeHa11, 'West Hartford 11 mile (blue)'); + controlLayers.addOverlay(WeHa11, 'West Hartford 11 mile '); var WeHa25 = new L.GPX("routes/WeHa2015-25.gpx", { color: 'green', distanceMarkers: { showAll: 11, offset: 1609, bgcolor: 'bg-green'} // meters per mile; bgcolor defined in style.css }); - controlLayers.addOverlay(WeHa25, 'West Hartford 25 mile (green)'); + controlLayers.addOverlay(WeHa25, 'West Hartford 25 mile '); var WeHa50 = new L.GPX("routes/WeHa2015-50.gpx", { color: '#ff3399', distanceMarkers: { showAll: 11, offset: 1609, bgcolor: 'bg-pink'} // meters per mile; bgcolor defined in style.css }); - controlLayers.addOverlay(WeHa50, 'West Hartford 50 mile (pink)'); + controlLayers.addOverlay(WeHa50, 'West Hartford 50 mile '); // Thanks @ilyankou for gatherBounds function; update layer names function gatherBounds() { @@ -157,8 +158,11 @@ map.on('layerremove', function() { gatherBounds(); + }); + $('

Putin

').insertBefore('div.leaflet-control-layers-base'); + diff --git a/src/L.Control.SlideMenu.css b/src/L.Control.SlideMenu.css index 1db7864..63759b1 100755 --- a/src/L.Control.SlideMenu.css +++ b/src/L.Control.SlideMenu.css @@ -1,27 +1,28 @@ -.leaflet-control-slidemenu{ +.leaflet-control-slidemenu { cursor: pointer; } -.leaflet-menu{ +.leaflet-menu { position: absolute; - background-color: rgba(255, 255, 255, 255); + background-color: rgba(255, 255, 255, 1); overflow: auto; cursor: default; z-index: 9999; + overflow-x: hidden; } -.leaflet-menu::-webkit-scrollbar{ +.leaflet-menu::-webkit-scrollbar { width: 7px; height: 7px; background: #f2f2f2; } -.leaflet-menu::-webkit-scrollbar-thumb{ +.leaflet-menu::-webkit-scrollbar-thumb { border-radius: 2px; background: #777; } -.leaflet-menu-close-button{ +.leaflet-menu-close-button { background-color: transparent; border: none; font-size: 2em; @@ -30,10 +31,10 @@ cursor: pointer; } -.leaflet-menu-close-button:hover{ +.leaflet-menu-close-button:hover { color: #4285F4; } -.leaflet-menu-contents{ +.leaflet-menu-contents { margin: 16px 10px 10px 10px; } diff --git a/style.css b/style.css index 98c5b09..4875e26 100644 --- a/style.css +++ b/style.css @@ -17,30 +17,27 @@ body { line-height: 36px; }*/ -/* slide menu button with question circle */ -.leaflet-control-slidemenu a, .leaflet-control-slidemenu a:hover { - width: 36px; - height: 36px; - line-height: 36px; +/* Slide menu button with question circle and locate button */ +.leaflet-control-slidemenu a, +.leaflet-control-locate a, +.leaflet-control-layers a { + width: 36px !important; + height: 36px !important; + line-height: 36px !important; font-size: 2em; } -/* leaflet-control-locate button*/ -.leaflet-control-locate a, leaflet-control-locate a:hover { - width: 36px; - height: 36px; - line-height: 36px; - font-size: 2em; - color: #0000ff; -} -.leaflet-control-locate.active a { - color: #0000ff; +/* Locate button color */ +.leaflet-control-locate a { + color: #00f !important; } -.leaflet-control-locate.active.following a { - color: #0000ff; + +/* Gray outline to compass icon for mobile devices */ +.leaflet-touch .leaflet-compass { + border: 2px solid rgba(0, 0, 0, 0.1); } -/*line mileage distance markers and colors*/ +/* Line mileage distance markers and colors */ .dist-marker { font-size: 14px; line-height: 18px; @@ -52,22 +49,21 @@ body { border-radius: 9px; } -.bg-blue { - background: blue; -} - -.bg-green { - background: green; -} - -.bg-black { - background: black; -} +/* Background colors of distance markers */ +.bg-blue { background: blue; } +.bg-green { background: green; } +.bg-black { background: black; } +.bg-yellow { background: #fc0; } +.bg-pink { background: #f39; } -.bg-yellow { - background: #ffcc00; +/* Colored line in layer control title */ +.color-line { + display: inline-block; + vertical-align: middle; + height: 5px; + width: 50px; } -.bg-pink { - background: #f39; +#mapTitle { + margin: 5px 0 5px 0; }