Skip to content

Commit

Permalink
Merge pull request #50 from sigcorporativo-ja/revert-44-master
Browse files Browse the repository at this point in the history
Revert "20211230 - Actualización stylemanager"
  • Loading branch information
fbma authored Jan 21, 2022
2 parents 2fcfdbe + 28f5b96 commit e8856c9
Show file tree
Hide file tree
Showing 24 changed files with 745 additions and 865 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": "3.0.0",
"date": "Junio, 2020",
"version": "2.0.5",
"date": "Marzo, 2021",
"author": "",
"org": "Consejería de Hacienda, Industria y Energía. Junta de Andalucía",
"tags": "mapea,plugin",
Expand Down
File renamed without changes.
59 changes: 59 additions & 0 deletions dist/stylemanager-2.0.5.ol.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

This file was deleted.

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

This file was deleted.

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": "3.0.0",
"version": "2.0.5",
"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": "3.0.0",
"date": "Junio, 2020",
"version": "2.0.5",
"date": "Marzo, 2021",
"author": "",
"org": "Consejería de Hacienda, Industria y Energía. Junta de Andalucía",
"tags": "mapea,plugin",
Expand Down
Binary file added src/facade/assets/fonts/sigc.eot
Binary file not shown.
21 changes: 21 additions & 0 deletions src/facade/assets/fonts/sigc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/facade/assets/fonts/sigc.ttf
Binary file not shown.
Binary file added src/facade/assets/fonts/sigc.woff
Binary file not shown.
2 changes: 0 additions & 2 deletions src/facade/js/binding/clusterbinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ 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 @@ -226,7 +225,6 @@ export class ClusterBinding extends Binding {
ranges.forEach((element, index) => {
options["pages"].push(element);
});

return options;
}
}
Expand Down
18 changes: 8 additions & 10 deletions src/facade/js/binding/heatmapbinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ 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 @@ -52,17 +49,18 @@ export class HeatmapBinding extends Binding {
addGradientListener() {
let parent = this.querySelector("[data-parent='gradient']");
this.querySelector("[data-add]").addEventListener('click', () => {
this.compileTemplate(htmlgradient, {}).then((htmlgradient) => {
this.compileTemplate("gradientheatmap.html", {}).then((html) => {
if (this.numberAddedColors_ < HeatmapBinding.MAX_NUMBER_COLORS) {
parent.appendChild(htmlgradient);
this.setRandomColor(htmlgradient);
htmlgradient.querySelector('.m-close').addEventListener('click', () => {
let rootElement = htmlgradient.parentElement;
rootElement.removeChild(htmlgradient);
parent.appendChild(html);
this.setRandomColor(html);
html.querySelector('.m-close').addEventListener('click', () => {
let rootElement = html.parentElement;
rootElement.removeChild(html);
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 e8856c9

Please sign in to comment.