RoyH

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Fix centre and zoom level of map #52835

    RoyH
    Member

    Hi Dylan,

    I tried to leave you a response last week but it has not appeared on this page. Anyway – yes that issue is addressed, thank you for your help.

    I have changed one thing, however: I was messing around with the GET variables, and discovered that if I linked to a particular marker, when the map loaded, it zoomed out and centred as per the script, rather than on the marker I wanted to feature via the GET variables.

    So, what I have done is to remove the script from the front end page header, and I have created two map pages: one with the script embedded in the body of the html; and another without the script embedded.

    That way I can launch the map at full-size on the page with the embedded script, but if I want to open the map zoomed in and centred on a marker, I use the page without the script. The two pages are virtually indistinguishable apart from the URL, and that solution seems to work fine.

    Thanks again,

    RoyH

    in reply to: Fix centre and zoom level of map #52538

    RoyH
    Member

    Hi Dylan,

    I just tried the backend fix again, and this time it worked. For the life of me, I can’t tell you what I did differently – the co-ordinates you gave me are in the middle of the Egyptian desert, by the way – but it now resets the map back to our preferred view on saving.

    Many thanks, no doubt I’ll be back with more questions fairly soon.

    RoyH

    in reply to: Fix centre and zoom level of map #52503

    RoyH
    Member

    Hi Dylan,

    Thank you! It all seems to be working perfectly. I could not get the code to work on the back-end, but it worked brilliantly on the front-end through Maps > Settings > Advanced > Custom JS.

    Thanks again,

    RoyH

    in reply to: Fix centre and zoom level of map #52088

    RoyH
    Member

    Thanks for your prompt response, Dylan. I did have a look at that setting, but it doesn’t really do what I want.

    I do want front-end users to be able to move and zoom around the map, but the initial view we want to present is always going to be the same, but every time I edit a portion of the map, it changes the centre point and zoom settings, and I am finding it difficult trying to line up the back-end map accurately every time before I save it.

    Is there a way I can make the centre point and zoom level effectively ‘read only’ and not change when the rest of the map is edited?

    Thanks again,

    RoyH

Viewing 4 posts - 1 through 4 (of 4 total)