Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
gpxedit-oc
gpxedit-oc
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 7
    • Merge Requests 7
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Julien Veyssier
  • gpxedit-ocgpxedit-oc
  • Wiki
  • admindoc

Last edited by Julien Veyssier Jun 13, 2017
Page history

admindoc

Installation

Nothing special to install GpxEdit. You can get it from the app websites or clone this repository.

Download on app website

cp ~/Downloads/gpxedit-0.0.4.tar.gz /path/to/nextcloud/apps/
cd /path/to/nextcloud/apps/
tar xvf gpxedit-0.0.4.tar.gz
rm gpxedit-0.0.4.tar.gz

Clone the repository

cd /path/to/nextcloud/apps/
git clone https://gitlab.com/eneiluj/gpxedit-oc gpxedit

Integration in "Files" app (optional, tested with ownCloud 10, Nextcloud 11 and 12)

If you want to be able to edit a .gpx file directly from the "Files" app, you have to add a MimeType to your Nextcloud/Owncloud instance. The clean way to do it is to create /path/to/nextcloud/config/mimetypemapping.json file and set its content :

{
    "gpx": ["application/gpx+xml"]
}

This will only be effective on new .gpx files. If you want your instance to recognize all existing .gpx files with the correct mimetype, you have to make it rescan the user files (adapt path and web server user it to your context) :

sudo -u www-data php /var/www/html/nextcloud/occ files:scan --all

For logged in users, the "edit in GpxEdit" action is available in context menu for .gpx files.

Change icons of .gpx files (optional, tested with ownCloud 10, Nextcloud 11 and 12)

Copy the gpx filetype icon in the right place :

sudo -u www-data cp /path/to/nextcloud/apps/gpxedit/img/gpx.svg  /path/to/nextcloud/core/img/filetypes/

Create /path/to/nextcloud/config/mimetypealiases.json file and set its content to :

{
    "application/gpx+xml": "gpx"
}

Then run :

sudo -u www-data php /path/to/nextcloud/occ maintenance:mimetype:update-js

Settings

Extra symbols can be added in the Nextcloud and ownCloud (10+) admin settings, section additional.

The extra symbols are then available for every user in GpxEdit interface. As there is no convention for symbol names, there is no guarantee that symbols you choose in GpxEdit will be displayed in other applications. If GpxPod is installed on the same ownCloud/Nextcloud instance than GpxEdit, it will find the extra symbols you added and display them correctly.

ownCloud 9 admins can add extra symbols by putting PNG files in /path/to/owncloud/data/gpxedit/symbols/ folder.

Clone repository
  • admindoc
  • devdoc
  • Home
  • toto
  • userdoc