You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -66,7 +66,7 @@ Add a line to the map by adding `[leaflet-line]`. You can specify the postions w
66
66
67
67
Add a circle to the map by adding `[leaflet-circle]`. You can specify the position using `lat` and `lng` and the radius in meters using `radius`. You can also customize the style using [Leaflet's Path options](https://leafletjs.com/reference.html#path-option). Example: `[leaflet-circle message="max distance" lng=5.117909610271454 lat=52.097914814706094 radius=17500 color="#0DC143" fillOpacity=0.1]`.
68
68
69
-
Or you can add a geojson shape via a url (make sure you are allowed to access it if it's not hosted on your own server): `[leaflet-geojson src="https://example.com/path/to.geojson"]`. Add custom popups with field names; try out the default src file and fields like so:
69
+
Or you can add a geojson shape via a url (make sure you are allowed to access it if it's not hosted on your own server): `[leaflet-geojson src="https://example.com/path/to.geojson"]`. Add custom popups with field names; try out the default src file and fields like so:
70
70
71
71
`
72
72
[leaflet-map fitbounds]
@@ -161,7 +161,7 @@ For more FAQs, please visit the [FAQ section on GitHub here](https://github.com/
161
161
* [Feature] New [leaflet-wms] layer! Thanks @jannefleischer!
162
162
163
163
= 3.3.1 =
164
-
* [Update] Default Leaflet map set at v1.9.4
164
+
* [Update] Default Leaflet map set at v1.9.4
165
165
* [Security] Escapes geojson popup properties to prevent XSS attacks
166
166
* [Bug] Updates "!attribution" or "attribution=0" attributes to actually remove attribution
167
167
* [Bug] Switches SANITIZE_FULL with SANITIZE to to allow "German umlauts"
@@ -215,7 +215,7 @@ For more FAQs, please visit the [FAQ section on GitHub here](https://github.com/
215
215
* actual bugfix to multiple or missing enqueue map scripts
216
216
217
217
= 2.23.1 =
218
-
* possible bugfix to failing to enqueue map when shortcode rendered
218
+
* possible bugfix to failing to enqueue map when shortcode rendered
219
219
220
220
= 2.23.0 =
221
221
* Added iconUrl to leaflet-geojson shortcode.
@@ -332,7 +332,7 @@ For more FAQs, please visit the [FAQ section on GitHub here](https://github.com/
332
332
* Added string interpolation for GeoJSON popups to use feature properties (thanks to [@geraldo](https://github.com/geraldo))
333
333
334
334
= 2.9.1 =
335
-
* Fixes for PHP 7.2: made all method arguments identical
335
+
* Fixes for PHP 7.2: made all method arguments identical
336
336
* Added minified JavaScript files for site speed
337
337
338
338
= 2.8.6 =
@@ -393,13 +393,13 @@ For more FAQs, please visit the [FAQ section on GitHub here](https://github.com/
* Changes to map creation which may solve an occasional marker creation JavaScript error
396
+
* Changes to map creation which may solve an occasional marker creation JavaScript error
397
397
* Added more attributes to marker shortcode (draggable, title, alt, opacity)
398
398
* Added doubleClickZoom global, database option to globally disable double click zooming (by default), because it's more inline with disabling scroll zooming by default. Box zooming on the other hand is more intentional
399
399
400
400
= 2.5.0 =
401
-
* Some improvements to the codebase;
402
-
* added the same styling options for lines as there are for geojson;
401
+
* Some improvements to the codebase;
402
+
* added the same styling options for lines as there are for geojson;
403
403
* added popups to lines, as there are for markers;
404
404
* added an example to the shortcode admin page for the style attributes on lines;
405
405
* added code and another example for disabling all map interactions (all zooms, keyboard, etc);
@@ -475,3 +475,162 @@ For more FAQs, please visit the [FAQ section on GitHub here](https://github.com/
475
475
476
476
= 1.0 =
477
477
* First Version. Basic map creation and marker creation.
478
+
479
+
== Upgrade Notice ==
480
+
481
+
= 3.3.1 =
482
+
* Escapes geojson popup properties to prevent XSS attacks
483
+
484
+
= 3.2.0 =
485
+
* Fixes error if geocoder fails to get a lat/lng
486
+
* Fixes deprecated warnings in php 8.1
487
+
* Fixes detect retina and maxzoom issues
488
+
489
+
= 3.1.0 =
490
+
Reduces php warnings by checking for lat and lon in osm_geocode with isset().
491
+
Adds min, max, step to inputs for zoom, minZoom, and maxZoom.
492
+
Obfuscates base tileurl with base64_encode.
493
+
Allows for comma-separated tile server subdomains.
494
+
New: [leaflet-image-overlay] and [leaflet-video-overlay].
495
+
496
+
= 3.0.5 =
497
+
Fixes ampersands/querystrings in geojson/gpx/kml urls
498
+
499
+
= 3.0.4 =
500
+
Fixes markers so that they can accept `0` as a value for x/y and lat/lng coordinates
501
+
502
+
= 3.0.3 =
503
+
Fixes using `popupAnchor` without passing `iconUrl`
504
+
505
+
= 3.0.2 =
506
+
Another fix for commas in float coordinates. Fix validation of tile urls. Fix for php 5.6 using static function methods.
507
+
508
+
= 3.0.1 =
509
+
Fixes some issues with float coordinates that use commas instead of decimals, and fixes some quotes in addresses for geocoding
510
+
511
+
= 3.0.0 =
512
+
Fixes security issues in admin and in shortcode attributes. Escapes and filters many inputs.
513
+
514
+
= 2.23.3 =
515
+
Changes 'leaflet_map_enqueue' action to fire for each map
516
+
517
+
= 2.23.2 =
518
+
Actual bugfix to multiple or missing enqueue map scripts
519
+
520
+
= 2.23.1 =
521
+
Possible bugfix to ensuring javascript is enqueued when map is rendered
522
+
523
+
= 2.23.0 =
524
+
Minor bugfix to number-type inputs in admin that couldn't switch types between decimals and integers
525
+
526
+
= 2.21.0 =
527
+
Fixes issues with tilelayers when min_zoom and max_zoom are identical and detect_retina is true
528
+
529
+
= 2.19.1 =
530
+
Bumps leaflet version to 1.7.1
531
+
Removes "\r\n" from default attribution
532
+
Uses min and max zoom in tileurl as well as map
533
+
534
+
= 2.18.0 =
535
+
Changes the way maps are rendered: Now creates map containers before creating maps, in the same order the containers are rendered. This should help with ajax, caching, and script-altering plugins.
536
+
537
+
= 2.17.3 =
538
+
Bugfix to detect retina breaking MapQuest maps since 2.17.0
539
+
540
+
= 2.17.1 =
541
+
Lazy-loading svg and geojson scripts so that it can wait for Leaflet to be loaded under some circumstances (deferred scripts)
542
+
543
+
= 2.17.0 =
544
+
Makes shortcode in excerpts conditional (enable it in admin->leaflet-map->settings)
545
+
546
+
= 2.16.2 =
547
+
Fixes missing maps by removing spaces in the JavaScript which some themes turn into paragraphs
548
+
549
+
= 2.16.1 =
550
+
Updates default Leaflet to 1.6.0
551
+
Changes map generation from a pre-defined randomly identified div element to a JavaScript generated div which is created (insertBefore) each inserted script tag
552
+
553
+
= 2.16.0 =
554
+
Adds [leaflet-polygon]
555
+
Allows author roles to see shortcodes page
556
+
557
+
= 2.15.0 =
558
+
Adds referer to file_get_contents, in case curl is disabled
559
+
Updates default Leaflet to 1.5.1
560
+
Fixes reset default values button in settings
561
+
Requires at least WordPress 4.6
562
+
563
+
= 2.12.0 =
564
+
Fixed links in shortcode helper page; fixed issue with marker popups that had single quotes; loading leaflet scripts and styles only when a map shortcode is used
565
+
566
+
= 2.11.4 =
567
+
Fix to a race condition issue with custom scripts changing leaflet rendering methods
568
+
569
+
= 2.11.3 =
570
+
Fix for rendering circles (fix to 2.11.2)
571
+
572
+
= 2.10.1 =
573
+
Fix for plugin settings not being included (somehow)
574
+
575
+
= 2.9.1 =
576
+
Fix for PHP7.2; added minified JavaScript files
577
+
578
+
= 2.8.6 =
579
+
Added [leaflet-gpx] for GPX format
580
+
581
+
= 2.8.6 =
582
+
Fix image shortcode ratio
583
+
584
+
= 2.8.5 =
585
+
Fix to missing files in 2.8.4
586
+
587
+
= 2.8.4 =
588
+
Fixed issues with css and js CDN; removed version from querystring
589
+
590
+
= 2.8.3 =
591
+
Fixed issues with leaflet-kml
592
+
593
+
= 2.8.2 =
594
+
Fixed issues with image maps and geocoder addresses
595
+
596
+
= 2.7.6 =
597
+
added optional cURL to get geolocations if file_get_contents is not allowed on a server (cURL needs to be enabled, obviously)
598
+
599
+
= 2.7.5 =
600
+
fixed filter_var_array throwing errors in old PHP
601
+
602
+
= 2.7.3 =
603
+
Fixed array_filter on some older PHP versions
604
+
605
+
= 2.7.2 =
606
+
Fixed possible JavaScript error "Unexpected token <"; fix was to remove spaces
607
+
608
+
= 2.6.0 =
609
+
Changes to map creation which may solve an occasional marker creation JavaScript error
610
+
611
+
= 2.0.2 =
612
+
OpenStreetMap.org has an SSL certificate (osm.org didn't)
613
+
614
+
= 2.0.1 =
615
+
GeoJSON ajax requests now work with Internet Explorer (some versions)
616
+
617
+
= 2.0 =
618
+
MapQuest tiles will no longer work without an app key!
619
+
620
+
= 1.15 =
621
+
Fixed incompatibility with plugins that execute recursive shortcodes
622
+
623
+
= 1.14 =
624
+
Fixed slashes in optional map attribution
625
+
626
+
= 1.12 =
627
+
Added htmlspecialchars in admin.php, and custom attributions. Bugfix : removed position in admin menu so it doesn't overwrite or be overwritten (thanks to [@ziodave](https://github.com/ziodave))
628
+
629
+
= 1.6 =
630
+
Removed windows onload functions and created a construct and init js file for initiating the maps when Leaflet is ready (other plugins were overwriting windows.onload).
631
+
632
+
= 1.5 =
633
+
Improved stability for multiple plugins with windows onload functions.
0 commit comments