Select to view content in your preferred language

How do I get the default size of a map popup? (JSAPI 3.x)

1680
2
12-27-2016 10:43 AM
DirkVandervoort
Frequent Contributor

I working on map.infoWindow.resize(x,y) to resize my map popups based on the type and amount of content. This has begged the question:

What is the default size of a map popup and how do I obtain this value?

TIA

0 Kudos
2 Replies
SarojThapa1
Frequent Contributor

By default, the content area for an info window is 250 pixels wide and 100 pixels high. If you have the required modules and objects to call InfoWindow Popup, the default size will be displayed. Or Use

map.infoWindow.resize(250, 100);
RobertScheitlin__GISP
MVP Emeritus

Dirk,

   There are undocumented properties to get that info.

map.infoWindow._positioner.offsetHeight;
map.infoWindow._positioner.offsetWidth;‍‍