fpdcc / trailsy

A trip planner and mapper for hiking/biking/riding trail systems.
https://map.fpdcc.com/
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Update Trail Panel for new schema #228

Closed versatilehuman closed 5 years ago

versatilehuman commented 5 years ago

icons

Update these functions to reflect new schema:

https://github.com/fpdcc/trailsy/blob/development/js/panelFunctions.js#L996

In this order:

<svg class="icon icon-hiking"><use xlink:href="icons/defs.svg#icon-hiking"></use></svg>
<svg class="icon icon-bicycling"><use xlink:href="icons/defs.svg#icon-bicycling"></use></svg>
<svg class="icon icon-dog-leash"><use xlink:href="icons/defs.svg#icon-dog-leash"></use></svg>
<svg class="icon icon-cross-country-skiing"><use xlink:href="icons/defs.svg#icon-cross-country-skiing"></use></svg>
<svg class="icon icon-equestrian"><use xlink:href="icons/defs.svg#icon-equestrian"></use></svg>
<svg class="icon icon-no-dogs"><use xlink:href="icons/defs.svg#icon-no-dogs"></use></svg>

hours

Replicate the poi hours functionality, but for trails: https://github.com/fpdcc/trailsy/blob/development/js/panelFunctions.js#L785

Pulling from new columns in trails_desc:

shua123 commented 5 years ago

on staging

versatilehuman commented 5 years ago

It looks like the season2/hours2 block is missing from the trails hours:

Screen Shot 2019-04-14 at 10 54 26 AM https://map-staging.fpdcc.net/#/?poi=338-River+Trail+Nature+Center

Styling

In newguts.css add this after line 151 https://github.com/fpdcc/trailsy/blob/development/styles/css/newguts.css#L151

.fpccTrails .fpccHours{margin:0}

shua123 commented 5 years ago

The missing hours2 for River Trail Nature Center Trails is a data issue. https://github.com/fpdcc/webmap_data_updates/blob/master/map%20data/trails_desc.csv#L31

See https://map-staging.fpdcc.net/#/?trail=Crabtree+Nature+Center+Trails for a working hours2.

versatilehuman commented 5 years ago

Sorry, I glanced at trails_desc and it looked like they were all in there. Definitely that single one missing.