[OpenLayers-Users] How to enlarge Map size

Alexandre Dube adube at mapgears.com
Fri Feb 25 10:00:18 EST 2011


Hi,

Look at the "smallmap" class inside the example css file :

http://dev.openlayers.org/releases/OpenLayers-2.10/examples/style.css

You'll see that the map size is determined by its <div> container. You 
simply need to define it :

<div id='map' style='width: 800px; height: 800px;'></div>

Alexandre


On 11-02-25 08:56 AM, Mustafa646 wrote:
> <div id= "Map", class= "smallmap">
> by using this code, we can only show small map.
> How to enlarge the Map or how we can set the width and height ?


-- 
Alexandre Dubé
Mapgears
www.mapgears.com



More information about the Users mailing list