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.
You might consider adding some extra dummy parameter to the image url to
prevent browser cache problems.
I hope that helps.
Regards, Kenneth, GEOGRAF A/S
J Manafi skrev:
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.
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.
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?
------------------------------------------------------------------------
View this message in context: Adding/removing temporary layers from
session repository
<http://www.nabble.com/Adding-removing-temporary-layers-from-session-repository-tp16943254p16943254.html>
Sent from the MapGuide Users mailing list archive
<http://www.nabble.com/MapGuide-Users-f14845.html> at Nabble.com.
------------------------------------------------------------------------
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users