Changeset 809073
- Timestamp:
- 11/22/2013 10:15:56 PM (11 years ago)
- Location:
- simplemap
- Files:
-
- 1 added
- 34 edited
- 11 copied
Legend:
- Unmodified
- Added
- Removed
-
simplemap/tags/2.4.6/classes/simplemap.php
r638641 r809073 1140 1140 map.setZoom(parseInt(zoom_level)); 1141 1141 } 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 }); 1143 1147 }); 1144 1148 } … … 1177 1181 markersArray.push(marker); 1178 1182 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); 1184 1211 1185 1212 var fontsize = 12; … … 1224 1251 totalheight = maxbubbleheight; 1225 1252 } 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;">'; 1228 1259 html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">'; 1229 1260 … … 1336 1367 google.maps.event.addListener(marker, 'click', function() { 1337 1368 clearInfoWindows(); 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1338 1381 var infowindow = new google.maps.InfoWindow({ 1339 maxWidth: maxbubblewidth,1382 maxWidth: width, 1340 1383 content: html 1341 }); 1384 }); 1342 1385 infowindow.open(map, marker); 1343 1386 infowindowsArray.push(infowindow); -
simplemap/tags/2.4.6/readme.txt
r809035 r809073 6 6 Requires at least: 2.8 7 7 Tested up to: 3.7.1 8 Stable tag: 2.4. 58 Stable tag: 2.4. 9 9 10 10 SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site. … … 82 82 83 83 == Changelog == 84 85 86 87 84 88 85 89 = 2.4.5 = -
simplemap/tags/2.4.6/simplemap.php
r809035 r809073 2 2 /* 3 3 Plugin Name: SimpleMap 4 Version: 2.4. 54 Version: 2.4. 5 5 Plugin URI: http://simplemap-plugin.com/ 6 6 Author: Michael Torbert … … 20 20 21 21 // Plugin Version Number 22 define( 'SIMPLEMAP_VERSION', '2.4. 5' );22 define( 'SIMPLEMAP_VERSION', '2.4.' ); 23 23 24 24 if ( !defined( 'WP_PLUGIN_DIR' ) ) { -
simplemap/trunk/classes/simplemap.php
r638641 r809073 1140 1140 map.setZoom(parseInt(zoom_level)); 1141 1141 } 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 }); 1143 1147 }); 1144 1148 } … … 1177 1181 markersArray.push(marker); 1178 1182 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); 1184 1211 1185 1212 var fontsize = 12; … … 1224 1251 totalheight = maxbubbleheight; 1225 1252 } 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;">'; 1228 1259 html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">'; 1229 1260 … … 1336 1367 google.maps.event.addListener(marker, 'click', function() { 1337 1368 clearInfoWindows(); 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1338 1381 var infowindow = new google.maps.InfoWindow({ 1339 maxWidth: maxbubblewidth,1382 maxWidth: width, 1340 1383 content: html 1341 }); 1384 }); 1342 1385 infowindow.open(map, marker); 1343 1386 infowindowsArray.push(infowindow); -
simplemap/trunk/readme.txt
r796763 r809073 6 6 Requires at least: 2.8 7 7 Tested up to: 3.7.1 8 Stable tag: 2.4. 58 Stable tag: 2.4. 9 9 10 10 SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site. … … 82 82 83 83 == Changelog == 84 85 86 87 84 88 85 89 = 2.4.5 = -
simplemap/trunk/simplemap.php
r638641 r809073 2 2 /* 3 3 Plugin Name: SimpleMap 4 Version: 2.4. 54 Version: 2.4. 5 5 Plugin URI: http://simplemap-plugin.com/ 6 6 Author: Michael Torbert … … 20 20 21 21 // Plugin Version Number 22 define( 'SIMPLEMAP_VERSION', '2.4. 5' );22 define( 'SIMPLEMAP_VERSION', '2.4.' ); 23 23 24 24 if ( !defined( 'WP_PLUGIN_DIR' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.