Re[mapguide-internals] building layers in the DWF viewer after
creating a new feature.
Walt Welton-Lair
walt.welton-lair at autodesk.com
Fri Jul 18 12:26:13 EDT 2008
Setting the ForceRefresh flag is correct, but to actually make it happen you have to initiate it client side by calling the Refresh method on (I believe) the mainframe. The DWF Viewer will then make the server request to reload the data for that layer.
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Carl Jokl
Sent: Friday, July 18, 2008 4:17 AM
To: mapguide-internals at lists.osgeo.org
Subject: Re[mapguide-internals] building layers in the DWF viewer after creating a new feature.
I am currently working with making some code I wrote work with both the Ajax
and DWF viewer. The code relating to feature creation was originaly created
and tested with the Ajax viewer. The problem is that when a new feature is
added to a layer on the AJAX viewer it is visible straight away. On the DWF
viewer I have to do things like zooming around or turning the layer off and
back on again to get the feature to appear. I am trying to do the
programatic calls to get the new feature to appear after insertion as it
does on the Ajax viewer but am not sure what will work. Calling
Layer.ForceRefresh did not make any difference. I would guess someone has
probably come across this problem and can tell me what calls will work to
get new features to appear. I have been told about the notion of rebuilding
a layer rather than just refreshing it but do not know how to tell the layer
to be rebuilt programatically. Whether the code to make this work has to
execute on the client or the server I can work with either one if someone
can suggest what I need to do.
--
View this message in context: http://www.nabble.com/Rebuilding-layers-in-the-DWF-viewer-after-creating-a-new-feature.-tp18524613p18524613.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list