What code do I add so the popup will automatically maximize on click?

587
3
Jump to solution
12-19-2018 09:14 AM
GajananBalasubramaniam1
New Contributor III

Will this be added to MapManager.js or PopupManager.js and what code do I add?          

is it? map.infoWindow.maximize(); 

Thanks

Tags (1)
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

In the MapManager _show2DWebMap function inside the "mapDeferred.then" after the map.infoWindow.resize(270, 316) Add:

map.infoWindow.on("show", function(evt){
  map.infoWindow.maximize();
});

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

In the MapManager _show2DWebMap function inside the "mapDeferred.then" after the map.infoWindow.resize(270, 316) Add:

map.infoWindow.on("show", function(evt){
  map.infoWindow.maximize();
});
GajananBalasubramaniam1
New Contributor III

Thanks Robert! 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

0 Kudos