npmap.js
Version:
A JavaScript web mapping library, built as a Leaflet plugin, for the National Park Service.
1,544 lines (1,517 loc) • 42.4 kB
CSS
.npmap {
height: 100%;
position: relative;
width: 100%;
}
.npmap * {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.npmap .clearfix:after, .npmap .clearfix:before {
content: " ";
display: table;
}
.npmap .clearfix:after {
clear: both;
}
.npmap .ir {
background-repeat: no-repeat;
direction: ltr;
display: block;
overflow: hidden;
text-align: left;
text-indent: -999em;
}
.npmap a:focus, .npmap button:focus, .npmap div:focus, .npmap input:focus {
outline-color: #b28000 ; /* Only necessary because NPS Bootstrap isn't updated yet */
}
.npmap-modules {
-webkit-box-shadow: 2px 0 2px rgba(0,0,0,.2);
-moz-box-shadow: 2px 0 2px rgba(0,0,0,.2);
box-shadow: 2px 0 2px rgba(0,0,0,.2);
background-color: #f9f7f1;
display: none;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 300px;
z-index: 2;
}
.npmap-modules .module {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.npmap-modules .module h1, .npmap-modules .module h2, .npmap-modules .module h3, .npmap-modules .module h4, .npmap-modules .module h5, .npmap-modules .module h6 {
font-weight: 500;
line-height: 1.1;
}
.npmap-modules .module h2.title {
font-size: 17px;
}
.npmap-modules .module .content {
bottom: 0;
font-size: 14px;
left: 0;
overflow: auto;
padding: 0 10px;
position: absolute;
right: 0;
top: 39px;
}
.npmap-modules .module .content h3 {
font-size: 16px;
}
.npmap-modules .module .content h4 {
font-size: 15px;
}
.npmap-modules .module .content h5 {
font-size: 14px;
}
.npmap-modules .module .content h6 {
font-size: 13px;
}
.npmap-modules .module .title {
border-bottom: solid 1px #B5B39C;
padding: 10px 9px;
margin: 0;
}
.npmap-modules-buttons .npmap-modules-buttons-button {
background-position: 4px;
background-repeat: no-repeat;
background-size: 16px 16px;
}
.npmap-container {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 1;
}
.npmap-map-wrapper {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 1;
}
.npmap-map-wrapper .npmap-modules-buttons {
bottom: 0;
margin: 10px -30px 0 0;
position: absolute;
top: 0;
width: 30px;
}
.npmap-map-wrapper .npmap-modules-buttons button {
-webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0;
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
-webkit-box-shadow: 1px 2px 5px rgba(0,0,0,.4);
-moz-box-shadow: 1px 2px 5px rgba(0,0,0,.4);
box-shadow: 1px 2px 5px rgba(0,0,0,.4);
background-color: #74746a;
border: none;
display: none;
height: 24px;
margin: 0;
padding: 0;
width: 24px;
}
.npmap-map-wrapper .npmap-modules-buttons button:hover {
background-color: #626159;
}
.npmap-map-wrapper .npmap-modules-buttons button.active {
background-color: #4b4b44;
cursor: default;
}
.npmap-map {
background-image: url('images/grain.png');
border: solid 1px transparent;
box-sizing: border-box;
height: 100%;
width: 100%;
}
.npmap-map:focus {
border-color: #b28000;
}
.npmap-toolbar {
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
-moz-box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
background-color: #908e7d;
display: none;
height: 26px;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 2;
}
.npmap-toolbar ul.left, .npmap-toolbar ul.right {
line-height: 0.8;
list-style-type: none;
margin: 0;
padding: 0;
}
.npmap-toolbar ul.left {
float: left;
}
.npmap-toolbar ul.left li {
border-left: none ;
border-right: solid 1px #adaca2 ;
float: left;
}
.npmap-toolbar ul.right {
float: right ;
}
.npmap-toolbar ul.right li {
border-left: solid 1px #adaca2 ;
border-right: none ;
float: left ;
}
.npmap-toolbar ul li {
height: auto ;
list-style-type: none ;
padding: 0 ;
}
.npmap-toolbar button {
background-color: #828171;
background-repeat: no-repeat;
border: none;
cursor: pointer;
height: 25px;
padding-bottom: 0;
padding-top: 0;
position: relative;
width: 18px;
}
.npmap-toolbar button:focus {
outline-offset: -3px;
}
.npmap-toolbar button:hover {
background-color: #74746a;
}
/* Buttons and Forms */
.npmap button, .npmap input {
line-height: 14px;
}
.npmap input[type = 'text'] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #c9c9c9;
color: #464646;
font-size: 12px;
font-weight: bold;
padding: 6px 8px;
}
.npmap button, .npmap input, .npmap select, .npmap textarea {
font-family: inherit;
font-size: 100%;
margin: 0;
}
.npmap button, .npmap select {
text-transform: none;
}
.npmap button, .npmap html input[type="button"], .npmap input[type="reset"], .npmap input[type="submit"] {
-webkit-appearance: button;
-moz-appearance: button;
cursor: pointer;
}
.npmap button[disabled], .npmap html input[disabled] {
cursor: default;
}
.npmap button::-moz-focus-inner, .npmap input::-moz-focus-inner {
border: 0;
padding: 0;
}
.npmap input, .npmap button, .npmap select, .npmap textarea {
font-family: inherit;
font-size: inherit;
/*
line-height: inherit;
*/
}
.npmap button, .npmap input, .npmap select[multiple], .npmap textarea {
background-image: none;
}
.npmap .btn {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
border: 1px solid transparent;
border-radius: 4px;
cursor: pointer;
display: inline-block;
font-size: 12px;
font-weight: bold;
line-height: 1.428571429;
margin-bottom: 0;
padding: 6px 12px;
text-align: center;
vertical-align: middle;
white-space: nowrap;
}
.npmap .btn:hover, .npmap .btn:focus {
color: #333333;
text-decoration: none;
}
.npmap .btn:active, .npmap .btn.active {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
-moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
background-image: none;
outline: 0;
}
.npmap .btn.disabled, .npmap .btn[disabled], .npmap fieldset[disabled] .btn {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
cursor: not-allowed;
filter: alpha(opacity=65);
opacity: 0.65;
pointer-events: none;
}
.npmap .btn-default {
background-color: #ffffff;
border-color: #cccccc;
color: #333333;
}
.npmap .btn-default:hover, .npmap .btn-default:focus, .npmap .btn-default:active, .npmap .btn-default.active {
background-color: #ebebeb;
border-color: #adadad;
color: #333333;
}
.npmap .btn-default:active, .npmap .btn-default.active {
background-image: none;
}
.npmap .btn-default.disabled, .npmap .btn-default[disabled], .npmap fieldset[disabled] .btn-default, .npmap .btn-default.disabled:hover, .npmap .btn-default[disabled]:hover, .npmap fieldset[disabled] .btn-default:hover, .npmap .btn-default.disabled:focus, .npmap .btn-default[disabled]:focus, .npmap fieldset[disabled] .btn-default:focus, .npmap .btn-default.disabled:active, .npmap .btn-default[disabled]:active, .npmap fieldset[disabled] .btn-default:active, .npmap .btn-default.disabled.active, .npmap .btn-default[disabled].active, .npmap fieldset[disabled] .btn-default.active {
background-color: #ffffff;
border-color: #cccccc;
}
.npmap .btn-link {
-webkit-box-shadow: none;
box-shadow: none;
background-color: transparent;
border-radius: 0;
color: #936a00;
cursor: pointer;
font-weight: normal;
}
.npmap .btn-link:hover, .npmap .btn-link:focus {
background-color: transparent;
color: #b98600;
text-decoration: underline;
}
.npmap .btn-primary {
background-color: #b28000;
border-color: #996e00;
color: #ffffff;
}
.npmap .btn-primary:hover, .npmap .btn-primary:focus, .npmap .btn-primary:active, .npmap .btn-primary.active, .npmap .open .dropdown-toggle.btn-primary {
background-color: #896300;
border-color: #5b4200;
color: #ffffff;
}
.npmap .btn-primary:active, .npmap .btn-primary.active {
background-image: none;
}
.npmap .btn-primary.disabled, .npmap .btn-primary[disabled], .npmap fieldset[disabled] .btn-primary, .npmap .btn-primary.disabled:hover, .npmap .btn-primary[disabled]:hover, .npmap fieldset[disabled] .btn-primary:hover, .npmap .btn-primary.disabled:focus, .npmap .btn-primary[disabled]:focus, .npmap fieldset[disabled] .btn-primary:focus, .npmap .btn-primary.disabled:active, .npmap .btn-primary[disabled]:active, .npmap fieldset[disabled] .btn-primary:active, .npmap .btn-primary.disabled.active, .npmap .btn-primary[disabled].active, .npmap fieldset[disabled] .btn-primary.active {
background-color: #b28000;
border-color: #996e00;
}
.npmap .btn-circle {
background: #d29700;
border-radius: 90% ;
color: #fff;
font-family: Arial ;
height: 21px;
line-height: 21px ;
padding: 0 ;
pointer-events: auto;
text-align: center ;
width: 21px;
}
.npmap .btn-circle:focus, .npmap .btn-circle:hover {
color: #fff;
}
.npmap .btn-circle:hover {
background: #8f8f7d;
}
.npmap .btn-lg {
border-radius: 6px;
font-size: 18px;
line-height: 1.33;
padding: 10px 16px;
}
.npmap .btn-sm, .npmap .btn-xs {
border-radius: 3px;
font-size: 12px;
line-height: 1.5;
padding: 5px 10px;
}
.npmap .btn-xs {
padding: 1px 5px;
}
.npmap .btn-block {
display: block;
padding-left: 0;
padding-right: 0;
width: 100%;
}
.npmap .btn-block + .btn-block {
margin-top: 5px;
}
.npmap input[type="submit"].btn-block, .npmap input[type="reset"].btn-block, .npmap input[type="button"].btn-block {
width: 100%;
}
/* Leaflet Overrides */
.npmap .leaflet-container {
color: #464646;
font-family: inherit;
font-size: inherit;
overflow: hidden;
}
.npmap .leaflet-container a {
color: #b28000;
cursor: pointer;
font-weight: normal;
text-decoration: none;
}
.npmap .leaflet-container a:hover {
color: #d39700;
text-decoration: underline;
}
.npmap .leaflet-container h1, .npmap .leaflet-container h2, .npmap .leaflet-container h3, .npmap .leaflet-container h4, .npmap .leaflet-container h5, .npmap .leaflet-container h6 {
font-size: 15px;
line-height: 20px;
margin: 0 0 10px;
}
/* Icons */
.npmaki-icon.large {
background-size: 24px 24px;
height: 24px;
margin-left: 5px;
margin-top: 7px;
width: 24px;
}
.npmaki-icon.medium {
background-size: 18px 18px;
height: 18px;
margin-left: 5px;
margin-top: 4px;
width: 18px;
}
.npmaki-icon.small {
background-size: 12px 12px;
height: 12px;
margin-left: 5px;
margin-top: 4px;
width: 12px;
}
.npmap [class^="icon-"], [class*=" icon-"] {
background-image: url('images/icon/sprite.png');
background-repeat: no-repeat;
display: inline-block;
height: 14px;
line-height: 14px;
margin-top: 1px;
vertical-align: text-top;
width: 14px;
}
.leaflet-marker-icon {
background-size: 100%;
}
/* Popup */
.npmap .leaflet-popup-content-wrapper {
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
-moz-box-shadow: 0 1px 5px rgba(0,0,0,.18);
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,.18);
box-shadow: 0 1px 5px rgba(0,0,0,.18);
background-color: #f9f7f1;
border: 1px solid #bdbbb1;
pointer-events: auto;
overflow: auto;
text-align: left;
}
.npmap .leaflet-popup-pane {
pointer-events: none;
}
.npmap .leaflet-popup-tip-container {
height: 25px;
margin: -1px auto;
padding-left: 21px;
width: 25px;
}
/* IE8 and below */
.npmap .leaflet-oldie .leaflet-control-zoom {
border: none;
}
.npmap .leaflet-oldie .leaflet-popup-tip-container {
display: none;
}
.npmap .leaflet-popup-tip {
-webkit-box-shadow: none;
-moz-box-shadow: none;
-ms-box-shadow: none;
-o-box-shadow: none;
box-shadow: none;
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
background-color: transparent;
border-left: solid 1px #bdbbb1;
height: 24px;
margin: 0 auto;
padding: 0;
padding-bottom: 1px;
overflow: hidden;
position: relative;
width: 100%;
}
.npmap .leaflet-popup-tip:after {
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,.18);
-moz-box-shadow: 0 1px 5px rgba(0,0,0,.18);
-ms-box-shadow: 0 1px 5px rgba(0,0,0,.18);
-o-box-shadow: 0 1px 5px rgba(0,0,0,.18);
box-shadow: 0 1px 5px rgba(0,0,0,.18);
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
background-color: #f9f7f1;
border: 1px solid #bdbbb1;
content: "";
height: 50px;
left: -15px;
position: absolute;
top: -25px;
width: 30px;
}
.npmap .leaflet-container a.leaflet-popup-close-button {
background: #d29700;
border-radius: 90%;
color: #fff;
font-family: Arial;
height: 21px;
line-height: 21px;
padding: 0;
pointer-events: auto;
position: absolute;
right: -9px;
text-align: center;
top: -10px;
width: 21px;
}
.npmap .leaflet-container a.leaflet-popup-close-button:focus, .leaflet-container a.leaflet-popup-close-button:hover {
background-color: #8f8f7d;
color: #fff;
text-decoration: none;
}
.npmap .leaflet-popup-content {
font-size: 14px;
margin: 15px;
}
.npmap .leaflet-popup-content dt {
clear: both;
float: left;
font-weight: bold;
}
.npmap .leaflet-popup-content dt:after {
content: ":";
}
.npmap .leaflet-popup-content dd {
float: left;
margin-left: 5px;
}
.npmap .leaflet-popup-content ul {
float: none;
margin-left: 0;
margin-top: 0;
padding-left: 25px;
}
.npmap .leaflet-popup-content ul li {
list-style: initial;
}
.npmap .leaflet-popup-content p {
margin: 6px 0;
}
.npmap .leaflet-popup-content table {
border: none;
border-collapse: collapse;
margin: 0;
width: 100%;
}
.npmap .leaflet-popup-content table tr {
border-bottom: 1px solid #e1dfd7;
vertical-align: middle;
}
.npmap .leaflet-popup-content table tr.hoverable {
cursor: pointer;
}
.npmap .leaflet-popup-content table tr.hoverable td, .npmap .leaflet-popup-content table tr.hoverable th {
padding-left: 5px;
padding-right: 5px;
}
.npmap .leaflet-popup-content table tr.hoverable:hover {
background-color: #e1dfd7;
}
.npmap .leaflet-popup-content table tr:last-child {
border-bottom: none;
}
.npmap .leaflet-popup-content table td, .npmap .leaflet-popup-content table th {
border: none;
padding-bottom: 7px;
padding-top: 7px;
}
.npmap .leaflet-popup-content table tr th:first-child, .npmap .leaflet-popup-content table tr td:first-child {
padding-right: 7px;
}
.npmap .leaflet-popup-content th {
white-space: nowrap;
}
.npmap .leaflet-popup-content .actions {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border-top: solid 1px #b1b0a7;
clear: both;
margin-top: 12px;
padding-top: 12px;
position: relative;
}
.npmap .leaflet-popup-content .actions ul {
padding-left: 0;
}
.npmap .leaflet-popup-content .actions ul li {
float: left;
list-style-type: none;
margin: 0 5px 16px 5px;
}
.npmap .leaflet-popup-content .actions ul li:first-child {
margin-left: 0;
}
.npmap .leaflet-popup-content .actions ul li:last-child {
margin-right: 0;
}
.npmap .leaflet-popup-content .actions a {
color: #1f4a87;
font-weight: bold;
}
.npmap .leaflet-popup-content .actions a:hover {
text-decoration: none;
}
.npmap .leaflet-popup-content .actions .menu {
-webkit-box-shadow: 0 2px 3px rgba(0,0,0,.12);
-moz-box-shadow: 0 2px 3px rgba(0,0,0,.12);
box-shadow: 0 2px 3px rgba(0,0,0,.12);
background-color: #fff;
display: none;
position: absolute;
z-index: 1;
}
.npmap .leaflet-popup-content .actions .menu a {
color: #464646;
display: block;
font-size: 11px;
padding: 5px 16px;
}
.npmap .leaflet-popup-content .actions .menu a:hover {
background-color: #f1f1ef;
}
.npmap .leaflet-popup-content .actions .menu {
list-style-type: none;
margin: 0;
padding: 0;
width: 100px;
}
.npmap .leaflet-popup-content .actions .menu li {
border-top: 1px solid #f2f1ef;
display: block;
margin: 0;
padding: 0;
width: 100%;
}
.npmap .leaflet-popup-content .actions .menu li:first-child {
border-top: 0;
}
.npmap .leaflet-popup-content .layer {
clear: both;
margin-bottom: 10px;
}
.npmap .leaflet-popup-content .layer .sublayer {
clear: both;
margin-bottom: 8px;
}
.npmap .leaflet-popup-content .layer .sublayer:last-child {
margin-bottom: 0;
}
.npmap .leaflet-popup-content .layer:last-child {
margin-bottom: 0;
}
.npmap .leaflet-popup-content .media button:last-child {
margin-left: 2px;
}
.npmap .leaflet-popup-content .media ul {
list-style-type: none;
margin: 10px 0;
padding: 0;
}
.npmap .leaflet-popup-content .media ul li {
width: 100%;
}
.npmap .leaflet-popup-content .media ul li img {
width: 100%;
}
.npmap .leaflet-popup-content .title {
font-weight: bold;
margin-bottom: 8px;
}
.npmap .leaflet-popup-content .sublayer .title {
font-style: italic;
font-weight: normal;
}
.npmap .leaflet-popup-content .footer {
border-top: solid 1px #b1b0a7;
margin-bottom: 2px;
margin-top: 13px;
padding-top: 17px;
}
.npmap .leaflet-popup-scrolled {
border-bottom: none;
border-top: none;
margin-right: 5px;
padding-right: 5px;
}
.npmap .leaflet-popup-scrolled .actions, .leaflet-popup-scrolled .content, .leaflet-popup-scrolled .title {
margin-right: 10px;
}
.npmap .leaflet-popup-scrolled .content img {
margin-right: 10px;
}
/* Tooltip */
.npmap .leaflet-tooltip-container {
z-index: 4;
}
.npmap .leaflet-tooltip {
-webkit-border-radius: 1px;
border-radius: 1px;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
background-color: #fff;
border: 1px solid #bdbbb1;
box-shadow: 0 1px 7px rgba(0,0,0,0.4);
color: #464646;
cursor: default;
display: none;
max-width: 250px;
opacity: 0;
padding: 7px 10px;
position: absolute;
width: auto;
z-index: 10;
}
.npmap .leaflet-tooltip.leaflet-tooltip-fade {
opacity: 1;
}
/* Zoombox */
.npmap .leaflet-zoom-box {
border: 3px solid #d29700;
background: white;
opacity: 0.5;
}
/* Leaflet Bar */
.npmap .leaflet-bar button {
display: inherit;
}
.npmap .leaflet-bar a, .npmap .leaflet-bar a:hover, .npmap .leaflet-bar button, .npmap .leaflet-bar button:hover {
-webkit-text-shadow: 0 2px 2px #757571;
-moz-text-shadow: 0 2px 2px #757571;
-ms-text-shadow: 0 2px 2px #757571;
-o-text-shadow: 0 2px 2px #757571;
text-shadow: 0 2px 2px #757571;
background-color: #74746a;
border-bottom: 1px solid #1a2423;
border-left: 1px solid #1a2423;
border-right: 1px solid #1a2423;
border-top: none;
color: #fff;
height: 27px;
line-height: 26px;
padding: 0;
text-align: center;
text-decoration: none;
width: 26px;
}
.npmap .leaflet-bar a:hover, .npmap .leaflet-bar button:hover {
background-color: #626159;
}
.npmap .leaflet-bar a:active, .npmap .leaflet-bar a.pressed, .npmap .leaflet-bar button:active, .npmap .leaflet-bar button.pressed {
background-color: #53534a;
}
.npmap .leaflet-bar a.leaflet-disabled, .npmap .leaflet-bar a.leaflet-disabled:hover, .npmap .leaflet-bar button.leaflet-disabled, .npmap .leaflet-bar button.leaflet-disabled:hover {
-webkit-text-shadow: none;
-moz-text-shadow: none;
-ms-text-shadow: none;
-o-text-shadow: none;
text-shadow: none;
background-color: #4b4B44;
color: #bbb;
}
.npmap .leaflet-bar a:first-child, .npmap .leaflet-bar button:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-top: 1px solid #1a2423;
height: 26px;
}
.npmap .leaflet-bar a:last-child, .npmap .leaflet-bar button:last-child {
border-bottom: 1px solid #1a2423;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top: none;
height: 27px;
}
.npmap .leaflet-bar a.leaflet-bar-single, .npmap .leaflet-bar button.leaflet-bar-single {
border-radius: 4px;
border-top: solid 1px #1a2423;
height: 26px;
}
/* Controls */
.npmap .leaflet-control {
-webkit-box-shadow: 0 0 15px #888;
-moz-box-shadow: 0 0 15px #888;
-ms-box-shadow: 0 0 15px #888;
-o-box-shadow: 0 0 15px #888;
box-shadow: 0 0 15px #888;
}
/* Attribution Control */
.npmap .leaflet-control-attribution {
display: inline-block;
line-height: 13px;
overflow: hidden;
padding: 3px 5px;
text-align: right;
text-overflow: ellipsis;
transition: all .2s;
white-space: nowrap;
}
/* Download Control */
.npmap-toolbar button.download {
background-image: url('images/font-awesome/download.png');
background-position: 7px;
background-size: 14px 14px;
}
.npmap-retina .npmap-toolbar button.share {
background-image: url('images/font-awesome/download@2x.png');
}
/* Edit Control */
.npmap .leaflet-control-edit button {
background-image: url('images/control/draw/spritesheet.png');
background-repeat: no-repeat;
}
.npmap .leaflet-retina .leaflet-control-edit button {
background-image: url('images/control/draw/spritesheet@2x.png');
background-size: 270px 30px;
}
.npmap .leaflet-control-edit .polygon {
background-position: -31px -2px;
}
.npmap .leaflet-control-edit .polyline {
background-position: -2px -2px;
}
.npmap .leaflet-control-edit .rectangle {
background-position: -62px -2px;
}
.npmap .leaflet-control-edit .circle {
background-position: -92px -2px;
}
.npmap .leaflet-control-edit .marker {
background-position: -122px -2px;
}
.npmap .leaflet-mouse-marker {
background-color: #fff;
cursor: crosshair;
}
.npmap .leaflet-draw-tooltip {
visibility: hidden;
}
.npmap .leaflet-draw-guide-dash {
font-size: 1%;
opacity: 0.6;
position: absolute;
width: 5px;
height: 5px;
}
.npmap .leaflet-edit-move {
cursor: move;
}
.npmap .leaflet-edit-resize {
cursor: pointer;
}
/* Fullscreen Control */
.npmap-toolbar button.fullscreen.enter {
background-image: url('images/font-awesome/arrows-alt.png');
background-position: 8px;
background-size: 14px 14px;
}
.npmap-retina .npmap-toolbar button.fullscreen.enter {
background-image: url('images/font-awesome/arrows-alt@2x.png');
}
.npmap-toolbar button.fullscreen.exit {
background-image: url('images/control/fullscreen/exit.png');
background-position: 8px;
background-size: 14px 14px;
}
.npmap-retina .npmap-toolbar button.fullscreen.exit {
background-image: url('images/control/fullscreen/exit@2x.png');
}
/* Geocoder Control */
.npmap .leaflet-control-geocoder {
font-size: 12px;
z-index: 8;
}
.npmap .leaflet-control-geocoder button {
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
border-radius: 1px;
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.16);
-moz-box-shadow: 0 0 5px rgba(0,0,0,.16);
box-shadow: 0 0 5px rgba(0,0,0,.16);
border: none;
height: 19px;
position: absolute;
right: 2px;
top: 2px;
vertical-align: text-top;
width: 13px;
}
.npmap .leaflet-control-geocoder input {
padding-right: 30px;
width: 200px;
}
.npmap .leaflet-control-geocoder ul.leaflet-control {
background-color: #fff;
border-left: 1px solid #cbcbcb;
border-right: 1px solid #cbcbcb;
display: none;
margin: 0;
margin-top: 0;
max-height: 300px;
overflow-x: hidden;
overflow-y: auto;
padding: 0;
position: absolute;
width: 198px;
z-index: -1;
}
.npmap .leaflet-control-geocoder ul li {
border-top: 1px solid #f2f1ef;
cursor: pointer;
list-style-type: none;
padding: 7px 10px;
}
.npmap .leaflet-control-geocoder ul li:first-child {
border-top: none;
}
.npmap .leaflet-control-geocoder ul li:hover {
background-color: #f1f1ef;
}
.npmap .leaflet-control-geocoder ul li.selected {
background-color: #ddd;
border-color: #ddd;
}
.npmap .leaflet-control-geocoder .search {
background-color: #cb9733;
background-image: url('images/control/geocoder/search.png');
background-repeat: no-repeat;
background-position: 5px;
background-size: 16px 16px;
}
.npmap .leaflet-retina .leaflet-control-geocoder .search {
background-image: url('images/control/geocoder/search@2x.png');
}
.npmap .leaflet-control-geocoder .working {
background-color: #000;
background-image: url('images/control/geocoder/spinner.gif');
background-repeat: no-repeat;
background-position: 4px;
background-size: 16px 16px;
cursor: wait;
}
.npmap .leaflet-retina .leaflet-control-geocoder .working {
background-image: url('images/control/geocoder/spinner@2x.gif');
}
/* Home Control */
.npmap .leaflet-control-home button {
background-image: url('images/font-awesome/home.png');
background-position: 5px 4px;
background-repeat: no-repeat;
background-size: 16px 16px;
}
.npmap .leaflet-retina .leaflet-control-home button {
background-image: url('images/font-awesome/home@2x.png');
}
/* Legend Control */
.npmap .leaflet-control-legend {
background-color: #fff;
background-color: rgba(255,255,255,.8);
padding: 10px;
}
.npmap .leaflet-control-legend h3 {
margin: 0 0 8px 0;
}
.npmap .leaflet-control-legend ul {
margin: 0;
padding-left: 0;
}
.npmap .leaflet-control-legend ul li {
list-style-type: none;
}
/* Locate Control */
.npmap .npmap-control-locate button {
background-image: url('images/font-awesome/location-arrow.png');
background-position: 4px;
background-repeat: no-repeat;
background-size: 16px 16px;
}
.npmap .leaflet-retina .npmap-control-locate button {
background-image: url('images/font-awesome/location-arrow@2x.png');
}
/*
.npmap .leaflet-touch .leaflet-control-locate button {
background-image: url(images/locate_touch.png);
}
*/
.npmap .npmap-control-locate button.requesting {
background-image: url('images/control/locate/spinner.gif');
background-position: 50% 50%;
}
.npmap .leaflet-retina .npmap-control-locate button.requesting {
background-image: url('images/control/locate/spinner@2x.gif');
}
/*
.npmap .leaflet-control-locate.active a {
background-position: -32px -2px;
}
.npmap .leaflet-touch .leaflet-control-locate {
box-shadow: none;
border: 2px solid rgba(0,0,0,0.2);
background-clip: padding-box;
}
*/
/* Measure Control */
.npmap-control-measure button.leaflet-bar-single {
background-image: url('images/control/measure/ruler.png');
background-position: 5px 4px;
background-repeat: no-repeat;
background-size: 16px 16px;
}
.leaflet-retina .npmap-control-measure button.leaflet-bar-single {
background-image: url('images/control/measure/ruler@2x.png');
}
.npmap-control-measure ul {
display: none;
left: 24px;
list-style: none;
margin: 0;
padding: 0;
position: absolute;
top: 0;
white-space: nowrap;
z-index: -1;
}
.npmap-control-measure ul li {
display: inline-block;
}
.npmap-control-measure ul li:first-child a {
border-left: none;
}
.npmap-control-measure ul li button {
background-color: #919187 ;
border: none ;
border-radius: 0 ;
color: #FFF ;
display: block ;
font: 11px/19px "Helvetica Neue", Arial, Helvetica, sans-serif;
line-height: 28px ;
text-align: center ;
text-decoration: none ;
padding-left: 10px ;
padding-right: 10px ;
height: 28px ;
width: auto ;
}
.npmap-control-measure ul li button:hover {
background-color: #a0a098;
}
.npmap-control-measure ul li button.pressed {
background-color: #74746a ;
}
.npmap-control-measure ul li:last-child button {
border-bottom-right-radius: 4px ;
border-top-right-radius: 4px ;
}
.npmap .leaflet-measure-tooltip {
background-color: rgba(255, 255, 255, 0.7);
box-shadow: 0 0 5px #bbb;
font: 11px/1.25 "Helvetica Neue", Arial, Helvetica, sans-serif;
height: auto ;
margin: 0;
padding: 2px;
white-space: nowrap;
width: auto ;
}
.npmap .leaflet-measure-tooltip-total {
font-weight: bold;
}
.npmap .leaflet-measure-tooltip-difference {
color: #777;
}
/* Overview Control */
.npmap .leaflet-control-overview {
-webkit-box-shadow: -1px 0 5px rgba(0,0,0,.28);
-moz-box-shadow: -1px 0 5px rgba(0,0,0,.28);
box-shadow: -1px 0 5px rgba(0,0,0,.28);
background-color: #fff;
border-left: solid #454545 3px;
border-top: solid #454545 3px;
transition: all .2s;
}
.npmap .leaflet-control-overview button {
background-color: transparent;
border: none;
bottom: 0;
cursor: pointer;
display: block;
height: 20px;
padding: 0;
position: absolute;
right: 0;
width: 20px;
z-index: 99999;
}
.npmap .leaflet-control-overview button span {
background-image: url('images/control/overview/toggle.png');
background-repeat: no-repeat;
background-size: 10px 10px;
bottom: 10px;
height: 10px;
position: absolute;
right: 10px;
transition: all .2s;
width: 10px;
}
.npmap .leaflet-control-overview button span.minimized {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
.npmap .leaflet-retina .leaflet-control-overview button span {
background-image: url('images/control/overview/toggle@2x.png');
}
/* Print Control */
.npmap-toolbar button.print {
background-image: url('images/font-awesome/print.png');
background-position: 7px;
background-size: 14px 14px;
}
.npmap-retina .npmap-toolbar button.print {
background-image: url('images/font-awesome/print@2x.png');
}
/* Scale Control */
.npmap .leaflet-control-scale {
cursor: -webkit-grab;
cursor: -moz-grab;
}
/* Share Control */
.npmap-toolbar button.share {
background-image: url('images/font-awesome/envelope.png');
background-position: 7px;
background-size: 14px 14px;
}
.npmap-retina .npmap-toolbar button.share {
background-image: url('images/font-awesome/envelope@2x.png');
}
/* Smallzoom Control */
.npmap .leaflet-control-zoom .in {
background-image: url('images/font-awesome/plus.png');
background-position: 5px 4px;
background-repeat: no-repeat;
background-size: 16px 16px;
}
.npmap .leaflet-retina .leaflet-control-zoom .in {
background-image: url('images/font-awesome/plus@2x.png');
}
.npmap .leaflet-control-zoom .out {
background-image: url('images/font-awesome/minus.png');
background-position: 5px 4px;
background-repeat: no-repeat;
background-size: 16px 16px;
}
.npmap .leaflet-retina .leaflet-control-zoom .out {
background-image: url('images/font-awesome/minus@2x.png');
}
/* Switcher Control */
.npmap-control-switcher {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
color: #6e6c5f;
font-size: 10px;
font-weight: bold;
min-width: 200px;
}
.npmap-control-switcher div:first-child {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
background-color: #fff;
background-image: -moz-linear-gradient(top, #e1e1e1 0%, #fdfdfd 100%);
background-image: -o-linear-gradient(top, #e1e1e1 0%, #fdfdfd 100%);
background-image: -webkit-linear-gradient(top, #e1e1e1 0%, #fdfdfd 100%);
background-image: linear-gradient(top, #e1e1e1 0%, #fdfdfd 100%);
border: solid 1px #bdbbb1;
cursor: pointer;
min-height: 29px;
position: relative;
width: 198px;
}
.npmap-control-switcher div:first-child div {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
border-right: solid 1px #908e7d;
margin-left: 25px;
padding: 7px 8px 7px 8px;
margin-right: 25px;
position: relative;
}
.npmap-control-switcher div:first-child span:first-child {
float: left;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 25px;
}
.npmap-control-switcher div:first-child span:last-child {
background-image: url('images/control/switcher/toggle.png');
background-position: 6px;
background-repeat: no-repeat;
height: 100%;
position: absolute;
right: 0;
top: 0;
width: 25px;
}
.leaflet-retina .npmap-control-switcher div:first-child span:last-child {
background-image: url('images/control/switcher/toggle@2x.png');
background-size: 10px 5px;
}
.npmap-control-switcher div:first-child span:last-child.open {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
background-position: 8px;
}
.npmap-control-switcher ul {
-webkit-box-shadow: 0 2px 15px #888;
-moz-box-shadow: 0 2px 15px #888;
-ms-box-shadow: 0 2px 15px #888;
-o-box-shadow: 0 2px 15px #888;
box-shadow: 0 2px 15px #888;
background-color: #fff;
border-left: 1px solid #bdbbb1;
border-right: 1px solid #bdbbb1;
left: -15px;
list-style-type: none;
margin: 1px 0 0 0;
max-height: 300px;
overflow-x: hidden;
overflow-y: auto;
padding-left: 0;
position: absolute;
width: 213px;
}
.npmap-control-switcher li {
border-bottom: solid 1px #f2f1ef;
cursor: pointer;
font-size: 12px;
padding: 14px 12px;
}
.npmap-control-switcher li.selected, .npmap-control-switcher li.selected:hover {
background-color: #d9d9d6;
}
.npmap-control-switcher li:hover {
background-color: #f1f1ef;
}
.npmap-control-switcher li:last-child {
border-bottom: none;
}
.npmap-control-switcher .aerial {
background-image: url('images/control/switcher/aerial.png');
height: 22px;
position: absolute;
width: 17px;
}
.npmap-control-switcher .aerial-small {
background-image: url('images/control/switcher/aerial-small.png');
height: 13px;
margin-left: 11px;
margin-top: 7px;
position: absolute;
width: 13px;
}
.npmap-control-switcher .generic {
background-image: url('images/control/switcher/eye.png');
height: 22px;
position: absolute;
width: 17px;
}
.npmap-control-switcher .generic-small {
background-image: url('images/control/switcher/eye-small.png');
height: 10px;
margin-top: 9px;
margin-left: 8px;
position: absolute;
width: 17px;
}
.npmap-control-switcher .nps {
background-image: url('images/control/switcher/nps.png');
height: 22px;
position: absolute;
width: 17px;
}
.npmap-control-switcher .nps-small {
background-image: url('images/control/switcher/nps-small.png');
height: 15px;
margin-left: 12px;
margin-top: 6px;
position: absolute;
width: 12px;
}
.npmap-control-switcher .street {
background-image: url('images/control/switcher/street.png');
height: 22px;
position: absolute;
width: 17px;
}
.npmap-control-switcher .street-small {
background-image: url('images/control/switcher/street-small.png');
height: 13px;
margin-left: 9px;
margin-top: 8px;
position: absolute;
width: 17px;
}
.npmap-control-switcher .topo {
background-image: url('images/control/switcher/topo.png');
height: 22px;
position: absolute;
width: 17px;
}
.npmap-control-switcher .topo-small {
background-image: url('images/control/switcher/topo-small.png');
height: 13px;
margin-left: 9px;
margin-top: 8px;
position: absolute;
width: 17px;
}
/* Notifications */
.npmap .humane, .npmap .humane-bootstrap {
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
position: absolute;
transition: all 0.4s ease-in-out;
z-index: 100000;
}
.npmap .humane, .npmap .humane-bootstrap {
-webkit-border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomleft: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
-webkit-transform: translateY(-100px);
-moz-transform: translateY(-100px);
-ms-transform: translateY(-100px);
-o-transform: translateY(-100px);
background-color: #fff;
border: 1px solid transparent;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
box-shadow: 0 1px 2px rgba(0,0,0,0.5);
display: table;
font-size: 14px;
left: 50%;
margin-left: -100px;
opacity: 0;
padding: 5px;
text-align: center;
top: 0;
transform: translateY(-100px);
width: 178px;
}
.npmap .humane p, .npmap .humane-bootstrap p, .npmap .humane ul, .npmap .humane-bootstrap ul {
margin: 0;
padding: 0;
}
.npmap .humane ul, .npmap .humane-bootstrap ul {
list-style: none;
}
.npmap .humane.humane-bootstrap-success, .npmap .humane-bootstrap.humane-bootstrap-success {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #468847;
}
.npmap .humane.humane-bootstrap-info, .npmap .humane-bootstrap.humane-bootstrap-info {
background-color: #d9edf7;
border-color: #bce8f1;
color: #3a87ad;
}
.npmap .humane.humane-bootstrap-warning, .npmap .humane-bootstrap.humane-bootstrap-warning {
background-color: #fcf8e3;
border-color: #fbeed5;
color: #c09853;
}
.npmap .humane.humane-bootstrap-danger, .npmap .humane-bootstrap.humane-bootstrap-danger {
background-color: #f2dede;
border-color: #eed3d7;
color: #b94a48;
}
.npmap .humane-animate, .npmap .humane-bootstrap.humane-bootstrap-animate {
opacity: 1;
-moz-transform: translateY(0);
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
-o-transform: translateY(0);
transform: translateY(0);
}
.npmap .humane-js-animate, .npmap .humane-bootstrap.humane-bootstrap-js-animate {
opacity: 1;
-moz-transform: translateY(0);
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
-o-transform: translateY(0);
transform: translateY(0);
}
.npmap .humane-js-animate:hover, .npmap .humane-bootstrap.humane-bootstrap-js-animate:hover {
opacity: 0.7;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
}
/* Modules */
#npmap-module_Directions .disclaimer {
display: none;
}
#npmap-module_Directions .actions {
margin: 20px 0 0 26px;
}
#npmap-module_Directions .actions button:first-child {
margin-right: 5px;
}
#npmap-module_Directions ul, #npmap-module_Directions ul li {
list-style-type: none;
}
#npmap-module_Directions ul {
padding-left: 0;
}
#npmap-module_Directions ul li {
height: 29px;
margin-bottom: 10px;
position: relative;
}
#npmap-module_Directions ul li.over {
border: 2px dashed #000;
}
#npmap-module_Directions ul li:last-child {
margin-bottom: 0;
}
#npmap-module_Directions ul li div {
left: 26px;
position: absolute;
right: 0;
top: 0;
}
#npmap-module_Directions ul li button {
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
background-position: 5px 4px;
background-repeat: no-repeat;
background-size: 16px 16px;
border: none;
display: inline-block;
height: 24px;
padding: 0;
position: absolute;
right: 2px;
top: 2px;
width: 25px;
}
#npmap-module_Directions ul li button.remove {
background-color: transparent;
color: #000;
}
#npmap-module_Directions ul li div button.search {
background-color: #c09030;
}
#npmap-module_Directions ul li div.remove {
right: 28px;
}
#npmap-module_Directions ul li label {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
background: #000;
color: #fff;
cursor: move;
display: block;
font-weight: bold;
line-height: 20px;
margin: 3px 0 0 0;
position: absolute;
text-align: center;
width: 20px;
}
#npmap-module_Directions ul li input {
width: 100%;
}
#npmap-module_Directions ul li input.search {
padding-right: 30px;
}