Skip to content

Commit

Permalink
v3.1.0: image and video overlays; csv subdomains; base url obfuscatio…
Browse files Browse the repository at this point in the history
…n; leaflet 1.9.3 default
  • Loading branch information
bozdoz committed Dec 30, 2022
1 parent 7c23748 commit 8ae478c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion class.leaflet-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Leaflet_Map
*
* @var string major minor patch version
*/
public static $leaflet_version = '1.8.0';
public static $leaflet_version = '1.9.3';

/**
* Files to include upon init
Expand Down
4 changes: 2 additions & 2 deletions leaflet-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Author URI: https://bozdoz.com/
* Text Domain: leaflet-map
* Domain Path: /languages/
* Version: 3.0.5
* Version: 3.1.0
* License: GPL2
* Leaflet Map is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -29,7 +29,7 @@
exit;
}

define('LEAFLET_MAP__PLUGIN_VERSION', '3.0.5');
define('LEAFLET_MAP__PLUGIN_VERSION', '3.1.0');
define('LEAFLET_MAP__PLUGIN_FILE', __FILE__);
define('LEAFLET_MAP__PLUGIN_DIR', plugin_dir_path(__FILE__));

Expand Down
4 changes: 2 additions & 2 deletions 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,7 +1,7 @@
{
"name": "wp-plugin-leaflet-map",
"private": true,
"version": "3.0.5",
"version": "3.1.0",
"description": "Leaflet Map WordPress Plugin",
"scripts": {
"start": "docker-compose up && exit 0",
Expand Down
25 changes: 21 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Author: bozdoz
Author URI: https://bozdoz.com
Plugin URI: https://wordpress.org/plugins/leaflet-map/
Contributors: bozdoz, remigr, gerital, sal0max, thibault-barrat
Contributors: bozdoz, hupe13, remigr, gerital, sal0max, thibault-barrat, sardylan, AK-digital
Donate link: https://www.paypal.me/bozdoz
Tags: leaflet, map, mobile, javascript, openstreetmap, mapquest, interactive
Requires at least: 4.6
Tested up to: 6.1
Version: 3.0.5
Stable tag: 3.0.5
Tested up to: 6.1.1
Version: 3.1.0
Stable tag: 3.1.0
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 3.1.0 =
* Bumps leaflet default version to 1.9.3
* Checks for `lat` and `lon` in osm_geocode with `isset`
* Adds min, max, step to inputs for zoom, minZoom, and maxZoom
* Obfuscates base tileurl with base64_encode in map-shortcode to deter crawlers
* Adds `tooltipAnchor` to geojson and marker shortcodes
* Default maxZoom is 19, down from 20
* 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)
* Adds new shortcodes: [leaflet-image-overlay] and [leaflet-video-overlay] (examples in the shortcode-helper page, or README.md)

= 3.0.5 =
* Fixes ampersands in geojson/gpx/kml urls

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

== Upgrade Notice ==

= 3.1.0 =
Reduces php warnings by checking for `lat` and `lon` in osm_geocode with `isset()`.
Adds min, max, step to inputs for zoom, minZoom, and maxZoom.
Obfuscates base tileurl with base64_encode in map-shortcode to deter crawlers.
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).
New Shortcodes: [leaflet-image-overlay] and [leaflet-video-overlay] (examples in the shortcode-helper page, or README.md).

= 3.0.5 =
Fixes ampersands/querystrings in geojson/gpx/kml urls

Expand Down
4 changes: 2 additions & 2 deletions scripts/shortcode-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
function update_marker() {
var latlng = marker_1.getLatLng();
marker_input.value =
'[leaflet-marker lat=' + latlng.lat + ' lng=' + latlng.lng + ']'.__('My Marker', 'leaflet-map').'[/leaflet-marker]';
'[leaflet-marker lat=' + latlng.lat + ' lng=' + latlng.lng + ']';
}

function update_map() {
Expand All @@ -24,7 +24,7 @@
latlng.lng +
' zoom=' +
map_1.getZoom() +
']'.__('My Marker', 'leaflet-map').'[/leaflet-marker]';
']';

// update marker if outside of bounds
if (!bounds.contains(marker_1.getLatLng())) {
Expand Down

0 comments on commit 8ae478c

Please sign in to comment.