All Projects → TheGartrellGroup → Mapbox Gl Print Export For Port

TheGartrellGroup / Mapbox Gl Print Export For Port

Licence: mit
Print/Export for Mapbox GL

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Mapbox Gl Print Export For Port

Markdown Themeable Pdf
ARCHIVED. NOT MAINTAINED. Themeable Markdown Converter (Print to PDF, HTML, JPEG or PNG)
Stars: ✭ 130 (+828.57%)
Mutual labels:  pdf, png, print
mapbox-gl-export
This module adds print control to mapbox-gl.
Stars: ✭ 45 (+221.43%)
Mutual labels:  export, png, mapbox-gl-js
Deck
Slide Decks
Stars: ✭ 261 (+1764.29%)
Mutual labels:  pdf, png
Redux Offline Docs
Redux documentation in PDF, ePub and MOBI formats for offline reading.
Stars: ✭ 292 (+1985.71%)
Mutual labels:  pdf, print
Govips
A lightning fast image processing and resizing library for Go
Stars: ✭ 442 (+3057.14%)
Mutual labels:  pdf, png
vue-mapbox-map
A minimalist Vue component wrapping Mapbox GL or MapLibre GL for dynamic interaction!
Stars: ✭ 26 (+85.71%)
Mutual labels:  mapbox-gl-js, mapbox
angular-mapboxgl-directive
AngularJS directive for Mapbox GL
Stars: ✭ 43 (+207.14%)
Mutual labels:  mapbox-gl-js, mapbox
One File Pdf
A minimalist Go PDF writer in 1982 lines. Draws text, images and shapes. Helps understand the PDF format. Used in production for reports.
Stars: ✭ 429 (+2964.29%)
Mutual labels:  pdf, printing
ngx-print
🖨️ A plug n' play Angular (2++) library to print your stuff
Stars: ✭ 124 (+785.71%)
Mutual labels:  printing, print
Martin
Blazing fast and lightweight PostGIS vector tiles server
Stars: ✭ 540 (+3757.14%)
Mutual labels:  mapbox, mapbox-gl-js
Gutenberg
Modern framework to print the web correctly.
Stars: ✭ 4,425 (+31507.14%)
Mutual labels:  print, printing
Pocorgtfo
a "Proof of Concept or GTFO" mirror with extra article index, direct links and clean PDFs.
Stars: ✭ 560 (+3900%)
Mutual labels:  pdf, print
impact-tools
Simple blueprints for change-makers
Stars: ✭ 34 (+142.86%)
Mutual labels:  mapbox-gl-js, mapbox
ipp.rs
IPP protocol implementation for Rust
Stars: ✭ 24 (+71.43%)
Mutual labels:  printing, print
web-maps-wcag-evaluation
Manual accessibility evaluation of popular web map tools.
Stars: ✭ 28 (+100%)
Mutual labels:  mapbox-gl-js, mapbox
Mapdeck
R interface to Deck.gl and Mapbox
Stars: ✭ 296 (+2014.29%)
Mutual labels:  mapbox, mapbox-gl-js
Pagedown
Paginate the HTML Output of R Markdown with CSS for Print
Stars: ✭ 619 (+4321.43%)
Mutual labels:  pdf, printing
iOS-AirPrint-for-Mac
enable iOS Airprint Sharing on Mac OS
Stars: ✭ 24 (+71.43%)
Mutual labels:  printing, print
react-mapboxgl
Declarative React components for mapbox-gl-js.
Stars: ✭ 15 (+7.14%)
Mutual labels:  mapbox-gl-js, mapbox
Cairosvg
Convert your vector images
Stars: ✭ 453 (+3135.71%)
Mutual labels:  pdf, png

Print Control for Mapbox GL

PDF and PNG exports for the Port of Portland

Originally created as a Mapbox (MB) Control, it's now implemented as a link/button feature.

Dependencies:

  • Canvas To Blob
  • JSPDF
  • PDF-JS
  • FileSaver
  • HTML2Canvas
  • Mapbox GL

How To:

  • Users pass both the map and a set of options to PrintControl.prototype.initialize(map, printOptions)
      var printOptions = { disclaimer: 'This is my map disclaimer', northArrow: '../path/to/img.svg', defaultTitle: 'My Map' }
    
  • Add a bootstrap modal - example found in index.html
  • Ensure NavigationControl, ScaleControl, and LayerTree are included
  • PrintControl.prototype.initialize(map, options) initializes the export process and displays a modal
    • Dimensions (always in landscape)
      • 8.5 x 11 inches
      • 11 x 17 inches
    • File Type
      • PNG
      • PDF
  • PrintControl.prototype.exportMap() fires the modal form input

Notes:

Per the Port's request:

  • Dimensions are always in landscape
  • Legends are only displayed on the 11 x 17
    • Layer names and icons are derived from the Layer Tree
  • Export/Print will only export the appropriate aspect ratio from the center of the map - any large boundaries that don't fit within the appropriate aspect ratio will be cropped and ignored
  • DIST folder includes minified src

Development:

  • yarn
  • gulp to run locally on Port 8000 and livereload
  • gulp build to build DIST files (js/css)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].