<div dir="ltr"><div dir="ltr">Thanks Dan,<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"14","compose-window":{"secure":false}}"><div><br></div><div>I got it working from that. For anyone's reference here's my full service:</div><div><br></div><div>        app.registerService('select-list', SelectService, {</div><div><br>          // set the default layers<br>          defaultLayer: 'Taxlots_selection-wfs/Taxlots_selection',<br><br>          fields: [{<br>            type: 'select',</div><div>           // specify the default layer<br>            default: 'Taxlots_selection-wfs/Taxlots_selection',</div><div>            // specify and label the list of layers to select<br>            options: [<br>              {value: 'Taxlots_selection-wfs/Taxlots_selection', label: 'Taxlots'},<br>              {value: 'surveys_selection-wfs/surveys_selection', label: 'Surveys'},<br>                      ],<br>                  }]<br>          });<br></div><div><br></div><div>It looks like the defaultLayer parameter may not be needed, but the default within the fields section is.</div><div><br></div><div>Chris</div><div><br></div></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2020 at 10:15 AM Dan Little <<a href="mailto:theduckylittle@gmail.com">theduckylittle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Something like this:</div><div><br></div><div>{</div><div>  type: 'select',</div><div>  options: [</div><div>    {value: 'path/to/layer', label: 'SUPER LAYER'},</div><div>    {value: ';path/tolayerB', label: 'LESS SUPER LAYER'},</div><div>  ],</div><div>}</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 31, 2020 at 12:27 PM Christopher Hughes <<a href="mailto:chughes@co.lincoln.or.us" target="_blank">chughes@co.lincoln.or.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Dan,<div><br></div><div>How would you adjust this to specify a fixed list of layers?</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 28, 2020 at 11:18 AM Christopher Hughes <<a href="mailto:chughes@co.lincoln.or.us" target="_blank">chughes@co.lincoln.or.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks for these fixes! I've added these and now it looks like it's working (almost) as expected.<div><br></div><div>My only question is what is the 'name: 'layer'' parameter supposed to do? Adding or removing </div><div>it doesn't appear to change how the service works or looks, so I'm not entirely sure I've configured</div><div>it correctly. I was hoping it would add a subheader or something so that users know what dataset </div><div>they're querying. (The main reason I'm trying to do this is because for some users breaking apart</div><div>the select into different tools may be more straightforward than a drop-down menu).</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 27, 2020 at 6:17 PM Dan Little <<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I messed up two things:</div><div>1. It should be "fields" not "inputs".</div><div>2. We have not properly implemented hidden fields.</div><div><br></div><div>Here is the fix for 1:</div><div>    app.registerService('select', SelectService, {<br>        // set the default layer<br>        defaultLayer: 'vector-parcels/parcels',<br>        fields: [{<br>            type: 'hidden',<br>            name: 'layer',<br>            default: 'vector-parcels/parcels'<br>        }]<br>    });<br></div><div><br></div><div>And the fix for 2:</div><div>- <a href="https://github.com/geomoose/gm3/pull/461" target="_blank">https://github.com/geomoose/gm3/pull/461</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 27, 2020 at 5:27 PM Christopher Hughes <<a href="mailto:chughes@co.lincoln.or.us" target="_blank">chughes@co.lincoln.or.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks for the feedback.<div><br></div><div>I'm having trouble replicating this. I'm trying to modify the demo's select to test it and I'm not noticing any difference in the select tool.</div><div><br></div><div>Demo:</div><div>    app.registerService('select', SelectService, {<br>        // set the default layer<br>        defaultLayer: 'vector-parcels/parcels',<br>    });<br></div><div><br></div><div>My Attempt:</div><div>    app.registerService('select', SelectService, {<br>        // remove the layer select<br>        inputs: [{<br>            type: 'hidden',<br>            name: 'Parcels',<br>            default: 'vector-parcels/parcels'<br>         }]<br>    });<br></div><div><br></div><div>The only change I'm noticing is that with this syntax, turning on autoGo and removing the select options incompatible with autoGo no longer works.</div><div>Any suggestions?</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 26, 2020 at 1:24 PM Dan Little <<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This should be settable in app.js:<br></div><div><br></div><div>    app.registerService('my-other-select', SelectService, {<br></div><div>        // remove the layer select</div><div>        inputs: [{</div><div>            type: 'hidden',</div><div>            name: 'layer',</div><div>            default: 'source/layer'</div><div>         }]<br></div><div>    });<br></div><div><br></div><div>This change removes the Select input and makes it a fixed field. You can also specify that as a select with a fixed list of layers.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2020 at 3:35 PM Christopher Hughes <<a href="mailto:chughes@co.lincoln.or.us" target="_blank">chughes@co.lincoln.or.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">For geomoose 3, is there a way to specify which layers you can select rather than just setting<div>the default layer and being able to select all layers you've set to be selectable? I'd like to create</div><div>a select tool for each of the layers I want to select (like you can for searches), but if I do that now</div><div>you'd still be able to switch to a different layer in the tool. Relatedly, is there a way to remove the</div><div>'Select from' dropdown box so it just uses the default layer you set in the service?</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris<br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><font size="4">Chris Hughes</font><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">GIS Analyst</div><div style="font-size:12.8px"><font size="1">Lincoln County Surveyor Department </font></div><div><font size="1"><span style="font-family:Roboto,arial,sans-serif">880 NE 7th S</span><span style="font-family:Roboto,arial,sans-serif">t</span>. l Newport, OR 97365</font></div><div style="font-size:12.8px"><font size="1">Tel: (541) 574 1283</font></div></div></div></div></div>
_______________________________________________<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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><font size="4">Chris Hughes</font><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">GIS Analyst</div><div style="font-size:12.8px"><font size="1">Lincoln County Surveyor Department </font></div><div><font size="1"><span style="font-family:Roboto,arial,sans-serif">880 NE 7th S</span><span style="font-family:Roboto,arial,sans-serif">t</span>. l Newport, OR 97365</font></div><div style="font-size:12.8px"><font size="1">Tel: (541) 574 1283</font></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><font size="4">Chris Hughes</font><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">GIS Analyst</div><div style="font-size:12.8px"><font size="1">Lincoln County Surveyor Department </font></div><div><font size="1"><span style="font-family:Roboto,arial,sans-serif">880 NE 7th S</span><span style="font-family:Roboto,arial,sans-serif">t</span>. l Newport, OR 97365</font></div><div style="font-size:12.8px"><font size="1">Tel: (541) 574 1283</font></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><font size="4">Chris Hughes</font><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">GIS Analyst</div><div style="font-size:12.8px"><font size="1">Lincoln County Surveyor Department </font></div><div><font size="1"><span style="font-family:Roboto,arial,sans-serif">880 NE 7th S</span><span style="font-family:Roboto,arial,sans-serif">t</span>. l Newport, OR 97365</font></div><div style="font-size:12.8px"><font size="1">Tel: (541) 574 1283</font></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font size="4">Chris Hughes</font><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">GIS Analyst</div><div style="font-size:12.8px"><font size="1">Lincoln County Surveyor Department </font></div><div><font size="1"><span style="font-family:Roboto,arial,sans-serif">880 NE 7th S</span><span style="font-family:Roboto,arial,sans-serif">t</span>. l Newport, OR 97365</font></div><div style="font-size:12.8px"><font size="1">Tel: (541) 574 1283</font></div></div></div></div>