Plugin Directory

Changeset 809073

Timestamp:
11/22/2013 10:15:56 PM (11 years ago)
Author:
pbaylies
Message:

Bugfix release - fixed conflict with new Google API rollout, marker bubble size and position fixed, bumped version to 2.4.6.

Location:
simplemap
Files:
1 added
34 edited
11 copied

Legend:

Unmodified
Added
Removed
  • simplemap/tags/2.4.6/classes/simplemap.php

    r638641 r809073  
    11401140                        map.setZoom(parseInt(zoom_level));
    11411141                    }
    1142 
     1142                   
     1143                    // Paranoia - fix container sizing bug -- pdb
     1144                    google.maps.event.addListener(map, "idle", function(){
     1145                        google.maps.event.trigger(map, 'resize');
     1146                    });
    11431147                });
    11441148            }
     
    11771181                markersArray.push(marker);
    11781182
    1179                 var mapwidth = Number(stringFilter(map_width));
    1180                 var mapheight = Number(stringFilter(map_height));
    1181 
    1182                 var maxbubblewidth = Math.round(mapwidth / 1.5);
    1183                 var maxbubbleheight = Math.round(mapheight / 2.2);
     1183                var mapwidth;
     1184                var mapheight;
     1185                var maxbubblewidth;
     1186                var maxbubbleheight;
     1187               
     1188                mapwidth = document.getElementById("simplemap");
     1189                if ( typeof mapwidth != 'undefined' ) {
     1190                    mapwidth = mapwidth.offsetWidth;
     1191                } else {
     1192                    if ( typeof map_width != 'undefined' ) {
     1193                        mapwidth = Number(stringFilter(map_width));                     
     1194                    } else {
     1195                        mapwidth = 400;
     1196                    }
     1197                }
     1198               
     1199                mapheight = document.getElementById("simplemap");
     1200                if ( typeof mapheight != 'undefined' ) {
     1201                    mapheight = mapheight.offsetHeight;
     1202                } else {
     1203                    if ( typeof map_height != 'undefined' ) {
     1204                        mapheight = Number(stringFilter(map_height));                       
     1205                    } else {
     1206                        mapheight = 200;
     1207                    }
     1208                }
     1209                maxbubblewidth = Math.round(mapwidth / 1.5);
     1210                maxbubbleheight = Math.round(mapheight / 2.2);
    11841211
    11851212                var fontsize = 12;
     
    12241251                    totalheight = maxbubbleheight;
    12251252                }
    1226 
    1227                 var html = '<div class="markertext" style="height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
     1253               
     1254                if ( isNaN( totalheight ) || totalheight > maxbubbleheight ) {
     1255                    totalheight = maxbubbleheight;
     1256                }
     1257
     1258                var html = '<div class="markertext" style="max-width: ' + maxbubblewidth + 'px; height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
    12281259                html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">';
    12291260
     
    13361367                google.maps.event.addListener(marker, 'click', function() {
    13371368                    clearInfoWindows();
     1369
     1370
     1371
     1372
     1373
     1374
     1375
     1376
     1377
     1378
     1379
     1380
    13381381                    var infowindow = new google.maps.InfoWindow({
    1339                         maxWidth: maxbubblewidth,
     1382                        maxWidth: width,
    13401383                        content: html
    1341                     });
     1384                    });
    13421385                    infowindow.open(map, marker);
    13431386                    infowindowsArray.push(infowindow);
  • simplemap/tags/2.4.6/readme.txt

    r809035 r809073  
    66Requires at least: 2.8
    77Tested up to: 3.7.1
    8 Stable tag: 2.4.5
     8Stable tag: 2.4.
    99
    1010SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site.
     
    8282
    8383== Changelog ==
     84
     85
     86
     87
    8488
    8589= 2.4.5 =
  • simplemap/tags/2.4.6/simplemap.php

    r809035 r809073  
    22/*
    33Plugin Name: SimpleMap
    4 Version: 2.4.5
     4Version: 2.4.
    55Plugin URI: http://simplemap-plugin.com/
    66Author: Michael Torbert
     
    2020
    2121    // Plugin Version Number
    22     define( 'SIMPLEMAP_VERSION', '2.4.5' );
     22    define( 'SIMPLEMAP_VERSION', '2.4.' );
    2323
    2424    if ( !defined( 'WP_PLUGIN_DIR' ) ) {
  • simplemap/trunk/classes/simplemap.php

    r638641 r809073  
    11401140                        map.setZoom(parseInt(zoom_level));
    11411141                    }
    1142 
     1142                   
     1143                    // Paranoia - fix container sizing bug -- pdb
     1144                    google.maps.event.addListener(map, "idle", function(){
     1145                        google.maps.event.trigger(map, 'resize');
     1146                    });
    11431147                });
    11441148            }
     
    11771181                markersArray.push(marker);
    11781182
    1179                 var mapwidth = Number(stringFilter(map_width));
    1180                 var mapheight = Number(stringFilter(map_height));
    1181 
    1182                 var maxbubblewidth = Math.round(mapwidth / 1.5);
    1183                 var maxbubbleheight = Math.round(mapheight / 2.2);
     1183                var mapwidth;
     1184                var mapheight;
     1185                var maxbubblewidth;
     1186                var maxbubbleheight;
     1187               
     1188                mapwidth = document.getElementById("simplemap");
     1189                if ( typeof mapwidth != 'undefined' ) {
     1190                    mapwidth = mapwidth.offsetWidth;
     1191                } else {
     1192                    if ( typeof map_width != 'undefined' ) {
     1193                        mapwidth = Number(stringFilter(map_width));                     
     1194                    } else {
     1195                        mapwidth = 400;
     1196                    }
     1197                }
     1198               
     1199                mapheight = document.getElementById("simplemap");
     1200                if ( typeof mapheight != 'undefined' ) {
     1201                    mapheight = mapheight.offsetHeight;
     1202                } else {
     1203                    if ( typeof map_height != 'undefined' ) {
     1204                        mapheight = Number(stringFilter(map_height));                       
     1205                    } else {
     1206                        mapheight = 200;
     1207                    }
     1208                }
     1209                maxbubblewidth = Math.round(mapwidth / 1.5);
     1210                maxbubbleheight = Math.round(mapheight / 2.2);
    11841211
    11851212                var fontsize = 12;
     
    12241251                    totalheight = maxbubbleheight;
    12251252                }
    1226 
    1227                 var html = '<div class="markertext" style="height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
     1253               
     1254                if ( isNaN( totalheight ) || totalheight > maxbubbleheight ) {
     1255                    totalheight = maxbubbleheight;
     1256                }
     1257
     1258                var html = '<div class="markertext" style="max-width: ' + maxbubblewidth + 'px; height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
    12281259                html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">';
    12291260
     
    13361367                google.maps.event.addListener(marker, 'click', function() {
    13371368                    clearInfoWindows();
     1369
     1370
     1371
     1372
     1373
     1374
     1375
     1376
     1377
     1378
     1379
     1380
    13381381                    var infowindow = new google.maps.InfoWindow({
    1339                         maxWidth: maxbubblewidth,
     1382                        maxWidth: width,
    13401383                        content: html
    1341                     });
     1384                    });
    13421385                    infowindow.open(map, marker);
    13431386                    infowindowsArray.push(infowindow);
  • simplemap/trunk/readme.txt

    r796763 r809073  
    66Requires at least: 2.8
    77Tested up to: 3.7.1
    8 Stable tag: 2.4.5
     8Stable tag: 2.4.
    99
    1010SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site.
     
    8282
    8383== Changelog ==
     84
     85
     86
     87
    8488
    8589= 2.4.5 =
  • simplemap/trunk/simplemap.php

    r638641 r809073  
    22/*
    33Plugin Name: SimpleMap
    4 Version: 2.4.5
     4Version: 2.4.
    55Plugin URI: http://simplemap-plugin.com/
    66Author: Michael Torbert
     
    2020
    2121    // Plugin Version Number
    22     define( 'SIMPLEMAP_VERSION', '2.4.5' );
     22    define( 'SIMPLEMAP_VERSION', '2.4.' );
    2323
    2424    if ( !defined( 'WP_PLUGIN_DIR' ) ) {
Note: See TracChangeset for help on using the changeset viewer.