https://github.com/fixelr-innovative/leaflet.printage
A leaflet plugin that allows users to Print Map with a scaled-up version of the visible map.
https://github.com/fixelr-innovative/leaflet.printage
image jquery leaflet leaflet-map leaflet-plugin library
Last synced: 3 months ago
JSON representation
A leaflet plugin that allows users to Print Map with a scaled-up version of the visible map.
- Host: GitHub
- URL: https://github.com/fixelr-innovative/leaflet.printage
- Owner: Fixelr-Innovative
- License: mit
- Created: 2024-09-16T19:18:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T20:18:28.000Z (over 1 year ago)
- Last Synced: 2025-10-16T23:19:40.362Z (6 months ago)
- Topics: image, jquery, leaflet, leaflet-map, leaflet-plugin, library
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Printage
## General information
A [leaflet](http://www.leafletjs.com) plugin that allows users to receive a map as an Image/Pdf and donwload it.
* Opportunities:
- Compatible with Leaflet v1+.
- The ability to increase the area of the map without increasing.
- Simple layers will show on image.
- Tiles ssupport: OSM, MapBox, etc.
## Usage
**Step 1.** Include the required js and css files in your document.
```html
```
**Step 2.** Add the following line of code to your map script
``` js
L.control.Printage().addTo(mymap);
```
**Step 3.**
You can pass a number of options to the plugin to control various settings.
| Option | Type | Default | Description |
| --------------------|--------------|--------------|---------------|
| position | String | 'topright' | Position the print button |
| title | String | 'Get image' | Sets the text which appears as the tooltip of the control button |
| printControlLabel | String | '🖶' | Sets icon to the control button |
| printControlClasses | Array | [] | Sets classes to the control button |
| maxScale | Int | 10 | Max image scale |
| minScale | Int | 1 | Min image scale |
| inputTitle | String | 'Choose scale:' | Title before scale input |
| downloadTitle | String | 'Download' | Text on the download button |