Skip to content

Instantly share code, notes, and snippets.

@Stiofan
Last active May 25, 2019 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Stiofan/2ddaebd31553f476bc59 to your computer and use it in GitHub Desktop.
Save Stiofan/2ddaebd31553f476bc59 to your computer and use it in GitHub Desktop.
GeoDirectory Change Map Options
<?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