Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature control getfeatureinfo #4

Merged
merged 13 commits into from
May 23, 2017
249 changes: 155 additions & 94 deletions lib/external/geoportail/plugins-ol3/GpPluginOl3-src.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* copyright IGN
* @author IGN
* @version 0.12.0-dev
* @date 2017-04-27
* @date 2017-05-22
*
*/
/* MOUSE POSITION */
Expand Down Expand Up @@ -720,6 +720,36 @@ input[type="checkbox"]:checked + .GPshowMoreOptions {
transform: rotateX(180deg);
}

/* GET FEATURE INFO */

label[id^=GPgetFeatureInfoPicto] {
display: inline-block;
}

div[id^=GPgetFeatureInfo-] + label {
display: block;
}

span[id^=GPgetFeatureInfoActivate],
span[id^=GPgetFeatureInfoDeactivate] {
position: absolute;
display: block;
transition: border-radius 0.5s ease-out 0s, opacity 0.5s ease-out 0s;
}

span[id^=GPgetFeatureInfoActivate] {
background-position: 0 0;
opacity: 1;
}

span[id^=GPgetFeatureInfoDeactivate] {
opacity: 0;
}

div[id^=GPgetFeatureInfo-] input[type="checkbox"]:not(:checked) + label[id^=GPgetFeatureInfoPicto] span[id^=GPgetFeatureInfoDeactivate] {
opacity: 1;
}

/* ISOCHRON */

div[id^=GPisochron-] {
Expand Down Expand Up @@ -2571,7 +2601,8 @@ input.GPinputSubmit {
/* Feature info popup */

.gp-feature-info-div {
bottom: 17px;
bottom: 17px ;
position: relative;
max-width: calc(100vw - 80px);
padding: 10px;
border-radius: 10px;
Expand Down Expand Up @@ -3242,6 +3273,36 @@ display: none !important;
}
*/

/* GET FEATURE INFO */

div[id^=GPgetFeatureInfo-] {
top: 260px;
left: 10px;
}

span[id^=GPgetFeatureInfoActivate],
span[id^=GPgetFeatureInfoDeactivate] {
width: 26px;
height: 26px;
background-image: url("img/GPactivateGfi.png");
}

span[id^=GPgetFeatureInfoDeactivate] {
background-position: -26px 0;
}

div[id^=GPgetFeatureInfo-] input[type="checkbox"]:not(:checked) + label[id^=GPgetFeatureInfoPicto] span[id^=GPgetFeatureInfoActivate] {
opacity: 0.7;
}

div[id^=GPgetFeatureInfo-] input[type="checkbox"]:not(:checked) + label[id^=GPgetFeatureInfoPicto] span[id^=GPgetFeatureInfoDeactivate] {
background-color: rgba(0,60,136,0.3);
}

div[id^=GPgetFeatureInfo-] input[type="checkbox"]:not(:checked) + label[id^=GPgetFeatureInfoPicto]:hover span[id^=GPgetFeatureInfoDeactivate] {
background-color: rgba(0,60,136,0.4);
}

/* ISOCHRON */

div[id^=GPisochron-] {
Expand Down Expand Up @@ -3296,6 +3357,98 @@ div[id^=GPisochronReset] {
background-image: url("img/GPisochronOptions.png");
}

/* LAYER SWITCHER OL3 */

div[id^=GPlayerSwitcher-] {
top: 8px;
right: 8px;
}

/* Showing/hiding layers list */

label[id^=GPshowLayersListPicto] {
width: 38px;
height: 38px;
}

span[id^=GPshowLayersListOpen],
span[id^=GPshowLayersListClose] {
top: 3px;
left: 3px;
width: 32px;
height: 32px;
background-image: url("img/GPshowLayersList.png");
}

span[id^=GPshowLayersListClose] {
background-position: -32px 0;
}


div[id^=GPlayerSwitcher-] input[type="checkbox"]:checked + div + label[id^=GPshowLayersListPicto] span[id^=GPshowLayersListOpen] {
opacity: 0.7;
}

div[id^=GPlayerSwitcher-] input[type="checkbox"]:checked + div + label[id^=GPshowLayersListPicto] span[id^=GPshowLayersListClose] {
background-color: rgba(0,60,136,0.3);
}

div[id^=GPlayerSwitcher-] input[type="checkbox"]:checked + div + label[id^=GPshowLayersListPicto]:hover span[id^=GPshowLayersListClose] {
background-color: rgba(0,60,136,0.4);
}

/* Layers list */

.GPlayerVisibility,
.GPshowLayerAdvancedTools,
.GPlayerInfo,
.GPlayerInfoOpened,
.GPlayerRemove {
background-image: url("img/GPlayerTools.png");
}

/* Opacity slider : Chrome, Safari, Opera */

.GPlayerOpacity input[type="range"]::-webkit-slider-runnable-track {
background: url("img/GPopacitySlider.png");
}

/* Opacity slider : Firefox */

.GPlayerOpacity input[type="range"]::-moz-range-track {
background: url("img/GPopacitySlider.png");
}

/* Opacity slider : IE */

.GPlayerOpacity input[type="range"]::-ms-track {
background: url("img/GPopacitySlider.png");
}

/* Layer info panel */

div[id^=GPlayerInfoPanel] {
right: 190px;
}

div[id^=GPlayerInfoTitle] {
color: #366291;
border-bottom: 1px solid #366291;
}

div[id^=GPlayerInfoQuicklook] {
background-image: url("img/GPlayerInfo.png");
}

div[id^=GPlayerInfoClose] {
background-image: url("img/GPlayerInfoClose.png");
}

.GPlayerInfoLink,
.GPlayerInfoPopup {
background-image: url("img/GPlayerInfo.png");
}

/* Layer Import */

div[id^="GPimport-"] {
Expand Down Expand Up @@ -3527,98 +3680,6 @@ div[id^="GPimportGetCapResults-"] {
background-color: #CEDBEF
}

/* LAYER SWITCHER OL3 */

div[id^=GPlayerSwitcher-] {
top: 8px;
right: 8px;
}

/* Showing/hiding layers list */

label[id^=GPshowLayersListPicto] {
width: 38px;
height: 38px;
}

span[id^=GPshowLayersListOpen],
span[id^=GPshowLayersListClose] {
top: 3px;
left: 3px;
width: 32px;
height: 32px;
background-image: url("img/GPshowLayersList.png");
}

span[id^=GPshowLayersListClose] {
background-position: -32px 0;
}


div[id^=GPlayerSwitcher-] input[type="checkbox"]:checked + div + label[id^=GPshowLayersListPicto] span[id^=GPshowLayersListOpen] {
opacity: 0.7;
}

div[id^=GPlayerSwitcher-] input[type="checkbox"]:checked + div + label[id^=GPshowLayersListPicto] span[id^=GPshowLayersListClose] {
background-color: rgba(0,60,136,0.3);
}

div[id^=GPlayerSwitcher-] input[type="checkbox"]:checked + div + label[id^=GPshowLayersListPicto]:hover span[id^=GPshowLayersListClose] {
background-color: rgba(0,60,136,0.4);
}

/* Layers list */

.GPlayerVisibility,
.GPshowLayerAdvancedTools,
.GPlayerInfo,
.GPlayerInfoOpened,
.GPlayerRemove {
background-image: url("img/GPlayerTools.png");
}

/* Opacity slider : Chrome, Safari, Opera */

.GPlayerOpacity input[type="range"]::-webkit-slider-runnable-track {
background: url("img/GPopacitySlider.png");
}

/* Opacity slider : Firefox */

.GPlayerOpacity input[type="range"]::-moz-range-track {
background: url("img/GPopacitySlider.png");
}

/* Opacity slider : IE */

.GPlayerOpacity input[type="range"]::-ms-track {
background: url("img/GPopacitySlider.png");
}

/* Layer info panel */

div[id^=GPlayerInfoPanel] {
right: 190px;
}

div[id^=GPlayerInfoTitle] {
color: #366291;
border-bottom: 1px solid #366291;
}

div[id^=GPlayerInfoQuicklook] {
background-image: url("img/GPlayerInfo.png");
}

div[id^=GPlayerInfoClose] {
background-image: url("img/GPlayerInfoClose.png");
}

.GPlayerInfoLink,
.GPlayerInfoPopup {
background-image: url("img/GPlayerInfo.png");
}

/* Location */

.GPlocationOriginPointerImg,
Expand Down
Loading