Your Time:
Our Time:
← Back to discussions

Missing establishment autocomplete type in admin_map.js

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 1 reply, 2 voices, and was last updated 2 years, 5 months ago by Fem.

  • 2024-03-26 at 7:02 pm
    Support Expired
    #28907
    adamjoesbury
    Participant
    • Topics: 1
    • Replies: 0
    • Total posts: 1
    • Post count: 0

    There appears to be an error in storeup-niche/js/admin_map.js.

    In the initialize function, it adds ‘establishment’ to the autocomplete types:

    function initialize() {
    var search_input_id = document.getElementById(‘iva_loc_address’);
    var autocomplete = new google.maps.places.Autocomplete( search_input_id,{ types: [‘geocode’, ‘establishment’] });
    }

    But later in the file, it creates autocomplete without the establishment type:

    var autocomplete = new google.maps.places.Autocomplete(input, {
    types: [“geocode”]
    });

    When updating the address of a location, setting the address to a prompted establishment, it does not correctly geolocate the longitude and latitude

    2024-03-27 at 2:35 pm
    #28908
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    We will take a closer look at it and update the code as soon as possible

You must be logged in to reply to this topic.