[Chameleon] Chameleon 2.6 RC1
Nolte, Tim
Tim.Nolte at ipcswirelessinc.com
Fri Sep 7 14:39:58 EDT 2007
Ok, so the problem is in JSAPI mode the Update Map button doesn't do
anything. I can click it all day and it won't update the map. I see your
note about the extra JavaScript. 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"> </td>
<td width="19"> </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