Author Topic: Odd bug (France E80)  (Read 8683 times)

0 Members and 1 Guest are viewing this topic.

Offline si404

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2067
  • Last Login:Today at 12:54:41 am
Odd bug (France E80)
« 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.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Odd bug (France E80)
« Reply #1 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.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Odd bug (France E80)
« Reply #2 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.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Odd bug (France E80)
« Reply #3 on: May 31, 2017, 09:02:40 pm »
It looks like removing the double quotes has fixed this.