Is it possible to use the print function of leaflet with cartojs v.4?

i'm not able to use all this plugins https://leafletjs.com/plugins.html#printexport

The print button works but can i use also all other plugins of leaflet?

for example i'm tryng to use ruler plugin (https://github.com/gokertanrisever/leaflet-ruler) but i've Uncaught TypeError: L.control.ruler is not a function

closed as too broad by PolyGeo Oct 16 '18 at 1:07

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Welcome to GIS StackExchange! As a new user, please be sure to take the tour! When you have a chance, please edit your question to include what happens when you try to use the plugin you referenced - do you receive an error? Does the plugin not install at all? Have you tried anything else? – smiller Oct 12 '18 at 17:32

Maybe the easiest way is to use airship and adding a button in the header section

<header class="as-toolbar">

<button onclick="myFunction()">Print</button>
function myFunction() {

Not the answer you're looking for? Browse other questions tagged or ask your own question.