Skip to content

Commit

Permalink
[Track view] - Extension de suivi de trace d'activité type GPX (mview…
Browse files Browse the repository at this point in the history
…er#906)

* Ajout fichiers

* Modification du nom de fichier

* remove misspelling trakview file

* Ajout image et modif fichier xml

* Aucun changement

* Ajout d'une extension

* Modification

* Test

* Modif

* Changement extension

* Ajout d'une deuxième extensions

* Ajout extension$

* Test

* Suppression d'une extension

* Test

* test

* Ajout extension

* test

* test

* Suppression extension ajouté précédement

* Ajout extension

* Test

* Test

* test

* test

* test

* Modif fichier xml

* test

* test

* Modif

* Suppression

* Test

* Ajout et modification de fichiers

* Modif

* Modif

* Mise en commentaire du style dans le customlayer

* modif

* Modif

* Modif

* Modif

* Modif

* modif

* Modif

* Modif

* Modif

* Modif

* Modif

* Modif

* Ajout et modif de fichiers

* Ajout de dossier

* Modif

* Configuration pour #6

* Modif

* Modif

* Ajout coordonnées

* Modif

* Modif

* Rename

* Modif

* mdoif

* Modif et ajout du style

* modif

* Modif

* Ajout du graph

* Modif

* ras

* Modif

* Ajout du calcul de la distance

* Calcul de la distance

* Ajout de la distance sur la graph

* Ajout titre du graph

* Ajout de la distance

* Modif

* Ajout du nom des axes

* Modif

* Modification du fichier config.json

* Modification de la légende

* Modif

* Ajout des points sur la carte

* Modif

* Ajout et suppression de fichier

* Ajout du survole de point => changement de couleur

* Lien entre graph et carte

* Ajout de l'extension 'print'

* Ajout de l'extension 'print'

* Lecture des id des features sur la carte

* Modif de la couleur sur le graph => pas à 100%

* Modif couleur

* Modif de la couleur sur le graph

* Modification de l'affichage des points au passage de la souris

* modif

* Modif

* Ajout modif de la taille sur le graph

* Modif

* Modif

* Fix point display on chart on  map hover

* Modif

* Modiuf

* Modif

* Ajout de la coloration du circuit au passage du point

* Modif

* Ajout de commentaire

* Correction du problème de synchronisation entre la carte et le graphique

* Modifs

* Ajout calcul de la distance manquante pour chaque km

* Modif

* Ajout de commentaire

* Ajout tools

* Suppression stylePoint() in chart

* Delete function _extractSegmentInfo()

* Delete code for multicolor graph on _distanceBtwPoint()

* Modification of the coloration on the map with segment vector

* Modification / amélioration du changement de la couleur du parcours au passage de la souris

* add comments

* ras

* Add comments in english, Add function _initLayer, Add 'tolerance on parcours', Suppression of style 'invisible'

* Ajout de turf.js

* Add comments

* Ajout des points tous les kilomètres

* Calcul de la distance manquante avec Turf

* add comments

* Add label on each kilometers point

* add option for kilometers points

* add drop-down list

* Nothing add

* save

* save

* Correction of some bogues

* For Pierre

* legend okay

* Add some correction for the legend

* nothing

* nothing

* nothing

* Add correction

* Modif graph

* Add responsive design

* Add option for the graph when the legend is delete

* Save

* New dropdown

* maj

* relecture

* fix bug for new dropdown

* fix bug for new dropdown

* maj

* save

* review code, made some changes on style ( but slow when lots off segment )

* nothing

* add comment on style.css

* change config.json

* modif

* add comments

* add comments

* add comments

* add comments

* add comments

* add new folder for style.css

* add new file readme.md

* change the location for the style.css

* start of documentation

* fix error

* checkpoint for readme.md 'Configuration du plugin'

* checkpoint for readme.md 'Ajouter une couche'

* add new folder for image

* add new image

* checkpoint for readme.md 'Le style'

* checkpoint for readme.md end

* add some comments

* add some fixes

* fix

* add new style file to folder

* test read the docs of mviewer

* delete css file

* change style button for trackview

* remove docs_test folder

* remove bootstrap folder

* remove geojson file useless

* remove useless file

* remove useless line in the file

* defaut file

* delete useless line in the index.rst file

* delete useless file

* Prise en compte des remarques de lecault

* mviewer#906 Ajout d'une petite présentation de l'extension dans 'readthedocs' + lien vers le readme

* mviewer#906 Ajout d'une petite présentation de l'extension dans 'readthedocs' + lien vers le readme

* mviewer#906 Remove useless logo

* remove useless npm modules

* roll back sbg removed

---------

Co-authored-by: gaetanbrl <[email protected]>
Co-authored-by: Pierre Jégo <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2024
1 parent 5934040 commit 7f01173
Show file tree
Hide file tree
Showing 16 changed files with 31,936 additions and 1 deletion.
73 changes: 73 additions & 0 deletions demo/addons/print/layouts/trackview.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"A4_LANDSCAPE": {
"format": "A4",
"northUrl": "demo/addons/print/img/NorthArrow.png",
"landscape": true,
"grid": {
"rows": "6",
"col": "6"
},
"items": {
"mapPrint": {
"row": "2/6",
"col": "1/5"
},
"informations": {
"title": "Informations",
"row": "1/2",
"col": "6/7",
"type": "informations"
},
"comments": {
"row": "6/7",
"col": "1/7",
"type": "text"
},
"legend": {
"row": "2/6",
"col": "5/7",
"type": "legend"
},
"title": {
"row": "1/2",
"col": "1/6",
"type": "text"
}
}
},
"A4_PORTRAIT": {
"format": "A4",
"landscape": false,
"grid": {
"rows": "6",
"col": "6"
},
"items": {
"mapPrint": {
"row": "2/6",
"col": "1/5"
},
"informations": {
"title": "Informations",
"row": "1/2",
"col": "6/7",
"type": "informations"
},
"comments": {
"row": "6/7",
"col": "1/7",
"type": "text"
},
"legend": {
"row": "2/6",
"col": "5/7",
"type": "legend"
},
"title": {
"row": "1/2",
"col": "1/6",
"type": "text"
}
}
}
}
216 changes: 216 additions & 0 deletions demo/addons/trackview/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
{
"type": "module",
"js": [
"../../../lib/chartjs-3.7.1/Chart.min.js",
"lib/turf.min.js",
"js/custom-dropdown.js",
"js/trackview.js"
],
"css": "/css/style.css",
"html": "./trackview.html",
"target": "page-content-wrapper",
"options": {
"mviewer": {
"parcours": [
{
"id": 0,
"label": "Parcours 13 km",
"title": "Circuit",
"param": {
"pointKilometers": {
"display": "true"
},
"tolerance": {
"value": 2
}
},
"style": {
"geometry": "LineString",
"segment": {
"color": {
"default": "#f00",
"selected": "#03224c"
},
"width": {
"default": 3,
"selected": 5
}
},
"point": {
"color": {
"image": "#03224c",
"stroke": "#fff"
},
"radius": 7,
"width": 2
},
"pointKilometers": {
"color": {
"image": "#fff",
"stroke": "f00",
"text": "#333"
},
"radius": 9,
"width": 0.8
},
"graph": {
"type": "line",
"title": "Dénivelé du parcours en fonction de la distance parcourue",
"name": {
"xAxis": {
"text": "Distance (km)"
},
"yAxis": {
"text": "Dénivelé (m)"
}
},
"color": {
"segment": "#f00",
"point": "#f00"
}
}
},
"stats": {
"type": "customlayer",
"layerId": "parcours_1",
"opacity": 0.8
},
"data": {
"url": "demo/trackview/data/parcours_13km.gpx"
}
},
{
"id": 1,
"label": "Parcours 5 km",
"title": "Circuit",
"param": {
"pointKilometers": {
"display": "false"
},
"tolerance": {
"value": 2
}
},
"style": {
"geometry": "LineString",
"segment": {
"color": {
"default": "#f00",
"selected": "#03224c"
},
"width": {
"default": 3,
"selected": 5
}
},
"point": {
"color": {
"image": "#03224c",
"stroke": "#fff"
},
"radius": 7,
"width": 2
},
"pointKilometers": {
"color": {
"image": "#fff",
"stroke": "f00",
"text": "#333"
},
"radius": 9,
"width": 0.8
},
"graph": {
"type": "line",
"title": "Dénivelé du parcours en fonction de la distance parcourue",
"name": {
"xAxis": {
"text": "Distance (km)"
},
"yAxis": {
"text": "Dénivelé (m)"
}
},
"color": {
"segment": "#f00",
"point": "#f00"
}
}
},
"stats": {
"type": "customlayer",
"layerId": "parcours_1",
"opacity": 0.8
},
"data": {
"url": "demo/trackview/data/parcours_5km.gpx"
}
},
{
"id": 2,
"label": "Parcours VTT",
"title": "Circuit",
"param": {
"pointKilometers": {
"display": "true"
}
},
"style": {
"geometry": "LineString",
"segment": {
"color": {
"default": "#f00",
"selected": "#0f0"
},
"width": {
"default": 3,
"selected": 5
}
},
"point": {
"color": {
"image": "#00f",
"stroke": "#fff"
},
"radius": 7,
"width": 2
},
"pointKilometers": {
"color": {
"image": "#00f",
"stroke": "000",
"text": "#fff"
},
"radius": 9,
"width": 3
},
"graph": {
"type": "line",
"title": "Dénivelé du parcours en fonction de la distance parcourue",
"name": {
"xAxis": {
"text": "Distance (km)"
},
"yAxis": {
"text": "Dénivelé (m)"
}
},
"color": {
"segment": "#0f0",
"point": "#00f"
}
}
},
"stats": {
"type": "customlayer",
"layerId": "parcours_1",
"opacity": 0.8
},
"data": {
"url": "demo/trackview/data/pierre.gpx"
}
}
]
}
}
}
Loading

0 comments on commit 7f01173

Please sign in to comment.