<div dir="ltr"><div>This is the ugly answer:</div><div><br></div><div>app.dispatch({type: "MAPSOURCE_LAYER_VIS", mapSourceName: 'source', layerName: 'layer', on: true});</div><div><br></div><div>We should write a wrapper function to make that easier.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 30, 2018 at 9:02 AM Reynolds, Michael J. (MNIT) <<a href="mailto:mike.reynolds@state.mn.us">mike.reynolds@state.mn.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looking for the object and method that will toggle a layer visibility from an Action or Service.<br>
<br>
I didn't see examples within the docs or existing services/actions.<br>
<br>
On a related note, the geomoose search service, doesn't seem to turn on the layer being searched.  It shows a results layer but along with it, we'd like to have the  whole layer appear as reference.  Do we have our search configured wrong?<br>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div>