Re: [mapguide-users] React Layout - set layer visibility

2021-07-14 Thread Jackie Ng
MapGuide.Actions.Legend.setLayerVisibility() should be the way to go, but it's not something you call and the layer will be toggled. The object returned by MapGuide.Actions.Legend.setLayerVisibility(sellayer.ObjectId, true) is something you have to dispatch() on your viewer instance for the

Re: [mapguide-users] React Layout - set layer visibility

2021-07-07 Thread svlad . cjelli42
Hi Jackie, many thanks for the new release. In the way I tryed to set the layer visibility programmaticly I cant find a solution. MapGuide.Actions.Legend.setLayerVisibility(sellayer.ObjectId, true); or MapGuide.Actions.Legend.setLayerVisibility(viewer.getMapName(), {id: sellayer.ObjectId,

Re: [mapguide-users] React Layout - set layer visibility

2021-07-06 Thread Jackie Ng
Assuming you are using the latest 0.13.x release, please try the 0.13.3 release I just published today https://github.com/jumpinjackie/mapguide-react-layout/releases/tag/v0.13.3 This release has fixes for inconsistent layer/group visibility on refresh after doing layer/group changes server-side

Re: [mapguide-users] React Layout - set layer visibility

2021-07-05 Thread svlad . cjelli42
: Montag, 05. Juli 2021 um 19:49 Uhr Von: "Gordon Luckett" An: "MapGuide Users Mail List" Betreff: Re: [mapguide-users] React Layout - set layer visibility Normally I would call the server side request to toggle the layer visibility with a _javascript_ ajax call  and then j

Re: [mapguide-users] React Layout - set layer visibility

2021-07-05 Thread Gordon Luckett
Normally I would call the server side request to toggle the layer visibility with a javascript ajax call and then just use javascript to refresh the map without reloading the page. On Mon, Jul 5, 2021 at 4:47 PM Svlad wrote: > Hi, how can I programmatically change the visibility of a layer?

[mapguide-users] React Layout - set layer visibility

2021-07-05 Thread Svlad
Hi, how can I programmatically change the visibility of a layer? I modified and saved the map on server side but the viewer allways sends "hidelayers= layerid" in the request. Is it possible top change the visibility on the client side? Thanks svlad