Skip to content

Commit

Permalink
Merge pull request #6 from sigcorporativo-ja/develop
Browse files Browse the repository at this point in the history
v1.0.1
  • Loading branch information
fbma authored May 10, 2021
2 parents 6dd2c50 + a5860c2 commit 319249c
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
/src/index.js
7 changes: 4 additions & 3 deletions dist/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@
"name": "Transparency",
"description": "Efecto transparencia sobre capa",
"text": "Plugin que permite realizar un efecto de transparencia sobre una capa. En caso de indicar varias capas, se realizará el efecto sobre la capa seleccionada en el selector. ",
"version": "1.0.0",
"date": "Junio, 2020",
"version": "1.0.1",
"date": "Mayo, 2021",
"author": "",
"org": "Consejería de Hacienda, Industria y Energía. Junta de Andalucía.",
"tags": "mapea,plugin",
"icon": "./facade/assets/icons/icons.svg",
"centralized": true
"centralized": true,
"compatibility": ["5","6"]
}
}
2 changes: 1 addition & 1 deletion dist/transparency.ol.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/transparency.ol.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Transparency",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"keywords": [
"map",
Expand Down
7 changes: 4 additions & 3 deletions src/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@
"name": "Transparency",
"description": "Efecto transparencia sobre capa",
"text": "Plugin que permite realizar un efecto de transparencia sobre una capa. En caso de indicar varias capas, se realizará el efecto sobre la capa seleccionada en el selector. ",
"version": "1.0.0",
"date": "Junio, 2020",
"version": "1.0.1",
"date": "Mayo, 2021",
"author": "",
"org": "Consejería de Hacienda, Industria y Energía. Junta de Andalucía.",
"tags": "mapea,plugin",
"icon": "./facade/assets/icons/icons.svg",
"centralized": true
"centralized": true,
"compatibility": ["5","6"]
}
}
4 changes: 4 additions & 0 deletions src/impl/ol/js/TransparentInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export default class TransparentInteraction extends ol.interaction.Pointer {
for (i = 0; i < this.layers_.length; i += 1) {
this.layers_[i].precompose = this.layers_[i].on('precompose', this.precompose_.bind(this));
this.layers_[i].postcompose = this.layers_[i].on('postcompose', this.postcompose_.bind(this));
this.layers_[i].precompose = this.layers_[i].on('prerender', this.precompose_.bind(this));
this.layers_[i].postcompose = this.layers_[i].on('postrender', this.postcompose_.bind(this));
}
map.renderSync();
}
Expand All @@ -78,6 +80,8 @@ export default class TransparentInteraction extends ol.interaction.Pointer {
if (this.getMap()) {
l.precompose = layers[i].on('precompose', this.precompose_.bind(this));
l.postcompose = layers[i].on('postcompose', this.postcompose_.bind(this));
l.precompose = layers[i].on('prerender', this.precompose_.bind(this));
l.postcompose = layers[i].on('postrender', this.postcompose_.bind(this));
this.getMap().renderSync();
}
this.layers_.push(layers[i]);
Expand Down
6 changes: 3 additions & 3 deletions test/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="mapea" content="yes">
<title>Transparency TEST</title>
<link href="http://mapea4-sigc.juntadeandalucia.es/mapea/assets/css/mapea-5.1.0.ol.min.css" rel="stylesheet" />
<link href="http://mapea4-sigc.juntadeandalucia.es/mapea/assets/css/mapea-6.0.0.ol.min.css" rel="stylesheet" />


<style rel="stylesheet">
Expand All @@ -24,8 +24,8 @@

<body>
<div id="mapjs" class="container"></div>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/mapea-5.1.0.ol.min.js"></script>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/configuration-5.1.0.js"></script>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/mapea-6.0.0.ol.min.js"></script>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/configuration-6.0.0.js"></script>

<script type="text/javascript" src="/main.js"></script>
</body>
Expand Down
6 changes: 3 additions & 3 deletions test/prod.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="mapea" content="yes">
<title>Transparency Production TEST</title>
<link href="http://mapea4-sigc.juntadeandalucia.es/mapea/assets/css/mapea-5.1.0.ol.min.css" rel="stylesheet" />
<link href="http://mapea4-sigc.juntadeandalucia.es/mapea/assets/css/mapea-6.0.0.ol.min.css" rel="stylesheet" />
<link href="../dist/transparency.ol.min.css" rel="stylesheet" />
<style rel="stylesheet">
html,
Expand All @@ -23,8 +23,8 @@

<body>
<div id="mapjs" class="container"></div>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/mapea-5.1.0.ol.min.js"></script>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/configuration-5.1.0.js"></script>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/mapea-6.0.0.ol.min.js"></script>
<script type="text/javascript" src="http://mapea4-sigc.juntadeandalucia.es/mapea/js/configuration-6.0.0.js"></script>
<script type="text/javascript" src="../dist/transparency.ol.min.js"></script>
<script type="text/javascript">
const map = M.map({
Expand Down

0 comments on commit 319249c

Please sign in to comment.