Travel Mapping

User Discussions => Welcome & Notices => Topic started by: Jim on June 10, 2016, 09:09:25 pm

Title: Please test new mapview page
Post by: Jim on June 10, 2016, 09:09:25 pm
I've made a lot of headway on the revamp of the mapview page.  I'm sure there are still problems, but I wanted to put it out there for testing as I turn my attention to a couple other things.  It's only on the tmtest site for now.  You could navigate your way there from your user stats page or jump right there with a URL like:

http://tmtest.teresco.org/user/mapview.php?rg=NY (http://tmtest.teresco.org/user/mapview.php?rg=NY)

Much of the work was behind the scenes on code reorganization and refactoring.  The highlights of the user-visible changes:


Note: I have not yet worked through user/region.php or user/system.php, so if you follow a link on tmtest to those pages, there is a good chance something won't work.  They're next on the list.
Title: Re: Please test new mapview page
Post by: michih on June 11, 2016, 11:44:34 am
Thanks, great feature! :)

Automatically created links contain [ and ], for instance: http://tmtest.teresco.org/user/mapview.php?u=michih&rg[]=DNK
If one selects two regions, the link looks like: http://tmtest.teresco.org/user/mapview.php?u=michih&rg[]=DEU&rg[]=DNK but should be comma separated only: http://tmtest.teresco.org/user/mapview.php?u=michih&rg=DEU,DNK

Selecting "Switzerland" region and "Austrian Schnellstra├čen" system displays the Pacific Ocean with a link like: http://tmtest.teresco.org/user/mapview.php?u=michih&rg[]=CHE&sys[]=auts

I've replaced %5B%5D manually by [] which broke the links in this post.

The order of regions and systems displayed seems to be according the region / system short name which is odd, for instance:
Code: [Select]
Zhejiang
Hong Kong
Taiwan
Cyprus
Czechia
Germany
Denmark
Spain
Estonia
Aland Islands
Finland
France

In addition, I think the "Select Map Options" box should be larger because it's hard to navigate.

Maybe the "[none selected]" option should be a check box instead of first entry but I generally prefer parallel list boxes with available and selected regions/systems like:

Once the script crashed.
Title: Re: Please test new mapview page
Post by: si404 on June 11, 2016, 03:18:18 pm
The vertical scroll bar doesn't disappear when you select 'Map only', and that covers the zoom/pegman controls.
Title: Re: Please test new mapview page
Post by: sipes23 on June 11, 2016, 07:09:51 pm
One change that would be useful is to have only the systems available for a certain region be available when looking at one region. For example, I was looking at Mississippi, but the system box had Wisconsin State Highways available as an option. When I clicked the update button, I got a blue ocean page.

This is otherwise a very cool feature.
Title: Re: Please test new mapview page
Post by: Jim on June 11, 2016, 08:55:21 pm
Thanks for the suggestions so far.

A few quick responses: