Hi Tijmen,
Thanks for the response.. I’ve inserted the code you can see below. The map is correctly hidden when loading the page however when the map shows its very small and takes up 1/10 of its original size for some reason, any idea? Thanks Image here
function initializeGmap()
function initializeGmap() {$( "#wpsl-gmap").hide();
var myOptions, zoomControlPosition, zoomControlStyle, latLng, zoomLevel, mapType,
streetViewVisible = ( wpslSettings.streetView == 1 ) ? true : false;
/* If no zoom location is defined, we show the entire world */
if ( wpslSettings.zoomLatlng !== "" ) {
latLng = wpslSettings.zoomLatlng.split( ',' );
startLatLng = new google.maps.LatLng( latLng[0], latLng[1] );
zoomLevel = parseInt( wpslSettings.zoomLevel );
} else {
startLatLng = new google.maps.LatLng( 0,0 );
zoomLevel = 1;
}
$( “#wpsl-search-btn” ).on( “click”, function()
/* Handle clicks on the search button */
$( "#wpsl-search-btn" ).on ( "click", function() {$( "#wpsl-gmap").show();
var keepStartMarker = false;
$( "#wpsl-search-input" ).removeClass();
if ( !$( "#wpsl-search-input" ).val() ) {
$( "#wpsl-search-input" ).addClass( "wpsl-error" ).focus();
} else {
$( "#wpsl-result-list ul" ).empty();
$( "#wpsl-stores" ).show();
$( ".wpsl-direction-before, .wpsl-direction-after" ).remove();
$( "#wpsl-direction-details" ).hide();
resetMap = false;
deleteOverlays( keepStartMarker );
deleteStartMarker();
codeAddress();
}
});