Hi,
Preventing updates to the address while we fine-tune pin locations is critical in our application, and the ability to disable those updates works fine when moving the pin. But if you drag the map, the pin re-centers and updates the address.
The fix is to use the same logic to prevent the update on the map movement; in geodirectory/geodirectory-functions/map-functions/map_on_add_listing_page.php, around line 563:
google.maps.event.addListener($.goMap.map, 'dragend', function () {
// updateMarkerStatus('Drag ended');
<?php if($auto_change_address_fields_pin_move){?>
geocodePosition(baseMarker.getPosition());
centerMarker();
updateMarkerPosition(baseMarker.getPosition());
<?php }?>
});
I suppose the entire code to add the listener to this event could be wrapped instead. Anyways, there you have it; problem solved.
Thanks for all the work you folks have been putting into this system 🙂