• Resolved swldwa

    (@swldwa)


    I help to maintain a website that has a database of walking routes in South Wales that used OS OpenSpace to display routes on maps. Your excellent OS DataHub Maps plugin will allow me to replicate most of the functionality that was lost when OpenSpace was withdrawn and which we never got around to replacing with OS DataHub. However there are a couple of features that it lacks that I need to workaround or that you may consider adding.

    Before I mention them there is a minor niggle. I have always used my mouse wheel on my desktop PC to zoom in/out on a map and default behaviour is to grey out the map with a message to use control + scroll to zoom. I was glad to see that could be removed by a setting called ‘Enable Gesture Handling’. However when switching to Full Screen then back to the web page the greying out is restored – it appears that the setting is ignored when switching back to the web page. It would be nice if that could be fixed.

    The first item on my wish list is the ability to display a custom marker, we used to use our distinctive club logo which stands out really well on a map display.

    The second item is to do with the popup that appears when clicking on a marker. In OS OpenSpace we used this to popup a window where a list of routes were displayed that started at the map location. The popup window and font size could be specified and was automatically made scrollable when the list of routes was too long. Experimenting with your plugin I found that the font size is small and the popup size adjusts to the length of the list until it is too long for the screen when it is truncated. Have you any suggestions on how I can work around this? I did think of displaying the list of routes in a separate web page but I suppose that would involve intercepting the mouse click.

    On looking through the posts on the plugin’s forum I get the impression that map display is handled by the Leaflet plugin – is that the case and would adding the above features involve using or modifying Leaflet?

    Anyway many thanks for a superb plugin that we’ll definitely use once I sort out the above problems. You can see an example of use on our staging website at https://www.swldwa.uk/wp/?page_id=4201&walkid=755

    Gerry Jackson

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author skirridsystems

    (@skirridsystems)

    Thanks for the bug report. I have a fix for that which will appear shortly in the next plugin release. I recommend that you set Gesture Handling to Mobile-Only, otherwise mobile users will have a hard time scrolling your web pages.

    The popup problem is a mix of two things: the fonts, spacing, etc you can set using CSS. I’ve updated the doc page to show this:

    https://skirridsystems.co.uk/os-datahub-maps/custom-css/

    Making the popup a limited height needs to be done in the Javascript. There’s a Leaflet option for max-height, beyond which you get scroll bars. I will need to experiment with this a little, but at a minimum I should be able to restrict to the map height or screen height.

    Regarding the custom marker, this is possible in principle, but you need to set quite a few values to do it, so I would need to work out an appropriate way of doing that. That one may take a little longer.

    Thread Starter swldwa

    (@swldwa)

    Thank you for your response and updating the CSS part of the documentation. Yes I had set the Gesture Handling to Mobile-Only as I thought it would probably be needed.

    Restricting the popup height to map or screen height with scroll bars appearing sounds like it would work well for our site as we have some starting point markers for several routes, I think there’s one marker that has 25 walking routes associated with it.

    Thanks for offering to think about a custom marker but that is a nice thing to have but not at all essential. The marker we used is a little bigger than the ones used in the plugin at 40×77 pixels (wxh) but that could be reduced a bit if necessary.

    Plugin Author skirridsystems

    (@skirridsystems)

    Gesture handling and popup height fixed in 1.7.0

    Thread Starter swldwa

    (@swldwa)

    Great, thanks very much. Gesture handling works fine. I’ll try the popup height code in the next few days – too busy at present

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Minor niggle and wish list’ is closed to new replies.