mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
-Adds ability to resize OpenStreetCam and Bing Streetside layers -Also slightly increases the width of the resize handles -Also limits max resize so it won't go larger than the map
345 lines
6.4 KiB
CSS
345 lines
6.4 KiB
CSS
/* photo viewer div */
|
|
#photoviewer {
|
|
position: absolute;
|
|
bottom: 30px;
|
|
width: 330px;
|
|
height: 250px;
|
|
padding: 5px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
@media screen and (min-width: 1600px) {
|
|
#photoviewer {
|
|
width: 490px;
|
|
height: 370px;
|
|
}
|
|
}
|
|
|
|
#photoviewer button.thumb-hide {
|
|
border-radius: 0;
|
|
padding: 5px;
|
|
position: absolute;
|
|
right: 5px;
|
|
top: 5px;
|
|
z-index: 50;
|
|
}
|
|
|
|
#photoviewer button.resize-handle-xy {
|
|
border-radius: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 49;
|
|
cursor: nesw-resize;
|
|
height: 25px;
|
|
width: 25px;
|
|
}
|
|
|
|
#photoviewer button.resize-handle-x {
|
|
border-radius: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 48;
|
|
cursor: ew-resize;
|
|
height: auto;
|
|
width: 6px;
|
|
}
|
|
|
|
#photoviewer button.resize-handle-y {
|
|
border-radius: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 48;
|
|
cursor: ns-resize;
|
|
height: 6px;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.photo-wrapper,
|
|
.photo-wrapper img {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.photo-wrapper .photo-attribution {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
font-size: 10px;
|
|
text-align: right;
|
|
line-height: 1.1em;
|
|
padding: 4px 2px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.photo-attribution a,
|
|
.photo-attribution a:visited,
|
|
.photo-attribution span {
|
|
padding: 4px 2px;
|
|
color: #fff;
|
|
}
|
|
|
|
/* markers and sequences */
|
|
.viewfield-group {
|
|
pointer-events: visible;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.viewfield-group.selected * {
|
|
fill: #ffee00 !important;
|
|
}
|
|
.viewfield-group.hovered * {
|
|
fill: #eebb00 !important;
|
|
}
|
|
|
|
.viewfield-group circle {
|
|
stroke: #555;
|
|
stroke-width: 1;
|
|
stroke-opacity: 0.4;
|
|
fill-opacity: 0.4;
|
|
}
|
|
.viewfield-group.highlighted circle {
|
|
stroke: #222;
|
|
stroke-opacity: 0.9;
|
|
fill-opacity: 0.9;
|
|
}
|
|
.viewfield-group.highlighted.hovered circle {
|
|
stroke: #222;
|
|
stroke-width: 2;
|
|
stroke-opacity: 0.9;
|
|
fill-opacity: 0.9;
|
|
}
|
|
.viewfield-group.highlighted.selected circle {
|
|
stroke: #222;
|
|
stroke-width: 2;
|
|
stroke-opacity: 1;
|
|
fill-opacity: 1;
|
|
}
|
|
|
|
.viewfield-group .viewfield {
|
|
stroke-width: 0;
|
|
stroke: #222;
|
|
fill-opacity: 0.4;
|
|
}
|
|
.viewfield-group.highlighted .viewfield {
|
|
stroke-width: 1;
|
|
fill-opacity: 0.8;
|
|
}
|
|
.viewfield-group.highlighted.hovered .viewfield {
|
|
stroke-width: 1;
|
|
fill-opacity: 0.8;
|
|
}
|
|
.viewfield-group.highlighted.selected .viewfield {
|
|
stroke-width: 1;
|
|
fill-opacity: 0.9;
|
|
}
|
|
|
|
.viewfield-group.selected .viewfield-scale {
|
|
transform: scale(2,2);
|
|
}
|
|
|
|
.sequence {
|
|
fill: none;
|
|
stroke-width: 2;
|
|
stroke-opacity: 0.4;
|
|
}
|
|
.sequence.highlighted,
|
|
.sequence.selected {
|
|
stroke-width: 4;
|
|
stroke-opacity: 1;
|
|
}
|
|
|
|
|
|
/* Streetside Image Layer */
|
|
.layer-streetside-images {
|
|
pointer-events: none;
|
|
}
|
|
.layer-streetside-images .viewfield-group * {
|
|
fill: #0fffc4;
|
|
}
|
|
.layer-streetside-images .sequence {
|
|
stroke: #0fffc4;
|
|
stroke-opacity: 0.85; /* bump opacity - only one per road */
|
|
}
|
|
|
|
|
|
/* Mapillary Image Layer */
|
|
.layer-mapillary-images {
|
|
pointer-events: none;
|
|
}
|
|
.layer-mapillary-images .viewfield-group * {
|
|
fill: #55ff22;
|
|
}
|
|
.layer-mapillary-images .sequence {
|
|
stroke: #55ff22;
|
|
}
|
|
|
|
|
|
/* Mapillary Sign Layer */
|
|
.layer-mapillary-signs {
|
|
pointer-events: none;
|
|
}
|
|
.layer-mapillary-signs .icon-sign {
|
|
outline: 2px solid transparent;
|
|
pointer-events: visible;
|
|
cursor: pointer;
|
|
}
|
|
.layer-mapillary-signs .icon-sign:hover {
|
|
outline: 5px solid #eebb00;
|
|
background-color: #eebb00;
|
|
}
|
|
.layer-mapillary-signs .icon-sign.selected {
|
|
outline: 5px solid #ffee00;
|
|
background-color: #ffee00;
|
|
}
|
|
|
|
|
|
/* OpenStreetCam Image Layer */
|
|
.layer-openstreetcam-images {
|
|
pointer-events: none;
|
|
}
|
|
.layer-openstreetcam-images .viewfield-group * {
|
|
fill: #20c4ff;
|
|
}
|
|
.layer-openstreetcam-images .sequence {
|
|
stroke: #20c4ff;
|
|
}
|
|
|
|
|
|
/* Streetside Viewer (pannellum) */
|
|
.ms-wrapper .photo-attribution .image-link {
|
|
display: block;
|
|
}
|
|
.ms-wrapper .photo-attribution .attribution-row {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 5px;
|
|
}
|
|
.ms-wrapper .photo-attribution .image-view-link {
|
|
text-align: left;
|
|
margin: 0 5px;
|
|
}
|
|
.ms-wrapper .photo-attribution .image-report-link {
|
|
text-align: right;
|
|
}
|
|
|
|
.ms-wrapper .photo-attribution a:active,
|
|
.ms-wrapper .photo-attribution a:hover {
|
|
color: #0fffc4;
|
|
}
|
|
|
|
.ms-wrapper .pnlm-compass.pnlm-control {
|
|
width: 26px;
|
|
height: 26px;
|
|
left: 4px;
|
|
top: 60px;
|
|
background-size: contain;
|
|
background-repeat: no-repeat no-repeat;
|
|
}
|
|
|
|
label.streetside-hires {
|
|
cursor: pointer;
|
|
}
|
|
.streetside-hires span {
|
|
margin-top: 2px;
|
|
}
|
|
.streetside-hires input[type="checkbox"] {
|
|
float: left;
|
|
width: 12px;
|
|
height: 12px;
|
|
margin: 0 5px;
|
|
}
|
|
|
|
|
|
/* Mapillary viewer */
|
|
#mly .domRenderer .TagSymbol {
|
|
font-size: 10px;
|
|
background-color: rgba(0,0,0,0.4);
|
|
padding: 0 4px;
|
|
border-radius: 4px;
|
|
top: -25px;
|
|
}
|
|
#mly .domRenderer .Attribution {
|
|
/* we will roll our own to avoid async update issues like #4526 */
|
|
display: none;
|
|
}
|
|
|
|
.mly-wrapper .photo-attribution a:active,
|
|
.mly-wrapper .photo-attribution a:hover {
|
|
color: #35af6d;
|
|
}
|
|
|
|
.mly-wrapper .mapillary-js-dom {
|
|
z-index: 9;
|
|
}
|
|
|
|
|
|
/* OpenStreetCam viewer */
|
|
.osc-wrapper {
|
|
position: relative;
|
|
background-color: #000;
|
|
background-image: url(img/loader-black.gif);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.osc-wrapper .photo-attribution a:active,
|
|
.osc-wrapper .photo-attribution a:hover {
|
|
color: #20c4ff;
|
|
}
|
|
|
|
.osc-image-wrap {
|
|
width: 100%;
|
|
height: 100%;
|
|
transform-origin:0 0;
|
|
-ms-transform-origin:0 0;
|
|
-webkit-transform-origin:0 0;
|
|
-moz-transform-origin:0 0;
|
|
-o-transform-origin:0 0;
|
|
}
|
|
|
|
|
|
/* photo-controls (step forward, back, rotate) */
|
|
.photo-controls-wrap {
|
|
text-align: center;
|
|
position: absolute;
|
|
top: 10px;
|
|
width: 100%;
|
|
z-index: 10;
|
|
}
|
|
|
|
.photo-controls {
|
|
display: inline-block;
|
|
z-index: 10;
|
|
}
|
|
|
|
.photo-controls button,
|
|
.photo-controls button:focus {
|
|
height: 18px;
|
|
width: 18px;
|
|
background: rgba(0,0,0,0.65);
|
|
color: #eee;
|
|
border-radius: 0;
|
|
}
|
|
.photo-controls button:first-of-type {
|
|
border-radius: 3px 0 0 3px;
|
|
}
|
|
.photo-controls button:last-of-type {
|
|
border-radius: 0 3px 3px 0;
|
|
}
|
|
.photo-controls button:hover,
|
|
.photo-controls button:active {
|
|
background: rgba(0,0,0,0.85);
|
|
color: #fff;
|
|
}
|
|
|