Select to view content in your preferred language

"Map only" print option

487
1
Jump to solution
01-19-2023 10:21 AM
LefterisKoumis
Frequent Contributor

Is there a way to remove the "Map only" tab from the print widget? 

Defining the layouts it only affects the options under the Layout tab.

LefterisKoumis_0-1674152560965.png

 

 

const print = new Print({
  view,
  printServiceUrl:
    "https://XXX",
  templateOptions: {
    title: "",
    nnorthArrowEnabled: true,
    layout: "a3-landscape",
  },
});

 

0 Kudos
1 Solution

Accepted Solutions
JoelBennett
MVP Regular Contributor

In the Print widget sample, if I add the following within the style tag, the "Map only" tab disappears:

.esri-print__layout-tab[data-tab-id="mapOnlyTab"] {
	visibility: hidden;
}

The same should work if you add it somewhere in your own CSS.

View solution in original post

1 Reply
JoelBennett
MVP Regular Contributor

In the Print widget sample, if I add the following within the style tag, the "Map only" tab disappears:

.esri-print__layout-tab[data-tab-id="mapOnlyTab"] {
	visibility: hidden;
}

The same should work if you add it somewhere in your own CSS.