I've just installed this on a fresh 4.9.1 install and the map loads fine, but when you position the marker and save, no value gets saved. Instead it just jumps back to the initial location. I'm guessing some JS should be setting the value in the greyed out field, but it never seems to get set. I can't see any JS errors or anything though, so just not sure why it's not working.
Cheers Matt. I agree that it is confusing, especially when there is a single location (from the search) ... makes more sense when there are multiple results.
TBH, the JS needs to be rewritten/refactored - I'm sure it could be a much smoother experience. (Not sure I'm the guy for that job though) ;-)
I've rewritten it for myself so that selection is made by clicking or moving a marker. If there is only one result, it auto selects it. If there is more than one, then it waits and whichever you click, becomes the selected one. You can of course click another marker, and that one will become the selected one.
I dunno if this is more straight forward or not, but it defo cuts out an extra step.
Another thing I added was the ability to add on a sufix to the search criteria. This is good for say, you only want to search within the UK, so you can append ", UK" to whatever the user searches for to make it more UK specific.
If I get the time, and people want it, I might clean it up and post it back, but otherwise it's quite specific to the project I'm working on at the moment.
Not saving value in 4.9.1
I've just installed this on a fresh 4.9.1 install and the map loads fine, but when you position the marker and save, no value gets saved. Instead it just jumps back to the initial location. I'm guessing some JS should be setting the value in the greyed out field, but it never seems to get set. I can't see any JS errors or anything though, so just not sure why it's not working.
Matt
Ahh, never mind, I thought it was meant to set the location on drag end, but seems you have to click the marker and select, "Use this location".
Matt
Cheers Matt. I agree that it is confusing, especially when there is a single location (from the search) ... makes more sense when there are multiple results.
TBH, the JS needs to be rewritten/refactored - I'm sure it could be a much smoother experience. (Not sure I'm the guy for that job though) ;-)
Cheers, Lee.
Hey Lee,
I've rewritten it for myself so that selection is made by clicking or moving a marker. If there is only one result, it auto selects it. If there is more than one, then it waits and whichever you click, becomes the selected one. You can of course click another marker, and that one will become the selected one.
I dunno if this is more straight forward or not, but it defo cuts out an extra step.
Another thing I added was the ability to add on a sufix to the search criteria. This is good for say, you only want to search within the UK, so you can append ", UK" to whatever the user searches for to make it more UK specific.
If I get the time, and people want it, I might clean it up and post it back, but otherwise it's quite specific to the project I'm working on at the moment.
Let me know.
Cheers
Matt
Sounds ace. As always, all contributions are welcome! :-)
is working on a reply...