Changeset 2956984
- Timestamp:
- 08/22/2023 07:26:15 PM (2 years ago)
- Location:
- os-datahub-maps/trunk
- Files:
-
- 4 edited
-
Changelog.txt (modified) (1 diff)
-
Readme.txt (modified) (3 diffs)
-
js/os-datahub-maps.js (modified) (4 diffs)
-
os-datahub-maps.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
os-datahub-maps/trunk/Changelog.txt
r2828692 r2956984 1 1 == Changelog == 2 3 = 1.7.0 = 4 Bug: Fix gesture handling always being turned on when map leaves fullscreen 5 Change: Limit popup height on markers to height of map. 2 6 3 7 = 1.6.2 = -
os-datahub-maps/trunk/Readme.txt
r2828692 r2956984 4 4 Requires PHP: 5.6.0 5 5 Requires at least: 4.5 6 Tested up to: 6. 17 Stable tag: 1. 6.26 Tested up to: 6.3 7 Stable tag: 1.7.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == Changelog == 72 72 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 = 74 Bug: Fix gesture handling always being turned on when map leaves fullscreen 75 New: Limit popup height on markers to height of map. 82 76 83 77 For previous versions please refer to Changelog.txt … … 85 79 == Upgrade Notice == 86 80 87 = 1. 6.0 =81 = 1.7.0 = 88 82 New feature. -
os-datahub-maps/trunk/js/os-datahub-maps.js
r2828692 r2956984 122 122 } 123 123 const mapIdent = 'os-datahub-map-' + options.mapId; 124 const mapDiv = document.getElementById(mapIdent); 124 125 const gestures = (options.gestures === 'mobile') ? L.Browser.mobile : options.gestures; 125 126 const mapOptions = { … … 173 174 if (map.isFullscreen()) { 174 175 map.gestureHandling.disable(); 175 } else {176 } else if (gestures) { 176 177 map.gestureHandling.enable(); 177 178 } … … 284 285 } 285 286 // Add OS branding logo 286 const mapDiv = document.getElementById(mapIdent);287 287 const logoDiv = document.createElement('div'); 288 288 logoDiv.className = 'os-api-logo'; … … 586 586 // Handler for timed popups. 587 587 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); 590 596 if (options.hover) { 597 let popupTimer; 591 598 layer.on('mouseover', function(e) { 592 599 clearTimeout(popupTimer); -
os-datahub-maps/trunk/os-datahub-maps.php
r2828692 r2956984 5 5 * Plugin URI: https://skirridsystems.co.uk/os-datahub-maps/ 6 6 * Description: Plugin for displaying OS Maps using the Data Hub Maps API. 7 * Version: 1. 6.27 * Version: 1.7.0 8 8 * Author: Simon Large 9 9 * Author URI: https://skirridsystems.co.uk/ … … 20 20 * Plugin version used for cache busting 21 21 */ 22 define( 'OS_DATAHUB_MAPS_VERSION', '1. 6.2' );22 define( 'OS_DATAHUB_MAPS_VERSION', '1.7.0' ); 23 23 24 24 /**
Note: See TracChangeset
for help on using the changeset viewer.