Author Topic: Clinched Routes Highway Shields  (Read 80031 times)

0 Members and 4 Guests are viewing this topic.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4234
  • Last Login:February 13, 2024, 07:19:36 pm
  • I like C++
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Re: Clinched Routes Highway Shields
« Reply #151 on: February 07, 2021, 10:09:16 pm »
On another note... what is that font on the Ontario shields?

Those are hopefully temporary.  If I can get my hands on a version of the SVG for this style:

https://en.wikipedia.org/wiki/List_of_provincial_highways_in_Ontario#/media/File:Ontario_17.svg

that plays nicely with our text substitution for generating shields, I'll put them in place.  See https://github.com/TravelMapping/Web/issues/599 and discussions elsewhere on the forum.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Re: Clinched Routes Highway Shields
« Reply #152 on: February 07, 2021, 10:12:45 pm »
I think a key point here is that in most cases, only one shield is needed.  If a route carries multiple designations, those are in different systems.  So if you're looking at canon or canonf, you'll see an Ontario shield, if you're looking at cantch, you should see a TCH shield.  I'm thinking for the other cases, the effort to get multiple shields in will far outweigh the benefit.

Offline Duke87

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 938
  • Last Login:Today at 03:08:41 pm
Re: Clinched Routes Highway Shields
« Reply #153 on: February 07, 2021, 10:30:35 pm »
https://en.wikipedia.org/wiki/Zero_one_infinity_rule

I mean, when I say "if we can do two, why not three" the same logic says "if we can do n, why not n+1" for all positive integer values of n. It would get cumbersome as the number gets larger, but the same would be true of animations.

That said... what is the actual maximum number of distinct shields that exists for different segments of the same route? Puerto Rico would give us four. Any five or greater examples?

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4234
  • Last Login:February 13, 2024, 07:19:36 pm
  • I like C++
Re: Clinched Routes Highway Shields
« Reply #154 on: February 07, 2021, 10:51:44 pm »
Larger values of n, if not animated, would take up a larger amount of real estate onscreen. Animation uses an extra (time) dimension to avoid that problem.
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca

Offline si404

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1948
  • Last Login:Today at 01:42:46 pm
Re: Clinched Routes Highway Shields
« Reply #155 on: February 08, 2021, 06:16:47 am »
I'd quite like double shields for British Islands (ENG, IMN, JEY, NIR, SCT, WLS) for routes with both primary and non-primary sections.

It'll be awkward though - I've got to go through gbna, imna, jeya, jeyb and nira and put them into three categories - primary, non-primary, both - and then the primary routes have yellow-on-green cartouches, the non-primary routes have black-on-white cartouches, and the both have both (either alternating or not).

It's a bit like Tennessee - there's a system of numbers, and then, on top, there's a set of roads classed as primary with different shields, but the numbers don't change.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Re: Clinched Routes Highway Shields
« Reply #156 on: February 09, 2021, 09:39:36 pm »
Inner Loop got its shield within minutes of its inclusion in the DB, and I fixed the Lake Ontario State Parkway (which looked blank but was really just clipping a tiny corner of a giant image).

Offline Bickendan

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 543
  • Last Login:March 26, 2024, 08:55:56 pm
Re: Clinched Routes Highway Shields
« Reply #157 on: February 11, 2021, 04:03:08 am »
Hungarian shields are miscentering text.

Online michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4555
  • Last Login:Today at 04:42:37 pm
Re: Clinched Routes Highway Shields
« Reply #158 on: February 11, 2021, 05:24:29 am »
Hungarian shields are miscentering text.

yep, we know but have no clue why: https://github.com/TravelMapping/Web/issues/615 Anyone?

Offline theFXexpert

  • TM Collaborator
  • Full Member
  • *****
  • Posts: 134
  • Gender: Male
  • Last Login:June 30, 2023, 02:59:08 pm
Re: Clinched Routes Highway Shields
« Reply #159 on: February 11, 2021, 12:33:29 pm »
Try readjusting the x coordinate in the tspan element so that it is centered for most cases (something like around 50).
Maybe reduce the letter spacing too.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Re: Clinched Routes Highway Shields
« Reply #160 on: February 11, 2021, 02:31:28 pm »
Try readjusting the x coordinate in the tspan element so that it is centered for most cases (something like around 50).
Maybe reduce the letter spacing too.

Thanks for the tip.  I modified it so it looks quite a bit better.

Offline theFXexpert

  • TM Collaborator
  • Full Member
  • *****
  • Posts: 134
  • Gender: Male
  • Last Login:June 30, 2023, 02:59:08 pm
Re: Clinched Routes Highway Shields
« Reply #161 on: February 11, 2021, 06:50:04 pm »
I reloaded the cache and still doesn't look quite right.

x="52" appears to work best

same with the hunf system.

Online michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4555
  • Last Login:Today at 04:42:37 pm
Re: Clinched Routes Highway Shields
« Reply #162 on: February 12, 2021, 02:18:59 am »
I reloaded the cache and still doesn't look quite right.

It looks perfect on showroute.php (but isn't since the spaces and line break are still there) but not on clinched.php (well, M1-M5 are fine but M6 and the like are shitty)



same with the hunf system.

looks fine. I didn't spot anything wrong.
« Last Edit: February 12, 2021, 02:21:43 am by michih »

Offline theFXexpert

  • TM Collaborator
  • Full Member
  • *****
  • Posts: 134
  • Gender: Male
  • Last Login:June 30, 2023, 02:59:08 pm
Re: Clinched Routes Highway Shields
« Reply #163 on: February 12, 2021, 01:34:22 pm »
Weird. This is what I see on clinched.php
Showroute.php looks the same. This is viewed with Chrome-based Microsoft Edge and it looks the same on Android Chrome


Online michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4555
  • Last Login:Today at 04:42:37 pm
Re: Clinched Routes Highway Shields
« Reply #164 on: February 12, 2021, 01:43:33 pm »
This is viewed with Chrome-based Microsoft Edge and it looks the same on Android Chrome

yep, same here with Edge. Also bela shields are crap. My screenshot was taken with Firefox though.

The browser-dependencies are the reason why I don't deal with shield anymore.