<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The legend builder tries to minimize the use of "full rebuild" thus, if
you do not create a new "runtime map layer", but reuse the existing,
the layer GUID has not changed, and the legend will not refresh.<br>
You might consider adding some extra dummy parameter to the image url
to prevent browser cache problems.<br>
I hope that helps.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
J Manafi skrev:
<blockquote cite="mid:16943254.post@talk.nabble.com" type="cite">We are
trying to allow users to define temporary, session layers with custom
symbols as icons. They are able to add layers to the map, where we
create the LayerDefinitions and store them in the repository. We now
want to allow them to remove layers from the map. To do that, I have
setup a script that deletes the FeatureSource from the repository and
then deletes the LayerDefinition too. Everything seems to work;
however, when we try to redefine a layer with the same name but
different symbols, the map displays the update correctly but the legend
shows the originally defined symbol as the layer icon.<br>
<br>
But, in FireBug, when I inspect the html for generating the legend
layer icon, it shows the updated symbol information as the image. We
are performing mapFrame refreshes, and manually refreshing the legend
makes no difference for the icon.<br>
<br>
Is there something that I am forgetting to do in the process in order
to be able to remove and then redefine a LayerDefinition in the session
repository with a different symbol set?
<br>
<hr align="left" width="300">View this message in context: <a
moz-do-not-send="true"
href="http://www.nabble.com/Adding-removing-temporary-layers-from-session-repository-tp16943254p16943254.html">Adding/removing
temporary layers from session repository</a><br>
Sent from the <a moz-do-not-send="true"
href="http://www.nabble.com/MapGuide-Users-f14845.html">MapGuide Users
mailing list archive</a> at Nabble.com.<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>