Documentation33ChangeLog » History » Version 2
« Previous -
Version 2/12
(diff) -
Next » -
Current version
Anonymous, 09/09/2011 12:24 AM
HSLayers 3.3 ChangeLog¶
Differences from 3.2¶
- OWS Client restructuralization
- Added InitBus
- Added Permalink
- Embeded
- MapPortal initialization
MapPortal Initialization¶
before 3.3 Version
geoportal = new HSLayers.MapPortal({renderTo: Ext.get("map"),
....
});
map = geoportal.initMap(mapOptions,projections,undefined,{..... });
So basically, there where 2 steps: create geoportal object and initilialize Map object
Since 3.3 (trunk) version¶
SInce 3.3, you have to do only one step, rest will be done automatically. All options are used by the constructor of HSLayers.MapPortal
geoportal = new HSLayers.MapPortal({renderTo: Ext.get("map"), layout: "fit",height: Ext.get("map").dom.clientHeight, mapOptions: mapOptions, panels:["layerSwitcher", "infoPanel", "owsPanel", "wmsPanel","printerPanel"], stateUrl: "/php/statusmanager/index.php", panZoomBar: { dummyScales: [ {scale:1000000,label:"Státy"}, {scale: 200000,label:"Města"}, {scale: 5000,label:"Obec"}, {scale: 500,label:"Katastr"} ]} }); map = geoportal.map;