Re[mapguide-internals] building layers in the DWF viewer after creating a new feature.

Walt Welton-Lair walt.welton-lair at autodesk.com
Mon Jul 21 12:34:20 EDT 2008


Are you calling ForceRefresh using the DWF Viewer API or the Web tier API?  It needs to be the former.  JavaScript code would look something like this:

            // DWFViewer is the objectID of the embedded DWF Viewer active control (see initdwfctrl.js in web tier code)
            var EMapViewer = DWFViewer.DocumentHandler;
            var layer = EMapViewer.Document.Layers(1);  // TODO - look up the right layer
            layer.ForceRefresh = true;

I verified just now that this reloads the layer.

Walt

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Carl Jokl
Sent: Monday, July 21, 2008 12:02 PM
To: mapguide-internals at lists.osgeo.org
Subject: RE: Re[mapguide-internals] building layers in the DWF viewer after creating a new feature.


The get map update is being fired however the REFRESHLAYERS attribute has no
value.

--
View this message in context: http://www.nabble.com/Rebuilding-layers-in-the-DWF-viewer-after-creating-a-new-feature.-tp18524613p18571800.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