Skip to content

Commit 8ae478c

Browse files
author
bozdoz
committed
v3.1.0: image and video overlays; csv subdomains; base url obfuscation; leaflet 1.9.3 default
1 parent 7c23748 commit 8ae478c

File tree

6 files changed

+29
-12
lines changed

6 files changed

+29
-12
lines changed

class.leaflet-map.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Leaflet_Map
2222
*
2323
* @var string major minor patch version
2424
*/
25-
public static $leaflet_version = '1.8.0';
25+
public static $leaflet_version = '1.9.3';
2626

2727
/**
2828
* Files to include upon init

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://bozdoz.com/
99
* Text Domain: leaflet-map
1010
* Domain Path: /languages/
11-
* Version: 3.0.5
11+
* Version: 3.1.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', '3.0.5');
32+
define('LEAFLET_MAP__PLUGIN_VERSION', '3.1.0');
3333
define('LEAFLET_MAP__PLUGIN_FILE', __FILE__);
3434
define('LEAFLET_MAP__PLUGIN_DIR', plugin_dir_path(__FILE__));
3535

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wp-plugin-leaflet-map",
33
"private": true,
4-
"version": "3.0.5",
4+
"version": "3.1.0",
55
"description": "Leaflet Map WordPress Plugin",
66
"scripts": {
77
"start": "docker-compose up && exit 0",

readme.txt

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
Author: bozdoz
33
Author URI: https://bozdoz.com
44
Plugin URI: https://wordpress.org/plugins/leaflet-map/
5-
Contributors: bozdoz, remigr, gerital, sal0max, thibault-barrat
5+
Contributors: bozdoz, hupe13, remigr, gerital, sal0max, thibault-barrat, sardylan, AK-digital
66
Donate link: https://www.paypal.me/bozdoz
77
Tags: leaflet, map, mobile, javascript, openstreetmap, mapquest, interactive
88
Requires at least: 4.6
9-
Tested up to: 6.1
10-
Version: 3.0.5
11-
Stable tag: 3.0.5
9+
Tested up to: 6.1.1
10+
Version: 3.1.0
11+
Stable tag: 3.1.0
1212
License: GPLv2
1313
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1414

@@ -149,6 +149,16 @@ For more FAQs, please visit the [FAQ section on GitHub here](https://github.com/
149149

150150
== Changelog ==
151151

152+
= 3.1.0 =
153+
* Bumps leaflet default version to 1.9.3
154+
* Checks for `lat` and `lon` in osm_geocode with `isset`
155+
* Adds min, max, step to inputs for zoom, minZoom, and maxZoom
156+
* Obfuscates base tileurl with base64_encode in map-shortcode to deter crawlers
157+
* Adds `tooltipAnchor` to geojson and marker shortcodes
158+
* Default maxZoom is 19, down from 20
159+
* Allows for comma-separated tile server subdomains, as opposed to 'abc' turning into 'a','b','c' automatically (i.e. you can now use something like "cache-1,cache2" as default subdomains)
160+
* Adds new shortcodes: [leaflet-image-overlay] and [leaflet-video-overlay] (examples in the shortcode-helper page, or README.md)
161+
152162
= 3.0.5 =
153163
* Fixes ampersands in geojson/gpx/kml urls
154164

@@ -440,6 +450,13 @@ For more FAQs, please visit the [FAQ section on GitHub here](https://github.com/
440450

441451
== Upgrade Notice ==
442452

453+
= 3.1.0 =
454+
Reduces php warnings by checking for `lat` and `lon` in osm_geocode with `isset()`.
455+
Adds min, max, step to inputs for zoom, minZoom, and maxZoom.
456+
Obfuscates base tileurl with base64_encode in map-shortcode to deter crawlers.
457+
Allows for comma-separated tile server subdomains, as opposed to 'abc' turning into 'a','b','c' automatically (i.e. you can now use something like "cache-1,cache2" as default subdomains).
458+
New Shortcodes: [leaflet-image-overlay] and [leaflet-video-overlay] (examples in the shortcode-helper page, or README.md).
459+
443460
= 3.0.5 =
444461
Fixes ampersands/querystrings in geojson/gpx/kml urls
445462

scripts/shortcode-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
function update_marker() {
1212
var latlng = marker_1.getLatLng();
1313
marker_input.value =
14-
'[leaflet-marker lat=' + latlng.lat + ' lng=' + latlng.lng + ']'.__('My Marker', 'leaflet-map').'[/leaflet-marker]';
14+
'[leaflet-marker lat=' + latlng.lat + ' lng=' + latlng.lng + ']';
1515
}
1616

1717
function update_map() {
@@ -24,7 +24,7 @@
2424
latlng.lng +
2525
' zoom=' +
2626
map_1.getZoom() +
27-
']'.__('My Marker', 'leaflet-map').'[/leaflet-marker]';
27+
']';
2828

2929
// update marker if outside of bounds
3030
if (!bounds.contains(marker_1.getLatLng())) {

0 commit comments

Comments
 (0)