Skip to content

Commit

Permalink
Merge pull request #332 from IGNF/fix/retour-pr-455
Browse files Browse the repository at this point in the history
fix(ContextMenu) : retour pr entrée carto
  • Loading branch information
IGNFhc authored Jan 23, 2025
2 parents 7ebe876 + 0624061 commit 66b42d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ <h2>Ajout de tous les widgets</h2>
// 3. Ajout du context menu
var itemsOpt = [ {
text : "Imprimer la carte",
classname : "ol-context-menu-custom fr-text--md",
callback : function() {alert("fonction à ajouter IMPRESSION!!")},
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@ padding: 0 16px;
}
.ol-context-menu-custom {
color : var(--text-action-high-grey) !important;
}

.ol-ctx-menu-container {
background: var(--background-default-grey);
}
1 change: 0 additions & 1 deletion src/packages/CSS/Controls/ContextMenu/GPFcontextMenu.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ button[id^="GPshowPointInfoPicto-"] {
.ol-ctx-menu-container {
position: absolute;
padding: 8px;
background: #fff;
color: #222;
font-size: 13px;
border-radius: 5px;
Expand Down
4 changes: 4 additions & 0 deletions src/packages/CSS/Controls/ContextMenu/GPFcontextMenuStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ button[id^=GPcollapsePointInfo_ID_] {
z-index: 2;
top: 4px;
left: 42px;
}

.ol-ctx-menu-container {
background: #fff;
}
3 changes: 0 additions & 3 deletions src/packages/Controls/Route/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,6 @@ var Route = class Route extends Control {
// on masque les points intermediaires
document.getElementById("GPlocationPoint_" + id).className = "GPflexInput GPelementHidden gpf-flex gpf-hidden ";
}
document.getElementById("GPlocationOriginPointer_" + id).checked = false;
document.getElementById("GPlocationOrigin_" + id).className = "GPelementVisible gpf-visible";
document.getElementById("GPlocationOriginCoords_" + id).className = "GPelementHidden gpf-hidden";
}
}
this._currentRouteInformations = data.results;
Expand Down

0 comments on commit 66b42d2

Please sign in to comment.