js/jquery.mapael.js
function(isInit) {
                var containerWidth = self.$map.width();

                if (self.paper.width !== containerWidth) {
                    var newScale = containerWidth / self.mapConf.width;
                    // Set new size
                    self.paper.setSize(containerWidth, self.mapConf.height * newScale);

                    // Create plots legend again to take into account the new scale
                    // Do not do this on init (it will be done later)
                    if (isInit !== true && self.options.legend.redrawOnResize) {
                        self.createLegends("plot", self.plots, newScale);
                    }
                }
            }
function(isInit) {
                var containerWidth = self.$map.width();

                if (self.paper.width !== containerWidth) {
                    var newScale = containerWidth / self.mapConf.width;
                    // Set new size
                    self.paper.setSize(containerWidth, self.mapConf.height * newScale);

                    // Create plots legend again to take into account the new scale
                    // Do not do this on init (it will be done later)
                    if (isInit !== true && self.options.legend.redrawOnResize) {
                        self.createLegends("plot", self.plots, newScale);
                    }
                }
            }
function ( isInit ) { var containerWidth = self . $map . width ( ) ; if ( self . paper . width !== containerWidth ) { var newScale = containerWidth / self . mapConf . width ; // Set new size self . paper . setSize ( containerWidth , self . mapConf . height * newScale ) ; // Create plots legend again to take into account the new scale // Do not do this on init (it will be done later) if ( isInit !== true && self . options . legend . redrawOnResize ) { self . createLegends ( "plot" , self . plots , newScale ) ; } } }
Function that actually handle the resizing
Function that actually handle the resizing