Skip to content

Commit 2621369

Browse files
author
bozdoz
committed
v2.14.0
1 parent 69bd9bd commit 2621369

File tree

6 files changed

+20
-10
lines changed

6 files changed

+20
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Or you can add a geojson shape via a url:
227227

228228
Includes all style options: See https://leafletjs.com/reference-1.3.4.html#path. Also, if you want to add feature
229229
properties to the popups, use the inner content and curly brackets to substitute the values:
230-
`[leaflet-marker]Field A = {{field_a}}[/leaflet-marker]`.
230+
`[leaflet-marker]Field A = {field_a}[/leaflet-marker]`.
231231

232232
### [leaflet-kml]
233233

leaflet-map.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Author URI: https://twitter.com/bozdoz/
99
* Text Domain: leaflet-map
1010
* Domain Path: /languages/
11-
* Version: 2.13.0
11+
* Version: 2.14.0
1212
* License: GPL2
1313
* Leaflet Map is free software: you can redistribute it and/or modify
1414
* it under the terms of the GNU General Public License as published by
@@ -29,7 +29,7 @@
2929
exit;
3030
}
3131

32-
define('LEAFLET_MAP__PLUGIN_VERSION', '2.13.0');
32+
define('LEAFLET_MAP__PLUGIN_VERSION', '2.14.0');
3333
define('LEAFLET_MAP__PLUGIN_FILE', __FILE__);
3434
define('LEAFLET_MAP__PLUGIN_DIR', plugin_dir_path(__FILE__));
3535

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leaflet-map",
3-
"version": "2.13.0",
3+
"version": "2.14.0",
44
"description": "Leaflet Map WordPress Plugin",
55
"main": "index.js",
66
"scripts": {

readme.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Contributors: bozdoz, Remigr, nielsalstrup, jeromelebleu, gerital, peteruithoven
66
Donate link: https://www.paypal.me/bozdoz
77
Tags: leaflet, map, mobile, javascript, openstreetmap, mapquest, interactive
88
Requires at least: 3.0.1
9-
Tested up to: 5.0.2
10-
Version: 2.13.0
11-
Stable tag: 2.13.0
9+
Tested up to: 5.0.3
10+
Version: 2.14.0
11+
Stable tag: 2.14.0
1212
License: GPLv2
1313
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1414

@@ -155,6 +155,14 @@ Yes: use the keyword `attribution` in your shortcode (semi-colon separated list
155155

156156
== Changelog ==
157157

158+
= 2.14.0 =
159+
* Fix `visible` att in popups.
160+
* Adds nested property accessors to geojson popup text: `{attributes.email}`
161+
* Adds negation to shortcode attributes with an exclamation mark: e.g. Disable all interaction with `[leaflet-map address="las vegas" !boxZoom !doubleClickZoom !dragging !keyboard !scrollwheel !attribution !touchZoom]`
162+
* Fix case-sensitive `boxZoom`
163+
* Add `touchZoom` to map attributes
164+
* Fix icon-related anchor attributes (numbers instead of strings)
165+
158166
= 2.13.0 =
159167
* Updated LeafletJS to 1.4.0
160168
* Replaced `fit_markers` with `fitbounds`, which now fits all shapes in map view

scripts/construct-leaflet-map.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@
174174
function parseKey (obj, key) {
175175
var arr = strToPath(unescape(key))
176176
var value = obj
177-
178-
console.log({arr})
179177

180178
for (var i = 0, len = arr.length; i < len; i++) {
181179
value = value[arr[i]]

shortcodes/class.map-shortcode.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ protected function getAtts($atts='')
127127
'closePopupOnClick' => isset($closepopuponclick) ?
128128
$closepopuponclick : null,
129129
'trackResize' => isset($trackresize) ? $trackresize : null,
130-
'boxZoom' => isset($boxzoom) ? $boxzoom : null,
130+
'boxZoom' => isset($boxzoom)
131+
? $boxzoom
132+
: isset($boxZoom)
133+
? $boxZoom
134+
: null,
131135
'touchZoom' => isset($touchZoom) ? $touchZoom : null,
132136
'dragging' => isset($dragging) ? $dragging : null,
133137
'keyboard' => isset($keyboard) ? $keyboard : null,

0 commit comments

Comments
 (0)