• Hi,

    I am making a map of only one city.

    In the overall map page, people can do searches by categories with checkboxes.

    The field “Your location” seems to be compulsory, but there is no need for it, and it would be stupid to make the users have to write the only city the map and website is about before they can search with choosing the categories.

    How can I remove the Your location? And why is it even compulsory, if I use the auto-locate?

    I tried to search about this, but did not find the answer.

    Thanks a lot for a great plugin, I am sure this will be great :).

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

    (@tijmensmit)

    Auto locate can fail, and the distance needs to be calculated from somewhere if it fails. It’s also used when the option to load the locations on page load is enabled to again calculate the distance.

    Search by categories alone won’t work unless you change the code. The returned locations are always collected in the db based on the passed coordinates, which category names itself don’t have.

    If you want to hide the start marker, then this article explains how to do that.

    Thread Starter haije

    (@haije)

    Hi,

    thanks for the quick answer. This is bad for my concept, oh no…

    The load of locations on page load already works without the user writing the location by hand.

    Also if the autolocate is off, and I have given a theoretical starting point in the center of the city (as I did) in the settings, then the distances are not true at all from the user’s real location. When the starting point is given in the settings, I think then the user should not need to write it again. And if you only give a town as location, the distances are not correct. And it already gives instructions (and thus distance) from the starting point from the settings, not from the user input?

    So for now we have 2 locations already in the code: the autolocate or the starting point from the settings. It would be great if the category search could work with them, I think, without asking the user to write anything all the time they want to search for places. It is not user friendly.

    Any chances you will make an update for the code?

    Or could I edit the code somehow? I have been working with this quite a lot already, I love the plugin, but this makes it quite unusable for me… Because the users will use the map also with laptop (the autolocate often not working correctly) plus they will use it at home anywhere, before they travel to this destination city.

    Thanks in advance.

    Thread Starter haije

    (@haije)

    Yes, the autoload both loads the locations AND calculates distances, so the user input is not needed now.

    Thread Starter haije

    (@haije)

    Or could I give the content of “your location” in the code to the parameter and then hide the field from the page?

    Actually would be great, if the default for the “your location” would be given and visible (like “Town-name”) in the search area and the user could change it, if they like.

    • This reply was modified 6 years, 2 months ago by haije.
    Thread Starter haije

    (@haije)

    (Sorry to post so much, my mind is just working on this so much…)

    Actually the phrase “Your location” is misleading. It should be “Search location” to be clear. And then it makes sense also, if I am now in New York, going to have a holiday in Malibu, so I of course then must tell the plugin which area I want to make searches from.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You can change the “Your Location” text to whatever you want on the labels section.

    The category search simple can’t work since it requires coordinates at the moment.

    This won’t be changed until the next major update.

    The user input is also required, which can be removed in the JS file only at the moment, or simply hide it and set a default val in a custom template.

    Then you will still need to change the SQL code with these filters.

    Thread Starter haije

    (@haije)

    Hi,

    thanks Tijmen. I will try to work it out with this version.

    Can we see somewhere what plans you have for the next main update? ?? And it’s timetable?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove (the compulsory) “Your location”’ is closed to new replies.