Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 30, 2012 @ 12:18
    Matt Brailsford
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 30, 2012 @ 12:23
    Matt Brailsford
    0

    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

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 06, 2012 @ 11:27
    Lee Kelleher
    0

    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.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Nov 06, 2012 @ 11:37
    Matt Brailsford
    1

    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

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 06, 2012 @ 11:48
    Lee Kelleher
    0

    Sounds ace.  As always, all contributions are welcome! :-)

Please Sign in or register to post replies

Write your reply to:

Draft