Changeset 688fb7d in OpenWorkouts-current for ow/static/js/ow.js


Ignore:
Timestamp:
Feb 5, 2019, 6:48:44 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
ded7d95
Parents:
3169fe4
Message:

Ensure the gpx data is loaded into the full page map available under the /map
url for workouts.

Set the proper color for the polyline drawn on the map by leaflet-gpx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/static/js/ow.js

    r3169fe4 r688fb7d  
    9191                shadowUrl: shadow,
    9292            },
     93            polyline_options: {
     94                color: '#EE4056',
     95                opacity: 0.75,
     96                weight: 5,
     97                lineCap: 'round'
     98            },
    9399        });
    94100
     
    107113
    108114    var render = function render() {
    109         // create the map, add elevation, load gpx
     115        // create the map, add elevation, load gpx (only if needed, as the
     116        // elevation plugin already loads the gpx data)
    110117        create_map(latitude, longitude, zoom);
    111118        if (elevation) {
    112119            add_elevation_chart();
    113120        }
    114         // load_gpx(gpx_url);
     121        else {
     122            load_gpx(gpx_url);
     123        }
    115124    };
    116125
Note: See TracChangeset for help on using the changeset viewer.