Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
wp icon and path for upload layout
Browse files Browse the repository at this point in the history
  • Loading branch information
astridx committed Jun 12, 2019
1 parent 4588446 commit 0562a8e
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 10 deletions.
18 changes: 18 additions & 0 deletions agosms-update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,22 @@
<maintainerurl>https://astrid-guenther.de</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
<update>
<name>pkg_agosms</name>
<description>pkg_agosms</description>
<element>pkg_agosms</element>
<type>package</type>
<client>site</client>
<version>1.0.36</version>
<infourl title="agosms">https://github.com/astridx/pkg_agosms/blob/v1.0.36/README.md</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/astridx/pkg_agosms/releases/download/v1.0.36/pkg-agosms.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Astrid Günther</maintainer>
<maintainerurl>https://astrid-guenther.de</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
</updates>
2 changes: 1 addition & 1 deletion dist/current
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension type="component" version="3.5" method="upgrade">
<name>com_agosms</name>
<author>Astrid Günther</author>
<creationDate>2019-06-08</creationDate>
<creationDate>2019-06-12</creationDate>
<copyright>(C) 2019 Open Source Matters. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later;</license>
<authorEmail>info@astrid-guenther.de</authorEmail>
<authorUrl>www.astrid-guenther.de</authorUrl>
<version>1.0.35</version>
<version>1.0.36</version>
<description>COM_AGOSMS_XML_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>

Expand Down
Binary file modified dist/zips/com_agosms.zip
Binary file not shown.
Binary file modified dist/zips/mod_agosm.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion jorobo.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extension = agosms
version = 1.0.35
version = 1.0.36
source = src
target = package

Expand Down
11 changes: 6 additions & 5 deletions src/media/mod_agosm/js/aggpxtrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,21 @@ document.addEventListener('DOMContentLoaded', function () {
var wptIconUrls = element.getAttribute('data-wptIconUrls');

var gpxfilenames = gpx_file_name.split(';;');

var group = L.featureGroup([]);
window['mymap' + moduleId].fitBounds([[0, 0],[0, 0]]);

for (var i = 0; i < gpxfilenames.length; i++) {
console.log(gpxfilenames[i]);
new L.GPX(gpxfilenames[i],
{
marker_options: {
startIconUrl: startIconUrl,
endIconUrl: endIconUrl,
shadowUrl: shadowIconUrl
},
wptIconUrls: {
'': wptIconUrls
shadowUrl: shadowIconUrl,
wptIconUrls: {
'': wptIconUrls
}
},
async: true
}).on('loaded', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mod_agosm/tmpl/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{
for ($i = 0; $i < $total; $i++)
{
$gpxfile .= $result[$i]['rpath'] . DIRECTORY_SEPARATOR . $_FILES[$params->get('ag_variable')]["name"][$i] . ';;';
$gpxfile .= JURI::base() . $result[$i]['rpath'] . DIRECTORY_SEPARATOR . $_FILES[$params->get('ag_variable')]["name"][$i] . ';;';
}
}
$startIconUrl = JURI::base() . 'media/mod_agosm/leaflet-gpx/pin-icon-start.png';
Expand Down

0 comments on commit 0562a8e

Please sign in to comment.