[Chameleon] Chameleon 2.6 RC1 Broken Update Map in JSAPI

Nolte, Tim Tim.Nolte at ipcswirelessinc.com
Wed Sep 12 14:14:34 EDT 2007


Due to a problem with the Go Back/Forward buttons in JSAPI mode under
v2.4 I tried v2.6b. Now the Update Map button doesn't work in JSAPI
mode. It had worked fine in v2.4. I'm using the custom expander tree
legend that is found on the Wiki. Here's my code and perhaps someone can
help me from here.

[leg_group_html]
<!-- comment on leg_group_html block -->
<div id="group_[leg_group_name]" name="group_[leg_group_name]"
class="legendGroup">
	<script langauge="JavaScript" type="text/javascript">
		oGroup = new cExpander( document.getElementById(
'group_[leg_group_name]' ));
		goExpanderManager.add( oGroup );
	</script>
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
	  <tr>
	    <td width="15" valign="center"  bgcolor="#ffffff"><a
href="javascript:void(0)" onclick="document.getElementById(
'group_[leg_group_name]' ).expander.toggle(); return false;"><img
name="img_[leg_group_name]" id="img_[leg_group_name]"
src="./images/expand.png" border="0"></a></td>
	    <td width="22" valign="top" bgcolor="#ffffff"><img
class="legendExpand" name="cbg_[leg_group_name]"
id="cbg_[leg_group_name]" src="./images/checkbox_1.png" width="13"
height="13" border="0">
	    <td><span
class="generalLabel"><b>[leg_group_name]</b></span></td>
	  </tr>
	</table>
	<script langauge="JavaScript" type="text/javascript">
		oGroup.img = CWCDHTML_GetImage( "img_[leg_group_name]"
);
		oGroup.szExpandImgSrc = "images/expand.png";
		oGroup.szCollapseImgSrc = "images/collapse.png";
		
		oGroupCB = new jsCheckbox(
CWCDHTML_GetImage("cbg_[leg_group_name]"));
		oGroupCB.szOnImgSrc = "images/checkbox_0.png";
		oGroupCB.szOffImgSrc = "images/checkbox_1.png";
		oGroupCB.szPartialImgSrc = "images/checkbox_2.png";
		goCheckboxManager.addChild( oGroupCB );
	</script>
</div>
[/leg_group_html]

[leg_layer_html order=ascending opt_flag=14]
<!-- comment on leg_layer_html block -->
<div id="layer_[leg_layer_name]" style="display:none;"
class="legendLayer">
	<script langauge="JavaScript" type="text/javascript">
		oLayer = new cExpander( document.getElementById(
'layer_[leg_layer_name]' ));
		oGroup.addElement( oLayer );
	</script>
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
	<tr>
	  <td width="15">&nbsp;</td>
	  <td width="19">&nbsp;</td>
	  <td width="22" valign="top" bgcolor="#ffffff">
	  	<input type="checkbox" id="cbl_[leg_layer_name]"
name="legendlayername[]" value="[leg_layer_name]" [if name=layer_status
oper=eq value=1]CHECKED[/if][if name=layer_status oper=eq
value=2]CHECKED[/if]>
	  </td>
	  <td width="19" valign="top">[if name=leg_icon_url
oper=isnull]<img src="[leg_icon width=15 height=15]" width="15"
height="15">[/if][if name=leg_icon_url oper=isset]<img src="[metadata
name=leg_icon_url]" width="15" height="15">[/if]</td>
	  <td><span class="generalLabel">[if name=leg_title_en
oper=isnull]<a href="javascript:void(0);"
onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');">[leg_l
ayer_name]</a>[/if][if name=leg_title_en oper=isset][metadata
name=leg_title_en][/if]</span>
	  </td>
	</tr>
	</table>
</div>
<script langauge="JavaScript" type="text/javascript">
	oLayerCB = new jsCheckbox( document.getElementById(
'cbl_[leg_layer_name]' ));
	oGroupCB.addChild( oLayerCB );
	}
</script>
[/leg_layer_html]

----
Timothy J Nolte - tnolte at ilpcs.com
Associate Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com



More information about the Chameleon mailing list