Description
Returns the Google Map for the given _post_code, _lat and _longThis is similar to using [bw_show_googlemap] to display a Google Map except we pass the values of _post_code, _lat and _long so it doesn't need to get them from oik options.
Usage
$string = bw_fields_get_google_map( $post_code, $lat, $long, $ID );Parameters
- $post_code
- ( string ) required –
- $lat
- ( string ) optional –
- $long
- ( string ) optional –
- $ID
- ( integer ) optional –
Returns
string Google MapSource
File name: oik-fields/includes/oik-fields-virtual-google-map.phpLines:
1 to 20 of 20
function bw_fields_get_google_map( $post_code, $lat=null, $long=null, $ID=null ) { //bw_trace2(); //bw_backtrace(); if ( is_numeric( $lat ) && is_numeric( $long ) ) { oik_require( "shortcodes/oik-googlemap.php" ); bw_gmap_map( null ); $google_map = bw_googlemap_v3( get_the_title( $ID ) , $lat , $long , $post_code , "100%" , "400px" ); } else { $google_map = null; } return( $google_map ); }View on GitHub
