Created
December 23, 2015 09:07
-
-
Save thierrypigot/34fa8cecc6d5dcfc905e to your computer and use it in GitHub Desktop.
Hook to change map controls for my Beaver plugin.https://github.com/thierrypigot/beaver-builder-googlemaps
This file contains hidden or 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
| function tpbbgmap_custom_map_controls( $controls ) { | |
| $controls['overviewMapControl'] = 'true'; | |
| $controls['rotateControl'] = 'true'; | |
| $controls['scaleControl'] = 'true'; | |
| $controls['scrollwheel'] = 'true'; | |
| $controls['width'] = '70%'; | |
| return $controls; | |
| } | |
| add_filter( 'bbgmap_map_controls', 'tpbbgmap_custom_map_controls' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment