Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackkatz/635638dc761f6af8920f to your computer and use it in GitHub Desktop.
Save zackkatz/635638dc761f6af8920f to your computer and use it in GitHub Desktop.
GravityView Maps - Prevent Icon Bounce on hover
<?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