Travel Mapping

User Discussions => Other Discussion => Topic started by: Spinoza on July 13, 2020, 09:12:30 am

Title: Problem with visualization
Post by: Spinoza on July 13, 2020, 09:12:30 am
Hi,

I'm experiencing problems in the visualization of my trips. When I select myself (Spinoza) and map of, say, Italy, the map actually shows Albany, NY and is stuck on "Loading data...". This is with both latest Chrome and Edge.

Is it just me or are others having the same problems?
Title: Re: Problem with visualization
Post by: Jim on July 13, 2020, 10:11:06 am
Haven't heard of problems.  But make sure Javascript is enabled for travelmapping.net in your browser.
Title: Re: Problem with visualization
Post by: yakra on July 13, 2020, 10:50:59 am
I assume only mapview.php is broken, and
https://travelmapping.net/user/region.php?units=miles&u=spinoza&rg=ITA
https://travelmapping.net/user/system.php?units=miles&u=spinoza&sys=itaa
work fine?
Title: Re: Problem with visualization
Post by: Jim on July 13, 2020, 01:10:45 pm
I've reproduced the bug and I'll see what I can figure out.  I'm guessing it's a case that my code did not anticipate within the data in ITA that does not occur in the places I used in my testing.

https://github.com/TravelMapping/Web/issues/527
Title: Re: Problem with visualization
Post by: Jim on July 13, 2020, 02:03:38 pm
Quick update: Mapview can be broken by VISIBLE_HIDDEN_COLOC errors that get marked as false positives and stay in the data.  I think the one that causes the failure here should be fixed in the data, but unless we can get rid of all VISIBLE_HIDDEN_COLOC errors (which I continue to support strongly), Mapview code will need to be modified to handle this.
Title: Re: Problem with visualization
Post by: yakra on July 13, 2020, 03:11:56 pm
unless we can get rid of all VISIBLE_HIDDEN_COLOC errors (which I continue to support strongly),
IMO, VISIBLE_HIDDEN_COLOC should stay -- although it no longer exists, there's the canonical example of Future I-22 ending at an unopened (and thus hidden) interchange on I-269.
The TX (https://travelmapping.net/devel/datacheck.php?sys=null&showmarked=on&show=VISIBLE_HIDDEN_COLOC&rg=TX) & NY (https://travelmapping.net/devel/datacheck.php?sys=null&showmarked=on&show=VISIBLE_HIDDEN_COLOC&rg=NY) examples, I added in order to enable Intersecting/Concurrent Routes for the routes with the visible point.
In these cases, concurrencies shouldn't be affected; the points should be visible on all routes comprising one incident edge, and hidden on all routes comprising another incident edge.
One option is to restrict cases where these are reported, by examining the visibility of the point on each concurrent route on each incident simple edge.
I'll have a look at the siteupdate code shortly, to refresh myself on when & how VISIBLE_HIDDEN_COLOC is flagged, and the surrounding context.

Mapview code will need to be modified to handle this.
I support this too, of course. Whether or not VISIBLE_HIDDEN_COLOC detection is ultimately changed, this would be the more robust solution if/when new VISIBLE_HIDDEN_COLOC errors are introduced.
Looks like Jim already has this in the works though. (https://github.com/TravelMapping/Web/issues/527#issuecomment-657726438)
Title: Re: Problem with visualization
Post by: yakra on July 13, 2020, 03:41:06 pm
One option is to restrict cases where these are reported, by examining the visibility of the point on each concurrent route on each incident simple edge.
I'll have a look at the siteupdate code shortly, to refresh myself on when & how VISIBLE_HIDDEN_COLOC is flagged, and the surrounding context.
I gave some thought to doing this, by moving VISIBLE_HIDDEN_COLOC detection into the edge-collapsing routine.
It would still flag cases like the north end of US377 (https://travelmapping.net/hb/showroute.php?r=ok.us377&lat=35.757936&lon=-96.662779&zoom=17). While this specific example may be debatable in terms of 1PPI, IMO it still makes sense to allow marking VISIBLE_HIDDEN_COLOC errors as FP.

I no longer support making changes to VISIBLE_HIDDEN_COLOC detection, as this risks failing to flag cases that contributors would legitimately want to examine & potentially fix, and be more computationally intensive in the process.
Title: Re: Problem with visualization
Post by: michih on July 13, 2020, 03:54:24 pm
I checked all cases with VISIBLE_HIDDEN_COLOC errors (marked FP or not) and mapview only crashes with ITA (https://travelmapping.net/user/mapview.php?units=miles&u=yakra&rg=ITA) and CHN-GD (https://travelmapping.net/user/mapview.php?units=miles&u=yakra&rg=CHN-GD) for all users!
Title: Re: Problem with visualization
Post by: Jim on July 17, 2020, 10:03:20 pm
I've put the workaround onto the production server, which I think means things will load, but could have labels from a concurrent route's waypoints instead of the primary route in popup windows in a few cases.