Documentation33ChangeLog » History » Version 2

Anonymous, 09/09/2011 12:24 AM

1 1 Anonymous
h1. HSLayers 3.3 ChangeLog
2 1 Anonymous
3 1 Anonymous
h2. Differences from 3.2
4 1 Anonymous
5 1 Anonymous
* OWS Client restructuralization
6 1 Anonymous
* Added InitBus
7 1 Anonymous
* Added Permalink
8 1 Anonymous
* Embeded
9 1 Anonymous
* MapPortal initialization
10 1 Anonymous
11 1 Anonymous
h3. MapPortal Initialization
12 1 Anonymous
13 1 Anonymous
h4. before 3.3 Version
14 1 Anonymous
<pre>
15 1 Anonymous
 geoportal = new HSLayers.MapPortal({renderTo: Ext.get("map"),
16 1 Anonymous
                     .... 
17 1 Anonymous
                       });
18 1 Anonymous
19 1 Anonymous
map = geoportal.initMap(mapOptions,projections,undefined,{..... });
20 1 Anonymous
</pre>
21 1 Anonymous
22 1 Anonymous
So basically, there where 2 steps: create geoportal object and initilialize Map object
23 1 Anonymous
24 1 Anonymous
h4. Since 3.3 (trunk) version
25 1 Anonymous
26 1 Anonymous
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@
27 1 Anonymous
<pre>
28 1 Anonymous
29 1 Anonymous
            geoportal = new HSLayers.MapPortal({renderTo: Ext.get("map"),
30 1 Anonymous
                    layout: "fit",height: Ext.get("map").dom.clientHeight,
31 1 Anonymous
                    mapOptions: mapOptions,
32 1 Anonymous
                    panels:["layerSwitcher", "infoPanel",
33 1 Anonymous
                    "owsPanel", "wmsPanel","printerPanel"],
34 1 Anonymous
                    stateUrl: "/php/statusmanager/index.php",
35 1 Anonymous
                    panZoomBar: { dummyScales: [
36 1 Anonymous
                                    {scale:1000000,label:"Státy"},
37 1 Anonymous
                                    {scale: 200000,label:"Města"},
38 1 Anonymous
                                    {scale: 5000,label:"Obec"},
39 1 Anonymous
                                    {scale: 500,label:"Katastr"}
40 1 Anonymous
                                ]}
41 1 Anonymous
                    }); 
42 2 Anonymous
43 2 Anonymous
       map = geoportal.map;
44 1 Anonymous
</pre>