Modify Initial zoom in shortcode_defaults
-
Hi,
I have updated the plugin and now the maps shown with shortcode appear with the zoom to 1 the maximum. I have a filter adjusting the default parameters:add_filter( ‘wpsl_map_shortcode_defaults’, ‘custom_map_shortcode_defaults’ );
function custom_map_shortcode_defaults( $shortcode_defaults ) {
$shortcode_defaults[‘width’] = 800;
$shortcode_defaults[‘height’] = 500;
$shortcode_defaults[‘zoom’] = 6;return $shortcode_defaults;
}Before this filter worked but specifically with the zoom does not modify it.
Any solution to this?Thank.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Modify Initial zoom in shortcode_defaults’ is closed to new replies.