Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.