Print - What I see is not what I get

553
4
05-30-2018 05:21 AM
CarstenAndersson
Occasional Contributor

I have an web application created using Esri Javascript API 4.7. There I am using a Print widget, and I am point to the view of the map. But, the result look completely different from what I see on the screen.

The code is as follows:

new Print({
   view: app.mapView,
   templateOptions: {
      legendEnabled: true,
      scaleEnabled: true
   }
})

What I see on the view:

What I see in the result of the print:

I am not sure which other properties I can set when I instanciate the Print widget. Neither the colors on the map, nor the legend or the scale bar looks anything like what I see on the view. What am I missing?

Any help is greatly appreciated.

Regards

Carsten

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Carsten,

   What happen when you go to the advanced options in the print widget and check set scale?

0 Kudos
CarstenAndersson
Occasional Contributor

Hi Robert.

The Set scale check box is called "Indstil skala" in Danish. It is already checked like this:

0 Kudos
Noah-Sager
Esri Regular Contributor

Hi Carsten,

In addition to Robert's question, what type of layer are you adding to the map? If you could share your code, that would help to test as well.

0 Kudos
CarstenAndersson
Occasional Contributor

Hi Noah.

It's an ImageryLayer. I can send source code to you 🙂

0 Kudos