load-source Command

Contents

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).

Usage

 load-source <map source location>

Parameters:

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:

Loading Georeferenced Images

Georeferenced images can be drawn either in the background or in the foreground, depending on the nature of the image:

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.

Examples

load-source maps/berlin.osm

Loads the berlin.osm OSM XML file stored in the maps directory.

load-source maps/berlin.osm.pbf

Loads the berlin.osm.pbf OSM PBF file stored in the maps directory.

load-source Switzerland.contours

Loads the Switzerland.contours relief contours file.

load-source mytracks/Current.gpx

Loads the Current.gpx GPX file stored in the mytracks directory.

See also: