Loads a map source into the current map. The newly loaded map source will be added to the end of the list of map sources (see list-sources command). The currently active ruleset will be applied on the map source (see Introduction To Rulesets).
load-source <map source location>
- map source location: specifies the location of the map source. Currently you can only load map sources from a local storage (disk or network share).
After executing the command, the current map source index will be set to this newly loaded source.
NOTE: You need to load a ruleset before loading any sources, otherwise the command will fail. This is especially important if you're running your own custom scripts.
Map Source Types
Maperitive currently supports the following map source types:
- OSM XML files, both uncompressed (.osm extension) or compressed (.osm.bz2 extension)
- OSM PBF files (.pbf extension) - these are equivalent to OSM XML files, but more compact and faster to load.
- GPX files
- Contour files: these are SQLite database files generated using generate-contours (TODO) command and contain relief contours.
- Georeferenced Images
Loading Georeferenced Images
Georeferenced images can be drawn either in the background or in the foreground, depending on the nature of the image:
- Image which contains semitransparent data (like hillshading) is best drawn in the foreground, otherwise the image might be overlapped or hidden by some other map sources.
- Opaque images might hide other data, so they are usually drawn in the background.
load-source Command always loads images so that they are drawn in the background. If you need to control this, you should use load-image Command instead.
Loads the berlin.osm OSM XML file stored in the maps directory.
Loads the berlin.osm.pbf OSM PBF file stored in the maps directory.
Loads the Switzerland.contours relief contours file.
Loads the Current.gpx GPX file stored in the mytracks directory.