[Users] ScaleSelectorCombo issue

Estelle A estelle_ancelet at hotmail.fr
Mon Mar 22 14:33:01 CET 2010


Sorry, the attachment

From: estelle_ancelet at hotmail.fr
To: users at geoext.org
Date: Mon, 22 Mar 2010 14:31:04 +0100
Subject: [Users] ScaleSelectorCombo issue










Hi all,

I have an issue
with the ScaleSelectorCombo developed by Cedric Moullet (http://dev.geoext.org/sandbox/cmoullet/ux/ScaleSelectorCombo/examples/ScaleSelectorComboExample.html).

In my
interface, the Combobox allowing to switch scales stucks at “1 : undefined” (see in the attached).

I don’t
know where this issue comes from.

I specify
that when I run the ScaleSelectorComboExample.html in my own server it works.

Also, the zoom-chooser
example works (http://dev.geoext.org/trunk/geoext/examples/zoom-chooser.html).

 

Thanks
for any help.

 

Estelle

 

Here is my code:

 

var map; 

 

Ext.onReady(function()
{

 

var
options, layer;

            

options = {

            maxExtent: new OpenLayers.Bounds(0,
1300000, 1500000, 3000000),

            maxResolution: 'auto',

            controls: [new
OpenLayers.Control.KeyboardDefaults(),new
OpenLayers.Control.MousePosition({"numDigits": 2}),new
OpenLayers.Control.Navigation(), new OpenLayers.Control.Scale()],

            scales: [12500, 25000, 50000,
100000, 200000, 500000,1500000],

                                   units: 'm',

            projection: new
OpenLayers.Projection("EPSG:27572"),

        };

 

 

map = new
OpenLayers.Map(options);

 

 

var
scaleSelectorCombo = new GeoExt.ux.form.ScaleSelectorCombo({

        map: map,

        fakeScaleValue: ["12500",
"25000", "50000", "100000", "200000",
"500000","1500000"]

                        });

 

var
viewport = new Ext.Viewport({

                                               layout:
'border',

                                               items:
[{

                                                                       region:'center',

                                                                       id:
"mappanel",

                                                                       title:
‘Title’,

                                                                       xtype: 'gx_mappanel',

                                                                       map:
map,

                                                                       split:
true,

                                                                       layers:
[wms18,wms7,wms5],



                                                                       contentEl:
'center',        



                                                                       bbar:
[scaleSelectorCombo] 

                                                              }]

                                   });


 

    }); 

 		 	   		  
Envie de naviguer sur Internet sans laisser de trace? La solution avec Internet Explorer 8 		 	   		  
_________________________________________________________________
Hotmail et MSN dans la poche? HOTMAIL et MSN sont dispo gratuitement sur votre téléphone!
http://www.messengersurvotremobile.com/?d=Hotmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100322/15ebfe62/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1-undefined.png
Type: image/png
Size: 3739 bytes
Desc: not available
Url : http://www.geoext.org/pipermail/users/attachments/20100322/15ebfe62/attachment-0001.png 


More information about the Users mailing list