Autozoom When Click “Set Address on Map”
-
Hi guys,
Is there a way to autozoom map when a person clicks “set address on map” button while adding new listing? So that they could check if the pin is placed correctly. Unfortunately many users don’t zoom in and check assuming that the pin is set where it is needed. But in many cases it’s not.
I’ve tried adding the default zoom level with this snippet…
add_action(‘geodir_address_extra_listing_fields’, function( $cf ) {
global $gd_post,$mapzoom;
if(empty($gd_post->mapzoom)){
$mapzoom = 16;
}
});But the map zooms out automatically once the users changes the default country, so this doesn’t help unfortunately.
Or maybe there is a snippet that could force minimum map zoom level on ‘add listing page’?
That would be perfect to solve this problem.
Thank you.
- The topic ‘Autozoom When Click “Set Address on Map”’ is closed to new replies.