An offline map editing application for indigenous territory mapping in remote environments. It uses osm-p2p for offline peer-to-peer synchronization of an OpenStreetMap database, without any server. The editor is based on iDEditor, a simple and easy to use editor for OpenStreetMap. The app is web app built with Electron.
This project is under active development and we are testing it out in the field in Ecuador.
For a mobile application that is compatible with Mapeo Desktop, see Mapeo Mobile.
To clone and install all dependencies and start the program, execute
$ git clone firstname.lastname@example.org:digidem/mapeo-desktop.git $ cd mapeo-desktop $ npm install $ npm run build $ npm run rebuild-leveldb $ npm rebuild $ npm start
To run the application with debugging enabled, execute
$ npm run dev
In another terminal, run
npm run watch to automatically generate the
front-end bundle every time it is changed.
$ npm run device
This runs a mock testing device that will broadcast itself on the local network. This device saves it's data in tests/test-data.
$ npm run test-integration
The integration tests use Spectron and Tape. They click through the app, taking screenshots and comparing each one to a reference. Why screenshots?
For MacOS, you'll need a Retina screen for the integration tests to pass. Your screen should have the same resolution as a 2016 12" Macbook.
For Windows, you'll need Windows 10 with a 1366x768 screen.
When running integration tests, keep the mouse on the edge of the screen and don't touch the mouse or keyboard while the tests are running.
Mapeo uses Electron. To package the Electron app as
a native Windows
.exe or macOS
$ npm run installer-win
$ npm run dmg-mac
The resultant installer or DMG will be placed in the
Mapeo uses GitHub Releases for deployment.
To create a release, simply push a git tag to the repository. A convenient way
to both advance the project by a version and push a tag is using the
npm version command. To create a new minor version and push it to the github
repository to initiate a build, one might run
$ npm version minor $ git push --tags
A github release will be created automatically. Simultaneously, an Appveyor build will be started to create a Windows installer, and a Travis build will be started for a macOS DMG. Each will be added to the github release asynchronously as they complete.
You'll be able to find the results on the project's releases page.