kmap
Not to be confused with KMaps, an iOS navigation app.
| kmap | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Websitegithub.com/kmaptool/kmap
| ||||||||||||||||||||||||||||||||||||
| Author: | kmaptool | |||||||||||||||||||||||||||||||||||
| License: | MIT License (free of charge) | |||||||||||||||||||||||||||||||||||
| Platforms: | Linux, macOS, and Windows | |||||||||||||||||||||||||||||||||||
| Status: | Active | |||||||||||||||||||||||||||||||||||
| Version: | 1.10.0 (2026-11-22) | |||||||||||||||||||||||||||||||||||
| Languages: | English and Russian
| |||||||||||||||||||||||||||||||||||
| Website: | https://github.com/kmaptool/kmap | |||||||||||||||||||||||||||||||||||
| Source code: | https://github.com/kmaptool/kmap | |||||||||||||||||||||||||||||||||||
| Programming language: | Swift | |||||||||||||||||||||||||||||||||||
|
Builds routable Garmin maps from OpenStreetMap data locally, with contour lines and hill shading | ||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||
kmap is free, open-source software developed to build maps for Garmin handheld devices, watches, and cycling computers using OpenStreetMap data. It allows users to select one or more geographic regions and create a single .img file, which can then be copied to the Garmin directory on the device or its memory card. All processing is performed locally, without requiring an account, a remote server, or uploading user data.
The program uses mkgmap to compile map data. It also automates the associated preparation and processing tasks, including downloading map extracts, elevation data and the required tools, repairing and splitting the data into tiles (with its own splitter), building contours, and choosing build options.
kmap provides both a full-screen text-based user interface (TUI) and a command-line interface (CLI), offering the same functionality through both. The command-line interface also supports scripted map building.
Features
- Maps can be built from regions listed in the Geofabrik geographic hierarchy, ranging from entire continents to individual states. Multiple regions can be combined into a single continuous map. Areas spanning the 180th meridian are also supported.
- The maps support on-device route calculation and address search.
- Contour lines at a chosen interval, hill shading, and elevation profiles from DEM data. Elevation sources are tried in order and fill each other's gaps: Copernicus GLO-30/GLO-90 by default, also FABDEM, GEDTM30, Viewfinder Panoramas, SRTM, and ALOS.
- Four built-in open map styles are available: OpenStreetMap Carto, OpenTopoMap, CyclOSM, and OSM Liberty Topo. Both day and night display modes are supported.
- kmap can import Garmin TYP files from existing maps. By matching the map geometry with OpenStreetMap data, the software identifies the corresponding OSM objects and uses the resulting associations to reproduce the imported map's visual style. This feature is intended for maps whose licence permits reuse of the design.
- The program includes an interface for editing map styles, including individual icon pixels.
- Separate configuration profiles can be created for different devices, allowing map detail and other settings to be adjusted for each device type.
- Gaps of up to 5 m between roads and trails are automatically closed to improve routing continuity.
- Map labels can be created in the local language, English, or Russian.
- Maps can be exported as a single file, as separate files for individual regions, or as multiple files of approximately equal size. The software can also build
.gmapdirectories compatible with Garmin BaseCamp. - All downloaded data is cached locally, and interrupted downloads can be resumed. Cached data also reduces the time required to rebuild maps using previously downloaded source data.
Installation and usage
Precompiled versions of kmap are available for Windows (installer), macOS (universal binaries for Intel and Apple Silicon), and Linux (.deb and .tar.xz packages for x86-64 and ARM architectures, including support for Windows Subsystem for Linux (WSL)). The installation packages can be downloaded from the GitHub releases page.
On its first launch, kmap offers to download the required dependencies, including Java, mkgmap, and, when necessary, pyhgtmap. The kmap doctor command checks the installation and verifies the availability of the required components.
Maps can be built using the interactive interface by launching kmap, selecting a region, and starting the build process. Alternatively, map building can be initiated from the command line. For example, the command kmap build austria+switzerland creates a map covering Austria and Switzerland.
By default, all maps are saved in the ~/kmap directory. Further information on map styles, device profiles, and available configuration options is provided in the project's README.
Support and development
Questions, bug reports, and feature requests can be submitted through the project's GitHub issue tracker.
The source code of kmap is hosted on GitHub and distributed under the MIT License. Contributions are welcome through pull requests.
Privacy
kmap does not require user accounts and does not collect telemetry data. Its network activity is limited to downloading OpenStreetMap data extracts from Geofabrik, elevation data from selected sources, and required software dependencies, including the sea and boundary data files used by mkgmap. The program does not transmit user information or local map data to external servers.
Map licensing
Maps created with kmap contain data from OpenStreetMap and are therefore subject to the Open Database License. The program includes the required attribution information in the copyright notices of the built maps. Additional licensing conditions may apply to elevation data obtained from third-party sources. For example, FABDEM is distributed under terms that restrict its use to non-commercial purposes.