Skip to content

Commit

Permalink
Merge pull request #54 from neo-garaix/prepare-version
Browse files Browse the repository at this point in the history
Clean project
  • Loading branch information
neo-garaix authored Sep 30, 2024
2 parents f64fff8 + 235a903 commit 61bf2be
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 396 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ php installer.php
* Go to the administration of Lizmap with your browser to configure mapBuilder

To update modules, download a new package, and repeat these previous instructions.

### Inkmap dependency

Inkmap is a dependency created by [CampToCamp](https://github.com/camptocamp/inkmap) based on [OpenLayers](https://openlayers.org/).
It's used by lizmapBuilder to print in real time edited map to PDF.
Adding it to lizmapBuilder required to change the operation of the dependency.
In future releases, Inkmap will be added as a dependency in npm, but currently, it is directly put in `mapBuilder/www/js/dist`.
29 changes: 15 additions & 14 deletions mapBuilder/www/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ span.layerStore-folder {
}

#layerStoreHolder ul {
margin: 10px 0;
padding: 10px 15px;
margin: 4px 0;
padding: 2px 8px;
border-radius: 7px;
box-shadow: 0 0 5px 0.5px rgba(0,0,0,0.2);
box-shadow: 0 0 4px 0.3px rgba(0, 0, 0, 0.2);
list-style-type: none;
}

Expand Down Expand Up @@ -248,12 +248,12 @@ span.layerStore-folder {
.layerStoreTitle {
font-family: sans-serif;
font-weight: bold;
font-size: 16px
font-size: 14px
}

.layerStore-layer {
margin-bottom: 3px;
padding: 5px 5px;
padding: 3px 5px;
padding-left: 10px;
border-radius: 5px;
cursor: pointer;
Expand All @@ -275,8 +275,8 @@ ul .layerStore-layer:last-child {
/* CSS for selection */
.containerLayerSelected {
display: flex;
margin-bottom: 20px;
box-shadow: 0 0 5px 0.5px rgba(0,0,0,0.2);
margin-bottom: 10px;
box-shadow: 0 0 4px 0.4px rgba(0, 0, 0, 0.2);
border-radius: 8px;
user-select: none;
background-color:white;
Expand Down Expand Up @@ -327,7 +327,7 @@ ul .layerStore-layer:last-child {
}

.layerSelectedContent {
padding: 5px 10px;
padding: 2px 7px;
display: flex;
flex-direction: column;
justify-content: space-around;
Expand All @@ -346,7 +346,7 @@ ul .layerStore-layer:last-child {
}

.containerLayerSelected .upperLine .titleLayerSelected {
font-size: 17px;
font-size: 14px;
font-weight: bold;
cursor: default;
}
Expand All @@ -365,21 +365,22 @@ ul .layerStore-layer:last-child {
align-items: center;
width: 100%;
font-weight: bold;
color: #7a7a7a;
color: #6d6d6d;
cursor: default;
font-size: 14px;
}

.containerLayerSelected .deleteLayerButton {
background-color: transparent;
width: 85%;
height: 25px;
height: 22px;
display: flex;
justify-content: center;
align-items: center;
margin: 5px auto;
border: none;
border-radius: 4px;
box-shadow: 0 0 5px 0.5px rgba(0,0,0,0.4);
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
color: black;
transition: 0.2s;
}
Expand All @@ -391,8 +392,8 @@ ul .layerStore-layer:last-child {
}

.containerLayerSelected button:not(.containerLayerSelected .deleteLayerButton) {
width: 35px;
height: 35px;
width: 30px;
height: 30px;
border-radius: 30px;
background-color: transparent;
border: none;
Expand Down
14 changes: 7 additions & 7 deletions mapBuilder/www/js/components/LayerSelected.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export class LayerSelected extends HTMLElement {
if (this.#element.getLayer().getProperties().hasAttributeTable) {
//Check if the attribute table is visible or not to adjust the component
attributeTableShow = this.#element.isAttributeTableOpened() ? html`
<button class="dispayDataButton fas fa-list-ul active" @click="${(event) => this.actionDisplayDataButton(event, this.#element)}" disabled></button>` : html`
<button class="dispayDataButton fas fa-list-ul" @click="${(event) => this.actionDisplayDataButton(event, this.#element)}"></button>`
<button class="dispayDataButton fas fa-list-ul fa-sm active" @click="${(event) => this.actionDisplayDataButton(event, this.#element)}" disabled></button>` : html`
<button class="dispayDataButton fas fa-list-ul fa-sm" @click="${(event) => this.actionDisplayDataButton(event, this.#element)}"></button>`
}

//Check if the info panel is visible or not to adjust the component
Expand Down Expand Up @@ -89,17 +89,17 @@ export class LayerSelected extends HTMLElement {
<span class="titleLayerSelected">${this.#element.getLayer().getProperties().title}</span>
<div class="layerButtonsDiv">
${attributeTableShow}
<button class="zoomToExtentButton fas fa-search-plus"
<button class="zoomToExtentButton fas fa-search-plus fa-sm"
@click="${(event) => this.actionZoomToExtentButton()}"></button>
<button class="toggleVisibilityButton fas ${layerShow}"
<button class="toggleVisibilityButton fas fa-sm ${layerShow}"
@click="${(event) => this.actionToggleVisibilityButton()}"></button>
<button class="toggleInfos fas ${infoShow}"
<button class="toggleInfos fas fa-sm ${infoShow}"
@click="${(event) => this.actionToggleInfos()}"></button>
</div>
</div>
${info}
<button class="deleteLayerButton" @click="${(event) => this.actionDeleteLayerButton(event)}">
<i class="fas fa-trash"></i>
<i class="fas fa-trash fa-sm"></i>
</button>
</div>
`;
Expand Down Expand Up @@ -412,4 +412,4 @@ export class LayerSelected extends HTMLElement {
}
}

customElements.define('lizmap-layer-selected', LayerSelected);
customElements.define('lizmap-layer-selected', LayerSelected);
3 changes: 0 additions & 3 deletions mapBuilder/www/js/dist/jspdf.js

This file was deleted.

Loading

0 comments on commit 61bf2be

Please sign in to comment.