Travel Mapping

User Discussions => Other Discussion => Topic started by: si404 on May 31, 2017, 04:44:44 am

Title: Odd bug (France E80)
Post by: si404 on May 31, 2017, 04:44:44 am
So the new A9 opening yesterday (and today) tweaked the route of E80. But when I open it in the browser, it's very weird.

The map goes to Siena College, Albany (which is, I believe, the default). But the points are loaded in the sidebar and clicking on them takes one to the correct place. There is no trace, nor any markers.

http://tm.teresco.org/hb/index.php?units=km&u=si404&r=fra.e80

It is drawn on the stats page however
http://tm.teresco.org/user/mapview.php?units=miles&u=si404&rg=FRA&sys=eure

I've checked the Highway Data end - it's not that that's creating the problem.
Title: Re: Odd bug (France E80)
Post by: Jim on May 31, 2017, 08:31:58 am
It's the double quotes in the city fields again.  That view of France is loading up ita.a010, which has a city field in double quotes.  This causes a syntax error in the generated JS code.  My preferred solution here is to remove the double quotes from .csv files unless there's a specific need that they be kept.
Title: Re: Odd bug (France E80)
Post by: Jim on May 31, 2017, 10:33:11 am
These files have double quotes in the City field:

gbnam.csv
gbnam_con.csv
gbnm.csv
gbnm_con.csv
itaa.csv
itaa_con.csv
roudn.csv
roudn_con.csv

I can easily enough remove them but want to make sure they're not needed for some reason I'm not aware of.
Title: Re: Odd bug (France E80)
Post by: Jim on May 31, 2017, 09:02:40 pm
It looks like removing the double quotes has fixed this.