Elevation Y Axis
-
Would it be possible to add the undocumented options yAxisMin and yAxisMax to allow similar y axix scales to be shown on elevation profiles displayed in multiple posts/pages?
I have done this in my copy of the code by duplicating the height section of php/elevation.php :-
// Line 83 src/options.js // yAxisMax array( 'param' => 'yAxisMax', 'shortdesc' => __('y Axis Max',"extensions-leaflet-map"), 'desc' => "", 'default' => "0", // form input type, pattern, help 'values' => 'type="text" pattern="^[0-9]+$" title="'.__('number','extensions-leaflet-map').'"', 'typ' => array('changeable','look','multielevation'), ), // yAxisMin array( 'param' => 'yAxisMin', 'shortdesc' => __('y Axis Min',"extensions-leaflet-map"), 'desc' => "", 'default' => "0", // form input type, pattern, help 'values' => 'type="text" pattern="^[0-9]+$" title="'.__('number','extensions-leaflet-map').'"', 'typ' => array('changeable','look','multielevation'), ),I am not sufficiently knowledgable to be sure if this is the correct way to do it and what the defaults should be (‘undefined’ in src/options.js). It would also be nice not to have to remember to redo this if I update the WP plugin.
Many thanks,
Simon
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Elevation Y Axis’ is closed to new replies.