GeoDirectory Support"Disable move map pin from changing address fields" enhancement – GeoDirectory Support https://wpgeodirectory.com/support/topic/disable-move-map-pin-from-changing-address-fields-enhancement/feed Thu, 05 Mar 2026 14:46:25 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/disable-move-map-pin-from-changing-address-fields-enhancement/#post-49347 <![CDATA["Disable move map pin from changing address fields" enhancement]]> https://wpgeodirectory.com/support/topic/disable-move-map-pin-from-changing-address-fields-enhancement/#post-49347 Fri, 14 Aug 2015 03:06:07 +0000 Rick Vandenberg 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 🙂

]]>
https://wpgeodirectory.com/support/topic/disable-move-map-pin-from-changing-address-fields-enhancement/#post-49358 <![CDATA[Reply To: "Disable move map pin from changing address fields" enhancement]]> https://wpgeodirectory.com/support/topic/disable-move-map-pin-from-changing-address-fields-enhancement/#post-49358 Fri, 14 Aug 2015 09:24:06 +0000 Stiofan O'Connor Hi Rick,

Thanks for spotting this, i have wrapped it to only not change the address on map drag but keep the centre of the marker to the screen. This change will be in the next version.

I appreciate you pointing this out, it’s good to have you on board 🙂

Thanks,

Stiofan

]]>