-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Geocode Control as a simple search field option. Also updated L…
…eaflet.js to Version 1.6.
- Loading branch information
fwolf
committed
Feb 5, 2020
1 parent
bf930c2
commit e716f13
Showing
19 changed files
with
30,799 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
.leaflet-control-geocoder { | ||
border-radius: 4px; | ||
background: white; | ||
min-width: 26px; | ||
min-height: 26px; | ||
} | ||
|
||
.leaflet-touch .leaflet-control-geocoder { | ||
min-width: 30px; | ||
min-height: 30px; | ||
} | ||
|
||
.leaflet-control-geocoder a, | ||
.leaflet-control-geocoder .leaflet-control-geocoder-icon { | ||
border-bottom: none; | ||
display: inline-block; | ||
} | ||
|
||
.leaflet-control-geocoder .leaflet-control-geocoder-alternatives a { | ||
width: inherit; | ||
height: inherit; | ||
line-height: inherit; | ||
} | ||
|
||
.leaflet-control-geocoder a:hover, | ||
.leaflet-control-geocoder .leaflet-control-geocoder-icon:hover { | ||
border-bottom: none; | ||
display: inline-block; | ||
} | ||
|
||
.leaflet-control-geocoder-form { | ||
display: none; | ||
vertical-align: middle; | ||
} | ||
.leaflet-control-geocoder-expanded .leaflet-control-geocoder-form { | ||
display: inline-block; | ||
} | ||
.leaflet-control-geocoder-form input { | ||
font-size: 120%; | ||
border: 0; | ||
background-color: transparent; | ||
width: 246px; | ||
} | ||
|
||
.leaflet-control-geocoder-icon { | ||
border-radius: 4px; | ||
width: 26px; | ||
height: 26px; | ||
border: none; | ||
background-color: white; | ||
background-image: url(images/geocoder.png); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
cursor: pointer; | ||
} | ||
|
||
.leaflet-touch .leaflet-control-geocoder-icon { | ||
width: 30px; | ||
height: 30px; | ||
} | ||
|
||
.leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon { | ||
background-image: url(images/throbber.gif); | ||
} | ||
|
||
.leaflet-control-geocoder-form-no-error { | ||
display: none; | ||
} | ||
|
||
.leaflet-control-geocoder-form input:focus { | ||
outline: none; | ||
} | ||
|
||
.leaflet-control-geocoder-form button { | ||
display: none; | ||
} | ||
.leaflet-control-geocoder-error { | ||
margin-top: 8px; | ||
margin-left: 8px; | ||
display: block; | ||
color: #444; | ||
} | ||
.leaflet-control-geocoder-alternatives { | ||
display: block; | ||
width: 272px; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.leaflet-control-geocoder-alternatives-minimized { | ||
display: none; | ||
height: 0; | ||
} | ||
.leaflet-control-geocoder-alternatives li { | ||
white-space: nowrap; | ||
display: block; | ||
overflow: hidden; | ||
padding: 5px 8px; | ||
text-overflow: ellipsis; | ||
border-bottom: 1px solid #ccc; | ||
cursor: pointer; | ||
} | ||
|
||
.leaflet-control-geocoder-alternatives li a, | ||
.leaflet-control-geocoder-alternatives li a:hover { | ||
width: inherit; | ||
height: inherit; | ||
line-height: inherit; | ||
background: inherit; | ||
border-radius: inherit; | ||
text-align: left; | ||
} | ||
|
||
.leaflet-control-geocoder-alternatives li:last-child { | ||
border-bottom: none; | ||
} | ||
.leaflet-control-geocoder-alternatives li:hover, | ||
.leaflet-control-geocoder-selected { | ||
background-color: #f5f5f5; | ||
} | ||
.leaflet-control-geocoder-address-detail { | ||
} | ||
.leaflet-control-geocoder-address-context { | ||
color: #666; | ||
} |
Oops, something went wrong.