Skip to content

Commit

Permalink
Merge pull request #59 from sigcorporativo-ja/develop
Browse files Browse the repository at this point in the history
v3.1.0
  • Loading branch information
fbma authored Aug 9, 2022
2 parents e8856c9 + d37fca9 commit 45a988c
Show file tree
Hide file tree
Showing 28 changed files with 2,400 additions and 1,545 deletions.
4 changes: 2 additions & 2 deletions dist/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"name": "stylemanager",
"description": "Gestión del estilo de la simbología de las capas vectoriales del mapa",
"text": "Plugin de Mapea para la gestión de la simbología de las capas vectoriales del mapa.",
"version": "2.0.5",
"date": "Marzo, 2021",
"version": "3.0.0",
"date": "Junio, 2020",
"author": "",
"org": "Consejería de Hacienda, Industria y Energía. Junta de Andalucía",
"tags": "mapea,plugin",
Expand Down
2 changes: 1 addition & 1 deletion dist/stylemanager-2.0.5.ol.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/stylemanager-2.0.5.ol.min.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/stylemanager-3.0.0.ol.min.css

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions dist/stylemanager-3.0.0.ol.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/stylemanager-3.0.0.ol.min.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/stylemanager-3.1.0.ol.min.css

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions dist/stylemanager-3.1.0.ol.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "StyleManager",
"version": "2.0.5",
"version": "3.1.0",
"description": "",
"keywords": [
"map",
Expand Down
4 changes: 2 additions & 2 deletions src/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"name": "stylemanager",
"description": "Gestión del estilo de la simbología de las capas vectoriales del mapa",
"text": "Plugin de Mapea para la gestión de la simbología de las capas vectoriales del mapa.",
"version": "2.0.5",
"date": "Marzo, 2021",
"version": "3.0.0",
"date": "Junio, 2020",
"author": "",
"org": "Consejería de Hacienda, Industria y Energía. Junta de Andalucía",
"tags": "mapea,plugin",
Expand Down
39 changes: 33 additions & 6 deletions src/facade/assets/css/stylemanager.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,21 +251,29 @@ input[type="checkbox"].m-input+label.check-inactive:before {
}

.m-stylemanager-container-select[open-select] .m-stylemanager-buttons-wrap #m-stylemanager-select {
margin-left: -35%;
/* margin-left: -35%; */
}

.m-stylemanager-container-select .m-stylemanager-buttons-wrap #m-stylemanager-select {
margin-left: -10%;
/* margin-left: -10%; */
}

.m-stylemanager-simple-section .subtitle {
color: #e5008a;
font-size: 14px;
width: 100%;
border-bottom: 0;
height: 30px;
line-height: 2.2;
height: 40px;
line-height: 2.7;
justify-content: center;
font-weight: bold;
}

.m-stylemanager-simple-section .subtitle>span {
position: relative;
top: 1px;
font-size: 12px;
margin-left: 5px;
}

.m-stylemanager-control li div {
Expand Down Expand Up @@ -385,6 +393,13 @@ input[type="checkbox"].m-input+label.check-inactive:before {
margin-bottom: 5px;
}

.style-col-0>span,
.style-col-1>span,
.style-col-2>span {
position: relative;
top: 3px;
}

.style-col-0 {
float: left;
width: 100%;
Expand Down Expand Up @@ -1038,6 +1053,7 @@ select:disabled {
grid-template-columns: auto auto auto auto auto;
overflow-x: hidden;
}

.style-grid-item {
background: #f4f4f4;
border-radius: 3px;
Expand All @@ -1053,21 +1069,32 @@ select:disabled {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}

.style-grid-item:hover {
background: #e3e3e3;
line-height: 28px;
}

.style-grid-item.selected {
border: 1px solid #e5008a;
line-height: 28px;
}
.style-grid-container.active{

.style-grid-container.active {
display: grid;
}

#select-icon{
#select-icon {
display: none;
width: 29px;
height: 29px;
padding: 0;
}

.content-row-hidden {
display: none;
}

.content-row-show {
display: block;
}
Binary file removed src/facade/assets/fonts/sigc.eot
Binary file not shown.
21 changes: 0 additions & 21 deletions src/facade/assets/fonts/sigc.svg

This file was deleted.

Binary file removed src/facade/assets/fonts/sigc.ttf
Binary file not shown.
Binary file removed src/facade/assets/fonts/sigc.woff
Binary file not shown.
4 changes: 2 additions & 2 deletions src/facade/js/binding/categorybinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class CategoryBinding extends Binding {
});

let otherCategory = categoriesStyle == null ? null : categoriesStyle["other"];
this.styleCategories_["other"] = new SimpleCategoryBinding(stylesimple, this.htmlTemplate_, "stylesimple", otherCategory, this.layer_, this);
this.styleCategories_["other"] = new SimpleCategoryBinding(simpleoptions, this.htmlTemplate_, "stylesimple", otherCategory, this.layer_, this);
this.styleCategories_["other"].compilePromise_.then(() => {
this.styleCategories_["other"].refreshLegend("other", true);
});
Expand Down Expand Up @@ -595,4 +595,4 @@ export class CategoryBinding extends Binding {
static get MAXNUMBER_CATEGORIES() {
return 30;
}
}
}
2 changes: 2 additions & 0 deletions src/facade/js/binding/clusterbinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class ClusterBinding extends Binding {
this.querySelectorAllForEach("[data-style-options]", element => {
let prop = element.dataset["styleOptions"];
let value = element.value;

if (element.type === "checkbox") {
value = element.checked;
}
Expand Down Expand Up @@ -225,6 +226,7 @@ export class ClusterBinding extends Binding {
ranges.forEach((element, index) => {
options["pages"].push(element);
});

return options;
}
}
Expand Down
18 changes: 10 additions & 8 deletions src/facade/js/binding/heatmapbinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import {
}
from './binding';

import * as htmlgradient from '../../../templates/gradientheatmap'
import * as chroma from 'chroma-js';

export class HeatmapBinding extends Binding {
constructor(html, htmlParent, styleType, styleParams, layer) {
super(html, htmlParent, styleType, styleParams, layer);
Expand Down Expand Up @@ -49,18 +52,17 @@ export class HeatmapBinding extends Binding {
addGradientListener() {
let parent = this.querySelector("[data-parent='gradient']");
this.querySelector("[data-add]").addEventListener('click', () => {
this.compileTemplate("gradientheatmap.html", {}).then((html) => {
this.compileTemplate(htmlgradient, {}).then((htmlgradient) => {
if (this.numberAddedColors_ < HeatmapBinding.MAX_NUMBER_COLORS) {
parent.appendChild(html);
this.setRandomColor(html);
html.querySelector('.m-close').addEventListener('click', () => {
let rootElement = html.parentElement;
rootElement.removeChild(html);
parent.appendChild(htmlgradient);
this.setRandomColor(htmlgradient);
htmlgradient.querySelector('.m-close').addEventListener('click', () => {
let rootElement = htmlgradient.parentElement;
rootElement.removeChild(htmlgradient);
this.numberAddedColors_--;
});
this.numberAddedColors_++;
}
else {
} else {
M.dialog.info("Ha llegado al número máximo de colores permitidos", "Información");
}
});
Expand Down
Loading

0 comments on commit 45a988c

Please sign in to comment.