Skip to content

Commit

Permalink
Actualización plugin stylemanager
Browse files Browse the repository at this point in the history
  • Loading branch information
carmenmarquez committed Dec 29, 2021
1 parent 06050e1 commit 8ffa4de
Show file tree
Hide file tree
Showing 24 changed files with 865 additions and 745 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
59 changes: 0 additions & 59 deletions dist/stylemanager-2.0.5.ol.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/stylemanager-2.0.5.ol.min.js.map

This file was deleted.

File renamed without changes.
59 changes: 59 additions & 0 deletions dist/stylemanager.ol.min.js

Large diffs are not rendered by default.

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

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.0.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
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.
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 8ffa4de

Please sign in to comment.