[Qgis-user] Qgis web client resize map issue
mirko
mirko.lavalle78 at gmail.com
Tue Apr 2 03:44:19 PDT 2013
Hi,
who as me has problems with map panel resize in qgis web client when right
panel (attribute panel) has been opened can try following code. I have not
tested it with all browsers but it should work.
I don't know if it has been fixed in last release. If not this is what i
have done in an old version:
1. Css modify: add the following:
#geoExtMapPanel { width: 100%; height: 100%; }
#geoExtMapPanel .x-panel-bwrap { height: 100%; }
#geoExtMapPanel .olMap { height: 100%; overflow: hidden; display: block;
}
#geoExtMapPanel .olMapViewport { height: 100%; display: block; }
2. Make a backup of WebgisInit.js. Modify some code into WebgisInit.js:
find this line: "geoExtMap" map object ( geoExtMap = new GeoExt.MapPanel
);
Comment following lines:
width: MapPanelRef.getInnerWidth(),
height: MapPanelRef.getInnerHeight(),
Add following lines:
layout: 'fit',
width: '100%',
height: '100%',
flex: 1,
3. Make a backup of GUI.js. Modify some code into GUI.js:
- find this: id: "CenterPanel";
- If not present add following line:
* flex: 1,
- find this line: id: 'MapPanel',
- if not present add following lines:
* layout: 'fit',
* flex: 1,
I hope this can be useful to someone.
Regards
Mirko
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Qgis-web-client-resize-map-issue-tp5044037.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
More information about the Qgis-user
mailing list