Sorry, the attachment From: [email protected] To: [email protected] 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
<<attachment: 1-undefined.png>>
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
