Skip to content

Commit

Permalink
Merge pull request #459 from InfoAmazonia/develop
Browse files Browse the repository at this point in the history
Release 2.12.6
  • Loading branch information
leopiccionia authored Dec 3, 2024
2 parents ecfca12 + f439e18 commit 532bce5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
7 changes: 5 additions & 2 deletions src/README.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== JEO ===
Contributors: earthjournalism
Tested up to: 6.6.2
Stable tag: 2.12.5
Stable tag: 2.12.6
Requires PHP: 7.2
Requires at least: 6.2
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Version: 2.12.5
Version: 2.12.6

The JEO plugin acts as a geojournalism platform that allows news organizations, bloggers and NGOs to publish news stories as layers of information on digital maps.

Expand Down Expand Up @@ -49,6 +49,9 @@ After activating the plugin, a new item will appear on the WordPress dashboard:

== Changelog ==

= 2.12.6 =
* bugfix: Fix layer insertion bug when interactive style is not bottommost style layer

= 2.12.5 =
* bugfix: Fix position handling on storymap editor

Expand Down
4 changes: 2 additions & 2 deletions src/jeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @wordpress-plugin
* Plugin Name: JEO WP
* Description: Interactive Map blocks for Wordpress Gutenberg
* Version: 2.12.5
* Version: 2.12.6
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: jeo
Expand All @@ -22,7 +22,7 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'JEO_VERSION', '2.12.5' );
define( 'JEO_VERSION', '2.12.6' );

define( 'JEO_BASEPATH', plugin_dir_path( __FILE__ ) );
define( 'JEO_BASEURL', plugins_url('', __FILE__) );
Expand Down
6 changes: 1 addition & 5 deletions src/js/src/jeo-map/class-jeo-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ export default class JeoMap {

this.styleLoaded.then( () => {
layers.forEach( ( layer, index ) => {
const currentLayerSettings = mapLayersSettings.find(
( item ) => item.id === layer.attributes.layer_post_id
);

if ( currentLayerSettings.load_as_style ) {
if ( index === styleLayerIndex ) {
layer.addInteractions( map );
} else {
// If the current layer is below the style, add using fisrt syle layer reference
Expand Down
7 changes: 5 additions & 2 deletions trunk/readme.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== JEO ===
Contributors: earthjournalism
Tested up to: 6.6.2
Stable tag: 2.12.5
Stable tag: 2.12.6
Requires PHP: 7.2
Requires at least: 6.2
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Version: 2.12.5
Version: 2.12.6

The JEO plugin acts as a geojournalism platform that allows news organizations, bloggers and NGOs to publish news stories as layers of information on digital maps.

Expand Down Expand Up @@ -49,6 +49,9 @@ After activating the plugin, a new item will appear on the WordPress dashboard:

== Changelog ==

= 2.12.6 =
* bugfix: Fix layer insertion bug when interactive style is not bottommost style layer

= 2.12.5 =
* bugfix: Fix position handling on storymap editor

Expand Down

0 comments on commit 532bce5

Please sign in to comment.