Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Prevents the map from showing the Map|Satellite picker at the top of the map in GravityView
- *
- * @param array $options Array of options to be passed to the Google map via JS
- *
- * @return array
- */
- add_filter( 'gravityview/maps/render/options', function( $options = array() ) {
- $options['mapTypeControl'] = false;
- return $options;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement