astridx/pkg_aggpxtrack

table of Additional Information of the GPX File

camminateinfriuli opened this issue · 7 comments

Aggpxtrack is really cool, I saw in a post Anleitung Joomla 3 # 17
If your GPX file contains more information, you can display this imformation below the map. In Custom Field options, select which information to display. You can choose

Distance,
Name of the track,
Start time,
Moving time,
Total time,
Moving pace,
Moving speed,
Total speed,
Elevation (min),
Elevation (max),
Elevation (gain),
Elevation (loss),
Average heart rate and
Average temperature.
The entry appears in the frontend below the map. Each entry has a CSS ID and can be created in the custom.css - or user.css - of your template.

The table is very beautiful I only have a problem the TR lines are too high inspecting with Chrome I see a padding set to 1.

how can I bring the padding to 0 or make sure that the table does not have such high rows?

what should I put in the custom.css or user.css?

https://camminateinfriuli.it/m-itinerari/m-itinerari-all/761-anello-monti-cereis-e-chiarandeit-da-borgo-del-bianco-2.html

CSS depends on the template. Can you give me a link to the website where you want to show the track?

In the meantime, thanks for the beautiful plugin and for the quick reply, I'm switching to your plugin, I used to use GpxTrackMap before, I bought a top level domain and that plugin doesn't work and is no longer developed anyway. on my site there are some articles with your plugin, I am interested in the table that must not be so high. On the previous plugin I extrapolated the values I also did some calculations and put them in a table. unfortunately my knowledge of languages is not appropriate and I cannot understand which section (file) your table generates.

My site is https://camminateinfriuli.it the articles can be found in " ITINERARI "

@camminateinfriuli
I can't find any article on the site https://camminateinfriuli.it/ that has aggpxtrack included. Can you please provide the direct link?

For problems with the new provider I am redoing the site in J4, for my itineraries, as you can see in the old site in J3, I need to have a summary table (https://camminateinfriuli.altervista.org/itinerari/itineraripn/756-villa-emma-da-arcola.html), I was using gpxtrackmap but it is no longer supported.

At the moment I managed to get the table using your aggpxtrack plugin which uses leaflet-gpx.

As seen here https://camminateinfriuli.it/test/index.php/provincia-di-pordenone/facili/villa-emma-da-arcola

the table is too high and does not solve my problem, I would like to extrapolate some data from the trace with the methods:
• get_distance (): returns the total track distance, in meters
• get_total_time (): returns the total track time, in milliseconds
• get_total_speed (): returns the average total speed in km per hour
• get_elevation_min (): returns the lowest elevation, in meters
• get_elevation_max (): returns the highest elevation, in meters
• get_elevation_gain (): returns the cumulative elevation gain, in meters
• get_elevation_loss (): returns the cumulative elevation loss, in meters

I found the explanation is logical and simple but without an example I just can't get out of it.

The thing I would need most is to save those values ​​in the joomla database in the table of additional fields created (distance, total time, speed, vertical drop, minimum altitude, maximum altitude, gain on ascent and gain on descent)

I had thought about modifying this code to update the values ​​in the database:

get('articleid'); if ($articleid->id == 0) { echo "Not article select"; } else { $email = $me->email; // change the case of the email address $email_uppercase = strtoupper($email); if ($email == $email_uppercase) { $new_email = strtolower($email); } else { $new_email = $email_uppercase; } $query = $db->getQuery(true); $fields = array($db->quoteName('email') . " = '{$new_email}'"); $conditions = array($db->quoteName('id') . ' = ' . $me->id); $query->update($db->quoteName('#__users'))->set($fields)->where($conditions); echo $db->replacePrefix((string) $query); $db->setQuery($query); if ($result = $db->execute()) { echo "Email case successfully changed!"; } } I want to learn but it's not easy, the most difficult thing is the interaction between the code and the system. Objectively I don't expect to enjoy her attention, I guess she has other things to think about, but I hope she can help me with her great experience, maybe it's child's play for her, a short pastime, for me it's a mission impossible.

The thing I would need most is to save those values ​​in the joomla database in the table of additional fields created (distance, total time, speed, vertical drop, minimum altitude, maximum altitude, gain on ascent and gain on descent)

Unfortunately, aggpxtrack does not save those values ​​in the joomla database. The main purpose of the extension is the display on a map. The values you mention are calculated and displayed at the same time the GPX file is opened, if the display is enabled in the options.

Unfortunately, aggpxtrack does not save those values ​​in the joomla database. The main purpose of the extension is the display on a map. The values you mention are calculated and displayed at the same time the GPX file is opened, if the display is enabled in the options.

I know, at least you can solve the problem of too high table rows?