Plugin Directory

Changeset 3281719


Ignore:
Timestamp:
04/25/2025 10:13:42 AM (12 months ago)
Author:
skirridsystems
Message:

Version 1.8.2 released

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

Legend:

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

    r3254814 r3281719  
    11== Changelog ==
     2
     3= 1.8.2 =
     4Change: Catch malformed location in marker position.
    25
    36= 1.8.1 =
  • os-datahub-maps/trunk/Readme.txt

    r3254814 r3281719  
    44Requires PHP: 5.6.0
    55Requires at least: 4.5
    6 Tested up to: 6.7
    7 Stable tag: 1.8.1
     6Tested up to: 6.8
     7Stable tag: 1.8.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
    73 = 1.8.1 =
    74 Bug: Fix issue with elevation profile appear on top of fullscreen map on iOS.
     73= 1.8.2 =
     74Change: Catch malformed location in marker position.
    7575
    7676For previous versions please refer to Changelog.txt
     
    7878== Upgrade Notice ==
    7979
    80 = 1.8.1 =
    81 Fix fullscreen issue on iOS
     80= 1.8.2 =
     81Catch malformed location in marker position
  • os-datahub-maps/trunk/js/os-datahub-maps.js

    r3027663 r3281719  
    208208        if (typeof options.markerList === 'object') {
    209209            options.markerList.forEach(function(marker) {
    210                 const newLayer = L.marker(convertCoordinates(marker.position));
    211                 if (marker.color !== '') {
    212                     newLayer.setIcon(getColorMarker(marker.color));
    213                 }
    214                 loadLayer(newLayer, marker.group, '');
    215                 if (marker.text !== '') {
    216                     addPopup(newLayer, marker.text);
    217                 }
    218                 markerSet.push(newLayer);
     210                const location = convertCoordinates(marker.position);
     211                if (location !== null) {
     212                    const newLayer = L.marker(convertCoordinates(marker.position));
     213                    if (marker.color !== '') {
     214                        newLayer.setIcon(getColorMarker(marker.color));
     215                    }
     216                    loadLayer(newLayer, marker.group, '');
     217                    if (marker.text !== '') {
     218                        addPopup(newLayer, marker.text);
     219                    }
     220                    markerSet.push(newLayer);
     221                }
    219222            });
    220223        }
  • os-datahub-maps/trunk/os-datahub-maps.php

    r3254814 r3281719  
    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.8.1
     7 * Version:           1.8.2
    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.8.1' );
     22define( 'OS_DATAHUB_MAPS_VERSION', '1.8.2' );
    2323
    2424/**
Note: See TracChangeset for help on using the changeset viewer.