Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Always use default Map Zoom Level #273

Open
chrisbergr opened this issue May 14, 2023 · 0 comments
Open

Feature Request: Always use default Map Zoom Level #273

chrisbergr opened this issue May 14, 2023 · 0 comments

Comments

@chrisbergr
Copy link

chrisbergr commented May 14, 2023

On my website I always want to display my static map images with a zoom level of 14.

A possible solution would be at line 160 in /includes/class-location-plugins.php

$always_default_zoom = apply_filters( 'simple_location_always_default_zoom', false );
if ( ! $always_default_zoom ) {
    [...]
} else {
    $default_zoom = get_option( ... );
    set_post_geodata( $args['ID'], 'zoom', $default_zoom  );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant