[Geomoose-users] Toggle or Turn A Layer On or Off Programmatically from an Action or Service
Dan Little
theduckylittle at gmail.com
Fri Aug 31 08:21:49 PDT 2018
This is the ugly answer:
app.dispatch({type: "MAPSOURCE_LAYER_VIS", mapSourceName: 'source',
layerName: 'layer', on: true});
We should write a wrapper function to make that easier.
On Thu, Aug 30, 2018 at 9:02 AM Reynolds, Michael J. (MNIT) <
mike.reynolds at state.mn.us> wrote:
> Looking for the object and method that will toggle a layer visibility from
> an Action or Service.
>
> I didn't see examples within the docs or existing services/actions.
>
> 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?
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20180831/4a819193/attachment.html>
More information about the Geomoose-users
mailing list