Attention! Do you have any ideas for reorganizing and updating the Mapki? Please leave a note here. Thank you!
Changing Map Div Size
From Google Mapki
In some rare instances you may want to change the size of the map div. If you are doing so you also in way that does NOT involve resizing the browser window you must be sure to call onResize(); after changing the map div's values.
Consider the following: For example if you wanted to let the user change the map window size by inputing new heights and width values you might have code that looks something line:
var width = someValueFromUI; //(in pixels, e.g. 500px)
var height = someValueFromUI; //(in pixels, e.g. 300px)
var mapdiv = document.getElementById('map');
if (mapdiv){
mapdiv.style.width=width;
mapdiv.style.height=height;
}
map.checkResize();
/* Here we let the map engine know
* that we have changed the size of the div.
*/
