[mapguide-users] RE: Refreshing specific layer
kalpesh
kalpesh at pie-solution.com
Wed Feb 7 02:40:52 EST 2007
This does not work in DWF viewer in my case. You have to manually refresh the
layer by right clicking on the layer name in the tree and selecting 'Refresh
xxx layer'
Walt Welton-Lair wrote:
>
> You shouldn't have to change any code. The call to ForceRefresh is on
> the MgLayer which you get from the run-time MgMap, while the
> parent.Refresh call is a script call on the mapframe. Both of these are
> independent of the viewer you're using.
>
> Walt
>
> _____
>
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Chris
> Tallman
> Sent: Thursday, February 01, 2007 7:53 PM
> To: MapGuide Users Mail List
> Subject: RE: [mapguide-users] Refreshing specific layer
>
>
> Thanks Walt that may be the answer. I've seen the question posted
> before but I'm not sure an answer was given. If I do move to a DWF app
> what is the code to refresh one layer?
>
> Chris
>
> _____
>
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Walt
> Welton-Lair
> Sent: Thursday, February 01, 2007 1:08 PM
> To: MapGuide Users Mail List
> Subject: RE: [mapguide-users] Refreshing specific layer
>
>
> Use DWF Viewer. There no browser refreshing involved (no "clicks"), and
> it would only update your GPS layer. This is better for the server
> anyway, since it only needs to process that one layer.
>
> _____
>
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Chris
> Tallman
> Sent: Thursday, February 01, 2007 6:23 PM
> To: MapGuide Users Mail List
> Subject: RE: [mapguide-users] Refreshing specific layer
>
>
> Ok I've got this working. However its a little annoying the whole thing
> needs to refresh as you get all the standard clicks and junk that come
> with a IE page loads. Considering I'm refreshing the layer every 5 to
> 10 seconds is there any other way of updating the layer on the map?
> What I've got is an app dumping GPS locations from a remote source into
> a database, which is feeding the map. I'm trying to keep the map
> updated with this location information.
>
> Any ideas on a better way to get the map updated?
>
> _____
>
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Walt
> Welton-Lair
> Sent: Thursday, February 01, 2007 10:15 AM
> To: MapGuide Users Mail List
> Subject: RE: [mapguide-users] Refreshing specific layer
>
>
> Call ForceRefresh on the layer you want to refresh (to mark it as
> "dirty") and then refresh the map.
>
> In the case of DWF Viewer only that layer will be updated. In the case
> of AJAX it doesn't matter, since all layers need to be redrawn to
> generate the updated map image.
>
> Walt
>
> _____
>
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Chris
> Tallman
> Sent: Thursday, February 01, 2007 4:08 PM
> To: MapGuide Users Mail List
> Subject: [mapguide-users] Refreshing specific layer
>
>
> I know this is probably an easy question and its probably spelled out
> some place but I'm struggling. I need to refresh a specific layer
> automatically from code. Probably JavaScript. I've tried
> parent.refresh() but I think this would refresh the whole map and I
> don't want that along with I can't get it to work anyway. Can someone
> help me out? Point me in the right direction.
>
> The code would be called from the task frame if the helps.
>
>
>
> Chris Tallman
> 260.356.9074
>
>
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://www.nabble.com/Refreshing-specific-layer-tf3155380s16610.html#a8841030
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list