VDS Technologies


Map height 100%

5/14/2015 3:39:56 AM
Total Posts 1

Map height 100%

How to set the map's height to 100% ?

I have set the Map's Width and Height to 100%, but while the Height property does not seem to work.

5/14/2015 8:09:55 AM
Total Posts 329

Re: Map height 100%

It is necessary to set the height of the element that contains the Map control.

For example, if this is an UpdatePanel, apply a CSS style with min-height:100% to the panel:

    html, body {  margin: 0px;  padding: 0px; height: 100%;  overflow:hidden; }   
    #UpdatePanel1 {    position:absolute; min-height: 100%; width: 100%; height: 100%;  }

     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <aspmap:map id="map" runat="server" Width="100%"  Height="100%" MapTool="Pan" 
       BackColor="#99B3CC" ImageFormat="Png">

There is an example at http://www.vdstech.com/AspMapSamples/default.aspx