Last active
August 29, 2015 14:26
-
-
Save zackkatz/635638dc761f6af8920f to your computer and use it in GitHub Desktop.
GravityView Maps - Prevent Icon Bounce on hover
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 | |
add_filter( 'gravityview/maps/render/options', 'gv_maps_prevent_icon_bounce' ); | |
/** | |
* Disable the icons from bouncing when hovering over entries | |
* | |
* Requires GravityView Maps 1.0.3-beta or newer. | |
* | |
* @param array $map_options Full map configuration array used to generate GV_MAPS javascript object | |
* @return array Modified map options | |
*/ | |
function gv_maps_prevent_icon_bounce( $map_options ) { | |
$map_options['icon_bounce'] = false; | |
return $map_options; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment