Last active
May 25, 2019 02:36
-
-
Save Stiofan/2ddaebd31553f476bc59 to your computer and use it in GitHub Desktop.
GeoDirectory Change Map Options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Here we can chnage any map options, this example removes the buttns to chnage map view from satalite/road etc. | |
The filter works per map, you wil need to get the map ID from the source code "geodir_map_options_{$map_canvas_name}" | |
In the example below my map ID is "geodir_map_v3_home_map_3" | |
*/ | |
add_filter("geodir_map_options_geodir_map_v3_home_map_3","my_theme_change_map_options",10,1); | |
function my_theme_change_map_options($options){ | |
$options['mapTypeControl']=false; | |
return $options; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment