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

Review du code lié à itowns #274

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@mapbox/mapbox-gl-style-spec": "13.11.0",
"eventbusjs": "0.2.0",
"geoportal-access-lib": "2.1.6",
"itowns": "2.19.0",
"itowns": "2.23.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pour vérifier que tu as bien la bonne version de THREE.

tu peux ajouter dans ton code

import { REVISION } from 'three';
import { THREE  } from 'itowns';
if (REVISION !== THREE.REVISION) {
   throw new Error(`THREE dependencies REVISION isn't ${THREE.REVISION}`)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK merci je vais essayer.

"leaflet": "1.5.1",
"leaflet-draw": "1.0.4",
"loglevel": "^1.6.7",
Expand Down
180 changes: 180 additions & 0 deletions src/Common-review/CSS/GPboostRelief.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
/* BOOST RELIEF */

div[id^=GPboostRelief-] {
font-size: 11px;
width: 150px;
}

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

div[id^=GPBoostReliefListContainer-] {
position: relative;
width: 100%;
height: 28px;
padding-left: 8px;
line-height: 28px;
}

.GPlayerRelief,
.GPlayerReliefValue {
position: absolute;
top: 0;
}

.GPlayerRelief {
width: calc(100% - 60px);
height: 28px;
padding-left: 8px;
}

.GPlayerReliefValue {
width: 32px;
left: calc(100% - 40px);
line-height: 28px;
font-size: 10px;
font-style: italic;
cursor: default;
}

/* Showing/hiding boost relief panel */

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

input[id^=GPshowBoostRelief-] + label {
display: block;
}

input[id^=GPshowBoostRelief-]:checked + label {
display: none;
}

input[id^=GPshowBoostRelief-] + label + div {
display: none;
}

input[id^=GPshowBoostRelief-]:checked + label + div {
display: block;
}

/* Showing layer advanced tools */

div[id^=GPboostRelief-] input[type="checkbox"]:checked + label + .GPlayerAdvancedToolsRelief {
max-height: 28px;
opacity: 1;
}

.GPlayerAdvancedToolsRelief {
display: block;
position: relative;
width: 100%;
border-bottom : 1px dotted #CCC;
background-color : #FFF;
}

.GPlayerReliefLayerId {
position: relative;
width: 100px;
height: 28px;
padding-left: 8px;
line-height: 28px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

/* Relief slider : general */

.GPlayerRelief input {
-webkit-appearance: none;
-moz-appearance: none;
background: none;
display: block;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
cursor: pointer;
}

.GPlayerRelief input[type="range"]:focus {
box-shadow: none;
outline: none;
}

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

.GPlayerRelief input[type="range"]::-webkit-slider-runnable-track {
-webkit-appearance: none;
height: 3px;
}

.GPlayerRelief input[type="range"]::-webkit-slider-thumb:before {
position: absolute;
top: 0;
right: 50%;
left: -200px;
height: 3px;
pointer-events: none;
}

.GPlayerRelief input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 9px;
height: 17px;
-webkit-appearance: none;
border: 2px solid #FFF;
background-color: #505050;
position: relative;
top: -7px;
}

/* Relief slider : Firefox */

.GPlayerRelief input[type="range"]::-moz-range-track {
width: 80px;
height: 3px;
}

.GPlayerRelief input[type="range"]::-moz-range-thumb {
width: 5px;
height: 13px;
border: 2px solid #FFF;
border-radius: 0;
box-shadow: 0;
background-color: #505050;
position: relative;
}

/* Relief slider : IE */

.GPlayerRelief input[type="range"]::-ms-track {
border: 0;
border-color: transparent;
border-radius: 0;
border-width: 0;
color: transparent;
height: 3px;
width: 80px;
}

.GPlayerRelief input[type="range"]::-ms-fill-lower,
.GPlayerRelief input[type="range"]::-ms-fill-upper {
background: transparent;
border-radius: 0;
}

.GPlayerRelief input[type="range"]::-ms-thumb {
width: 5px;
height: 13px;
border: 2px solid #FFF;
background-color: #505050;
}

.GPlayerRelief input[type="range"]::-ms-tooltip {
display: none;
}
61 changes: 61 additions & 0 deletions src/Common-review/CSS/GPdrawing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* MOUSE POSITION */

/* Showing/hiding drawing panel */

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

input[id^=GPshowDrawing-] + label {
display: block;
}

input[id^=GPshowDrawing-]:checked + label {
display: none;
}

input[id^=GPshowDrawing-] + label + div {
display: none;
}

input[id^=GPshowDrawing-]:checked + label + div {
display: block;
}

/* General panels */

div[id^=GPdrawingPanel-] {
width: 240px;
overflow: hidden;
}

/* Basic infos */

div[id^=GPdrawingBasicPanel-] {
padding: 10px 15px;
}

.GPdrawingLabel,
.GPdrawingCoords {
display: inline-block;
line-height: 20px;
}

.GPdrawingLabel {
width: 80px;
font-weight: bold;
}

.GPdrawingCoords {
width: 110px;
}

/* markers selector */
.marker-input-radio {
display : none ;
}

input.marker-input-radio:checked + label {
border: 1px solid red;
}

Loading