Plugin Directory

Changeset 2956984


Ignore:
Timestamp:
08/22/2023 07:26:15 PM (2 years ago)
Author:
skirridsystems
Message:

Version 1.7.0 released

Location:
os-datahub-maps/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • os-datahub-maps/trunk/Changelog.txt

    r2828692 r2956984  
    11== Changelog ==
     2
     3= 1.7.0 =
     4Bug: Fix gesture handling always being turned on when map leaves fullscreen
     5Change: Limit popup height on markers to height of map.
    26
    37= 1.6.2 =
  • os-datahub-maps/trunk/Readme.txt

    r2828692 r2956984  
    44Requires PHP: 5.6.0
    55Requires at least: 4.5
    6 Tested up to: 6.1
    7 Stable tag: 1.6.2
     6Tested up to: 6.3
     7Stable tag: 1.7.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
    73 = 1.6.2 =
    74 Change: Always delay JS execution until page load is complete.
    75 
    76 = 1.6.1 =
    77 Bug: New files missing from 1.6.0 release added.
    78 
    79 = 1.6.0 =
    80 New: Add support for showing current location on map.
    81 Change: Move two items from global settings section to default settings section as they can be overridden.
     73= 1.7.0 =
     74Bug: Fix gesture handling always being turned on when map leaves fullscreen
     75New: Limit popup height on markers to height of map.
    8276
    8377For previous versions please refer to Changelog.txt
     
    8579== Upgrade Notice ==
    8680
    87 = 1.6.0 =
     81= 1.7.0 =
    8882New feature.
  • os-datahub-maps/trunk/js/os-datahub-maps.js

    r2828692 r2956984  
    122122        }
    123123        const mapIdent = 'os-datahub-map-' + options.mapId;
     124        const mapDiv = document.getElementById(mapIdent);
    124125        const gestures = (options.gestures === 'mobile') ? L.Browser.mobile : options.gestures;
    125126        const mapOptions = {
     
    173174                if (map.isFullscreen()) {
    174175                    map.gestureHandling.disable();
    175                 } else {
     176                } else if (gestures) {
    176177                    map.gestureHandling.enable();
    177178                }
     
    284285        }
    285286        // Add OS branding logo
    286         const mapDiv = document.getElementById(mapIdent);
    287287        const logoDiv = document.createElement('div');
    288288        logoDiv.className = 'os-api-logo';
     
    586586        // Handler for timed popups.
    587587        function addPopup(layer, text) {
    588             let popupTimer;
    589             layer.bindPopup(text);
     588            let popupOptions = {};
     589            if (!options.popup) {
     590                // This doesn't currently work within a popup window.
     591                const popupMargin = 40;
     592                popupOptions.maxHeight = mapDiv.clientHeight - popupMargin;
     593                popupOptions.maxWidth = Math.min(mapDiv.clientWidth - popupMargin, 300);
     594            };
     595            layer.bindPopup(text, popupOptions);
    590596            if (options.hover) {
     597                let popupTimer;
    591598                layer.on('mouseover', function(e) {
    592599                        clearTimeout(popupTimer);
  • os-datahub-maps/trunk/os-datahub-maps.php

    r2828692 r2956984  
    55 * Plugin URI:        https://skirridsystems.co.uk/os-datahub-maps/
    66 * Description:       Plugin for displaying OS Maps using the Data Hub Maps API.
    7  * Version:           1.6.2
     7 * Version:           1.7.0
    88 * Author:            Simon Large
    99 * Author             URI: https://skirridsystems.co.uk/
     
    2020 * Plugin version used for cache busting
    2121 */
    22 define( 'OS_DATAHUB_MAPS_VERSION', '1.6.2' );
     22define( 'OS_DATAHUB_MAPS_VERSION', '1.7.0' );
    2323
    2424/**
Note: See TracChangeset for help on using the changeset viewer.