Multiple locations on the map in a listing

This topic contains 23 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #387355

    S
    Expired Member
    Post count: 62

    Stiofan, thank you so much! It worked nicely now.
    Will try to implement multiple waypoints. Likely to encounter some problems. Update you again.

    #387454

    S
    Expired Member
    Post count: 62

    I managed to implement it. Thank you.

    I do have another question though.
    I already set up for example 10 custom fields for 10 waypoints but I do not want all 10 of them to show up in the add listing page. I want to either:
    1) add another custom field that asks how many waypoints they have and then based on the number they provide, that many waypoints will show up in the add listing page.
    2) Only waypoint 1 shows up at first. I have a button called “add more waypoint”, upon clicking on which, one more waypoint custom field will show up. This keeps going until the maximum of 10 waypoints.

    Which method do you think is easier to implement and can you give some advice on how to do it.

    #387494

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You could just use the one field and ask them to seperate it with something, then u can manipulate it later, something like: 123,321|456,654|789,987

    You could do it all fancy but you would need a dev, its not hard but you need to know what you are doing.

    Stiofan

    #387940

    S
    Expired Member
    Post count: 62

    ok, thank you for the advice.

    I have another question:
    Right now, under the map in the map tab, I can see the starting location to the left of the “Get direction” button. I would like to show the waypoints as well after the starting location. How can I do that? I know how to write the function to display the waypoints but I don’t know how I can display them at the location I want, which is in the map tab after the starting location.

    #387996

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You would have to use JS to insert it somewhere.

    Stiofan

    #388015

    S
    Expired Member
    Post count: 62

    Is there a geodirectory action or filter codex that allows me to execute the JS function in the map tab after the get direction button?

    #388132

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The above question is a bit vague, if you explain what you are trying to do i’ll explain the best option.

    Stiofan

    #388558

    S
    Expired Member
    Post count: 62

    I did not understand your earlier response: “You would have to use JS to insert it somewhere”, so I was actually still trying to figure out how to have the waypoint locations show up in the map tab under the map, preferably after the starting location. I was thinking maybe there is a codex called “XXX” that allows me to implement my own JS function that displays the waypoint locations in the map tab. So just want to know if there is such a codex. e.g. add_action(‘XXX’,’add_js_functions’);

    If this is not the way to do it, can you explain a bit more how to do what I want to achieve. I am not sure what you meant by “use JS to insert it somewhere”. Do I use the code snippet? After I write the JS function to display the waypoint, what do I do to implement that function at my desired location (in the map tab under the map)?

    #388669

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have tried to help you as much as i can without building the thing for you.
    I am happy to answer questions on how to use filters etc but not how to build custom functionality, if you can’t understand it please hire a dev, i will be happy to answer specific questions.

    Thanks,

    Stiofan

Viewing 9 posts - 16 through 24 (of 24 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket