<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6002.18309" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>First,</FONT></DIV>
<DIV><FONT face=Arial size=2>Do NOT mess with constants. They are in ALL CAPS to
let you know they are constants and they should not be messed with unless you
are purposely overwriting them in a new class and know what you are
doing.</FONT></DIV>
<DIV><FONT face=Arial size=2>If you want the layer to only display at certain
zoom levels, then use maxResolution (or maxScale, I would NOT mess with
maxExtent for Google layers).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Second,</FONT></DIV>
<DIV><FONT face=Arial size=2>You do not need the RadioButton plugin (it has in
fact been depricated). If you use "nodeType:'gx_baselayercontainer'", then it
creates a tree loader that automatically creates the baseLayer nodes with a
checkedGroup attribute. Any layerNode configured with a 'checkedGroup' will
render with a radio button instead of a checkbox and interact with the other
layerNodes that share the same 'checkedGroup' value.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Third,</FONT></DIV>
<DIV><FONT face=Arial size=2>It looks like your code is correct for the
ZoomSlider & ZoomSliderTip. I think the issue is that you messed with the
MAX_ZOOM_LEVEL & MIN_ZOOM_LEVEL constants.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt Priour<BR>Kestrel Computer
Consulting<BR></FONT><FONT face=Arial size=2></FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><FONT face=Arial></FONT><FONT face=Arial></FONT><FONT
face=Arial></FONT><FONT face=Arial></FONT><FONT face=Arial></FONT><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A
title="mailto:hfpmartins@gmail.com CTRL + Click to follow link"
href="mailto:hfpmartins@gmail.com">Hugo</A> </DIV>
<DIV><B>Sent:</B> Thursday, October 28, 2010 3:09 PM</DIV>
<DIV><B>To:</B> <A
title="mailto:users@geoext.org CTRL + Click to follow link"
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] LayerNodeUI and ZoomSlider</DIV></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>Hello
all,<BR><BR>At the moment i'm facing two problems in my app. The first is
related with baselayers from google in a tree with the RadioButton plugin. The
thing is: if i define the baselayer node not to be expanded the layer is
correctly displayed, however when i expand the base layer node i get a blank map
and only after selecting a new baselayer things get drawn again. If instead i
define the baselayer node to be expanded the layers are all shifted to the upper
left corn of the mappanel but no blank map is being displayed as in the first
option. I've just used the example tree.html to implement the
treepanel.<BR><BR>Is this a known problem or is there any other way to
accomplish this? If i use a normal tree panel without the radiobutton plugin
everything works fine... but obsviously i'm willing to get the radio button
there. Any suggestions?<BR><BR>My second problem, i have alreadey posted some
days ago but got no feedback. I have a sacle combobox and a zoomslider control.
When the app is loaded the scale shown in the combobox is different then the one
on the zoomslider (1:6933504 vs 1:108336). If i drag it to increase zoom,
nothing happens at the first time but from there it starts to make the zooms and
the scale values are the same between the zoomslider and the scale combobox.
However, i'm not able to zoom to the fullextent with the zoomslider anymore. I
think this is related with my definitions on the zoom levels of google base
layers. Here is my code:<BR><BR>var gstreets = new
OpenLayers.Layer.Google(<BR>
"Google Streets",<BR>
{MIN_ZOOM_LEVEL: 6,
MAX_ZOOM_LEVEL: 20, 'type': G_NORMAL_MAP, 'sphericalMercator':
true}<BR> );<BR> var gsat = new
OpenLayers.Layer.Google(<BR>
"Google Satellite",<BR>
{MIN_ZOOM_LEVEL: 6,
MAX_ZOOM_LEVEL: 20, 'type': G_SATELLITE_MAP, 'sphericalMercator':
true}<BR> );<BR clear=all><BR><BR>var mapPanel = new
GeoExt.MapPanel({<BR>
region: 'center',<BR>
id: 'mappanel',<BR>
height:
377,<BR>
width: 500,<BR>
map: map,<BR>
tbar: [toolbar,
zoomSelector],<BR>
border: true,<BR>
items: [{<BR>
xtype:
"gx_zoomslider",<BR>
vertical:
true,<BR>
height:
100,<BR>
x:
10,<BR>
y:
20,<BR>
plugins: new
GeoExt.ZoomSliderTip({<BR>
template: "<div> Escala: 1:{scale}</div><div> Resolução:
{resolution}</div><div> ZOOM:
{zoom}</div>"<BR>
})<BR>
}]<BR>});<BR><BR>The
scale combobox code is the same as the online example. <BR><BR>Both these
problems are not throwing any errors into the firebug console.<BR>Any help is
more than appreciated ;)<BR>Thanks in advance,<BR><BR>Hugo<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>