-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Here we will cover the configuration for the several functionalities available in map_print
.
The purpose of MapPrint is to provide a way to print maps from different sources to png or pdf. Not only base layers like bing or osm but also GeoJSON specified elements on the map. It also provides ways to create elements around the maps like placing images, texts, a scalebar or a legend!
The usage is mainly to create a huge hash which contains all the information for the map, and generate it using that information.
This hash consists of some high level entries:
-
Specify either
png
orpdf
. -
PDF Options are directly passed on to Prawn to generate the pdf document. See here for more info. Will be ignored if format is
png
. -
Includes dimensions and background color. Will be ignored if format is
pdf
. -
Contains bounding latitudes and longitudes, as well as zoom, position and printed final size. It also contains the layers and GeoJSON.
-
Place a scalebar anywhere on the image or pdf. Over the map or elsewhere!
-
Use for reference of objects printed on top of the map
-
Place images anywhere on the png or pdf. Allowing you to place logos and other references.
-
You can place descriptions of your map around it.