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 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 href="http://www.nabble.com/MapGuide-Users-f14845.html">MapGuide Users mailing list archive</a> at Nabble.com.<br>