Skip to content

Commit

Permalink
Merge pull request #322 from bahnzumberg/uat
Browse files Browse the repository at this point in the history
gpx path adapted
  • Loading branch information
martinheppner authored Apr 23, 2024
2 parents ce3e566 + 5ae3ecb commit 6dfc9d7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy2dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.3.0'
node-version: '20.5.0'

- name: Cache node_modules
id: cache-npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy2prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.3.0'
node-version: '20.5.0'

- name: Cache node_modules
id: cache-npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy2uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.3.0'
node-version: '20.5.0'

- name: Cache node_modules
id: cache-npm
Expand Down
26 changes: 0 additions & 26 deletions src/components/Map/TourMapContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,13 @@ function TourMapContainer({

const updateBounds = () => {
if (!!mapRef && !!mapRef.current && !!tours && clusterRef && clusterRef.current) {
console.log("L114 at updateBounds ")
if (clusterRef.current.getBounds() && clusterRef.current.getBounds().isValid()) {
mapRef.current.fitBounds(clusterRef.current.getBounds());
}
}
}

const setCurrentGpxTrack = async (url) => {
console.log("L153 url : ", url);

if (!!url) {
try {
const loadGpxFunction = loadGPX(url); // Call loadGPX with the URL to get the inner function
Expand Down Expand Up @@ -186,29 +183,6 @@ function TourMapContainer({
return null;
}, [tours,onSelectTour,setTourID,StartIcon]);

// const setCurrentGpxTrack = async (url ) => {
// console.log("L153 url : ", url) ;//http://localhost:8080/public/gpx/bahnzumberg_14877.gpx
// if(!!url){
// await loadGPX(url).then(res => {
// if (!!res && !!res.data) {
// console.log("L154 res.data :", res.data)
// let gpx = new gpxParser(); //Create gpxParser Object
// gpx.parse(res.data);
// if (gpx.tracks.length > 0) {
// let track = gpx.tracks[0].points.map(p => [p.lat, p.lon]);
// setGpxTrack(track);
// }
// }
// }).catch(error => {
// console.error('Error loading GPX:', error);
// setGpxTrack([]);
// });
// }else {
// setGpxTrack([]);
// }
// }


const createClusterCustomIcon = function (cluster) {
return L.divIcon({
html: `<span>${cluster.getChildCount()}</span>`,
Expand Down

0 comments on commit 6dfc9d7

Please sign in to comment.