Author Topic: New HB showroute implementation  (Read 32694 times)

0 Members and 1 Guest are viewing this topic.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4422
  • Last Login:November 30, 2024, 09:39:17 am
  • I like C++
Re: New HB showroute implementation
« Reply #15 on: June 21, 2020, 11:04:57 pm »
Screenshot of a DISCONNECTED_ROUTE error:
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #16 on: June 22, 2020, 03:11:56 pm »
Marker popups now have links to intersecting/connected routes that should be the same as what we have in the production HB code.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #17 on: June 22, 2020, 04:56:41 pm »
I made a few minor fixes and enhancements here and there this afternoon, and then added some copy-to-clipboard functionality.

So like with the new Mapview a little while ago, I would like some help with testing, to make sure the new showroute on tmtest is still doing everything the old HB version of the same did for you, as well as get any additional comments/suggestions/problem reports about the new functionality.

I'm hopeful that the .list Entry Toolbox functionality (which I am going to leave with only segment-based selections, at least until after the initial version goes live) will be really helpful for new users, and even for experienced users who have been baffled over the years by beltways.

I'd like to merge this into the master branch and install it on the main site before I move on to other things, so if our regulars could take a look sooner rather than later, that would be appreciated.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4863
  • Last Login:Today at 12:15:33 pm
Re: New HB showroute implementation
« Reply #18 on: June 23, 2020, 03:22:00 am »
It happens to me quite often that the "Processing Route Stats Data..." messages doesn't disappear. I jumped from small routes of about 10..20 wps to other small routes in Norway by using the intersecting routes link.

When I click on the intersecting routes link, the map is first loaded for Siena and then moved to the correct location. It doesn't happen with the old HB version. Loading times for jumping between intersecting routes are smaller with the old version.

When clicking on a wp on the wp list table, the map was centered with the old version but isn't with the new one.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #19 on: June 23, 2020, 08:57:21 am »
It happens to me quite often that the "Processing Route Stats Data..." messages doesn't disappear. I jumped from small routes of about 10..20 wps to other small routes in Norway by using the intersecting routes link.

There's a timing issue there that I will resolve, hopefully today.

Quote
When I click on the intersecting routes link, the map is first loaded for Siena and then moved to the correct location. It doesn't happen with the old HB version. Loading times for jumping between intersecting routes are smaller with the old version.

For any showroute load, it shows the default map location until the data is loaded, then fits the map bounds to the data.  This is because the DB reads for almost everything have moved from PHP on page load to PHP in AJAX calls, so the initial page shows up (with the default map) while data is loading.  I'd expect overall loading times to be similar, since it's pretty much the same data, but I'm surprised that the new one is slower in the end given that we're no longer transferring and executing a giant chunk of JS code but instead getting only the data.  Maybe the conversion to JSON and back takes more time than I think.

Quote
When clicking on a wp on the wp list table, the map was centered with the old version but isn't with the new one.

Do we want it to center?  I can do that if that's the preference.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4863
  • Last Login:Today at 12:15:33 pm
Re: New HB showroute implementation
« Reply #20 on: June 23, 2020, 10:52:05 am »
When clicking on a wp on the wp list table, the map was centered with the old version but isn't with the new one.

Do we want it to center?  I can do that if that's the preference.

I think so!

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #21 on: June 23, 2020, 11:36:47 am »
It happens to me quite often that the "Processing Route Stats Data..." messages doesn't disappear. I jumped from small routes of about 10..20 wps to other small routes in Norway by using the intersecting routes link.

There's a timing issue there that I will resolve, hopefully today.

I think I've fixed this, please let me know if you encounter a message that doesn't go away.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4422
  • Last Login:November 30, 2024, 09:39:17 am
  • I like C++
Re: New HB showroute implementation
« Reply #22 on: June 23, 2020, 02:32:25 pm »
Do we want it to center?  I can do that if that's the preference.
I think so!
Seconded.
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4863
  • Last Login:Today at 12:15:33 pm
Re: New HB showroute implementation
« Reply #23 on: June 23, 2020, 02:48:38 pm »
It happens to me quite often that the "Processing Route Stats Data..." messages doesn't disappear. I jumped from small routes of about 10..20 wps to other small routes in Norway by using the intersecting routes link.

There's a timing issue there that I will resolve, hopefully today.

I think I've fixed this, please let me know if you encounter a message that doesn't go away.

I think it happened in about 20..30% of the cases. I made about 30 tests now and it never happened again!

About centering at wp: It happend to me now that the route was not on the screen at all. Many cases where it was on the margin(?) but once the route was only on the visible screen when I zoomed out three times.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #24 on: June 23, 2020, 05:06:09 pm »
Centering on all marker popups is now in place.  I did not do the same for segment popups, since I think all the bouncing around could be distracting for users trying to mark segments for .list entry generation.

Anything else missing or need fixing before this goes live on the main site?

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #25 on: June 24, 2020, 09:17:08 am »
This is live on the main site.  Please report problems here or in a GitHub Issue.

Offline rickmastfan67

  • TM Collaborator (A)
  • Hero Member
  • *****
  • Posts: 2066
  • Gender: Male
  • Last Login:Today at 04:52:27 am
Re: New HB showroute implementation
« Reply #26 on: June 24, 2020, 10:17:31 am »
This is live on the main site.  Please report problems here or in a GitHub Issue.

Links need to be updated on the 'updates' page so we can 'bypass' the "Please continue with the new showroute page for this route" message and go to the new page right off the bat.
https://travelmapping.net/devel/updates.php

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #27 on: June 24, 2020, 12:11:30 pm »
Thanks.  Just fixed this and the datacheck.php links.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Today at 08:50:39 am
Re: New HB showroute implementation
« Reply #28 on: June 24, 2020, 05:27:58 pm »
Would you prefer the "View Connected Route" link on chopped route pages in the new showroute.php to behave as it does now, where you are taken to an overview of the entire connected route, or would you prefer to have it link to the connected route with the current position and zoom level?

The current behavior is nice, because the link is static, and the functionality already works.  It's easy to copy the link without following it, as there's no JS involved in it.

The other behavior would be nice for long routes, where you might be interested in seeing visible parts in neighboring regions without having to zoom your way back down.  Plus, if you really do want the overview, Zoom to Fit is a single additional click to get it.  It would also make this link consistent in behavior to the Connected/Intersecting Routes links in the popups.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4863
  • Last Login:Today at 12:15:33 pm
Re: New HB showroute implementation
« Reply #29 on: June 25, 2020, 09:52:05 am »