<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Sorry, the attachment<br><br><hr id="stopSpelling">From: estelle_ancelet@hotmail.fr<br>To: users@geoext.org<br>Date: Mon, 22 Mar 2010 14:31:04 +0100<br>Subject: [Users] ScaleSelectorCombo issue<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;text-underline:single;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:#606420;text-decoration:underline;text-underline:single;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">Hi all,</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">I have an issue
with the ScaleSelectorCombo developed by Cedric Moullet (<a href="http://dev.geoext.org/sandbox/cmoullet/ux/ScaleSelectorCombo/examples/ScaleSelectorComboExample.html">http://dev.geoext.org/sandbox/cmoullet/ux/ScaleSelectorCombo/examples/ScaleSelectorComboExample.html</a>).</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">In my
interface, the Combobox allowing to switch scales stucks at “<i style="">1 : undefined”</i> (see in the attached).</span></p><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;text-underline:single;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:#606420;text-decoration:underline;text-underline:single;}
@page Section1
{size:595.3pt 841.9pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">I don’t
know where this issue comes from.</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">I specify
that when I run the ScaleSelectorComboExample.html in my own server it works.</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">Also, the zoom-chooser
example works (<a href="http://dev.geoext.org/trunk/geoext/examples/zoom-chooser.html">http://dev.geoext.org/trunk/geoext/examples/zoom-chooser.html</a>).</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">Thanks
for any help.</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">Estelle</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">Here is my code:</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal">var map; </p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">Ext.onReady(function()
{</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">var
options, layer;</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span></span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">options = {</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>maxExtent: new OpenLayers.Bounds(0,
1300000, 1500000, 3000000),</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>maxResolution: 'auto',</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>controls: [new
OpenLayers.Control.KeyboardDefaults(),new
OpenLayers.Control.MousePosition({"numDigits": 2}),new
OpenLayers.Control.Navigation(), new OpenLayers.Control.Scale()],</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>scales: [12500, 25000, 50000,
100000, 200000, 500000,1500000],</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>units: 'm',</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>projection: new
OpenLayers.Projection("EPSG:27572"),</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>};</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">map = new
OpenLayers.Map(options);</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span></span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span></span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">var
scaleSelectorCombo = new GeoExt.ux.form.ScaleSelectorCombo({</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>map: map,</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>fakeScaleValue: ["12500",
"25000", "50000", "100000", "200000",
"500000","1500000"]</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>});</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"> </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB">var
viewport = new Ext.Viewport({</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>layout:
'border',</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>items:
[{</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>region:'center',</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>id:
"mappanel",</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span></span>title:
‘Title’,</p>
<p class="ecxMsoNormal"><span style=""> </span><span style="" lang="EN-GB">xtype: 'gx_mappanel',</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>map:
map,</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>split:
true,</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>layers:
[wms18,wms7,wms5],</span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>contentEl:
'center',<span style=""> </span></span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span>bbar:
[scaleSelectorCombo] </span></p>
<p class="ecxMsoNormal"><span style="" lang="EN-GB"><span style=""> </span><span style=""> </span></span>}]</p>
<p class="ecxMsoNormal"><span style=""> </span>});
</p>
<p class="ecxMsoNormal"> </p>
<p class="ecxMsoNormal"><span style=""> </span>}); </p>
                                           <br><hr>Envie de naviguer sur Internet sans laisser de trace? <a href="http://clk.atdmt.com/FRM/go/207186970/direct/01/">La solution avec Internet Explorer 8</a>                                            <br /><hr />Commander un cadeau en ligne discrètement? <a href='http://clk.atdmt.com/FRM/go/207186971/direct/01/' target='_new'>Voir la solution offerte par Internet Explorer8</a></body>
</html>