dbox legend in ms4w
Sam Young
samnyoung at HOTMAIL.COM
Wed Nov 8 11:44:23 PST 2006
I am having trouble getting my legend to display and function properly using
the dbox application (which is a really great application thanks to the
author!). It was suggested to me that I put an alert in the code to debug
it, however I'm not making anyway. Does anyone have any suggestions? Below
is the code where I think the error is located, but I'm not sure.
window.onload = function() {
main.initialize();
reference.initialize();
container.initialize();
domouseclick('zoomin');
// legend setup
var legend_xml = get_content(config.dlegend_xml_executable + "?map=" +
config.mapfile + "&server=" + config.dlegend_server);
alert(legend_xml);
legend.initialize("legend_container", legend_xml);
legend.setHandler(DLEGEND_CLICK, ms.setLayer);
ms.draw();
}
Thanks,
Sam
_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with
Live Search!
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline
More information about the MapServer-users
mailing list