Giter VIP home page Giter VIP logo

mapbox-print-pdf's Issues

canvg dependency issue

Failed to compile.

./node_modules/canvg/dist/browser/canvg.min.js
Module not found: Error: Can't resolve 'canvas' in 'node_modules/canvg/dist/browser'

Fixed Scale

Is there a way to force the map to print at the current map scale (or setting a map scale) instead of having it resizing to fit the document size? I am working on getting a fixed scale (1" to x ft or mi) on my print maps. This is one of the last pieces of that I still need in order to not have to open a desktop client to print a simple map.

Bug in html2canvas for IE11

Html2canvas sometimes fails in ie because a member cannot be accessed, a fix exists but isn't merged. For now a fork is used but should be removed when the fix is done.

Non full width header

I cant seem to wrap my head around the header and footer scaling, and where the size of the map gets determined. What I am trying to do is have another element on the side of the page (for a legend), instead of on the top or bottom (due to an unknown number of items in the legend). So, is it possible to either create a new html element for this sidebar, or push the header to the side of the document and not be 100% width, or maybe push the map x pixels to the left or right?

Thanks

Print doesn't include mapbox markers placed on map

Excellent library. One issue we are running into which prevents us from getting full use out of this is that the markers and other items placed on the map as a new Marker object or even new Popup do not appear on the printouts.

Any idea how to get those on the final printouts along with the mapbox layers currently shown on the map?

Thank you.

The load event in mapbox fires before everything has been rendered.

As stated the 'load' event for the rendered map is fired before everything has been properly rendered, resulting in missing features in the image. Current workaround is to listen for the 'render' event and wait in intervals of 500 milliseconds, if no render event happened during that time the map is considered done.

This is undesirable for a multitude of reasons but the primary problem is that the "fix" might fail horribly under some condition such as poor network connectivity or possibly even a slow machine.

Possibly related are the following mapbox-gl -js issues 1, 2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.