Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Hiding the address doesn’t make much sense to me. If you search for a location it will still show them marker on the map, giving away the exact location? The same with the ‘directions’ links, if a users click it then it would also see the exact location.

    Thread Starter meridian62

    (@meridian62)

    I should have clarified the reasoning

    This is a recruitment website and I do not want to give the exact location as my competition would then know the identity of my client company. I wish to give an approximate location based on a postal code so the job seeker may see an approximate distance to the position but not mislead with a visible address.

    https://www.meridiansearch.ca/geo-locate/

    As you may see the address is not required as part of the information but rather a generalized locale is all that is required

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I understand why you want it, but I’m not sure how to make it return an approximate location / distance based on a postal code.

    You could sort of randomize it, so that it places the marker ‘near’ the actual location, but that would require some code changes, and I don’t really have time to research that.

    If you want to complete remove the address and direction links, then open the /js/wpsl-gmap.js from the store locator folder, search for the line below, scroll to the right and remove ‘address’, ‘city’ etc.

    html = "<li data-store-id='" + id + "'>

    Also search for ‘function createInfoWindowHtml’ and look for a line that contains the following.

    infoWindowData.address

    You can remove it, together with infoWindowData.city.

    Hi meridian62,

    If you just publish the city the marker will find the “center of the city” and place it there.
    It will solve that issue? with this solution the seekers will only know the city of the company and not the exact location.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fields to Display’ is closed to new replies.