Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Last active August 29, 2015 14:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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