[Geomoose-users] Possible to have a dropdown as a tool in toolbar?
Bistrais, Bob
Bob.Bistrais at maine.gov
Wed Apr 3 08:52:58 PDT 2013
Thanks Brent. I suppose this is possible, but the problem is, I'd like this to work for, among other things, picking a town name. I have over 900 towns/townships that I would need to code in a list that way, so I'm not sure that's very feasible.
From: Brent Fraser [mailto:bfraser at geoanalytic.com]
Sent: Wednesday, April 03, 2013 11:38 AM
To: Bistrais, Bob
Cc: geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Possible to have a dropdown as a tool in toolbar?
Bob,
As Jim points out, you could use a Drawer to execute your code:
<drawer title="MyList" ...
<tool name="item1" title="item 1" type="javascript" selectable="false">
GeoMOOSE.UX.registered_extensions.my_extension.prototype.my_script('item1');
</tool>
<tool name="item2" title="item 2" type="javascript" selectable="false">
GeoMOOSE.UX.registered_extensions.my_extension.prototype.my_script('item2');
</tool>
or set the type='service', but I'm not sure how to pass the selected tool id to the service...
And in either case, I don't think a multi-select would be possible.
Best Regards,
Brent Fraser
On 4/3/2013 9:19 AM, Bistrais, Bob wrote:
Looking for something different.
The demo uses a "drawer" to contain related tools. I'm looking for something like an HTML pick list/combobox- select a value from it, then do something with that value. Although I could do this as a service if need be, it would be nicer if I could have the dropdown right on the toolbar.
From: Jim Klassen [mailto:klassen.js at gmail.com]
Sent: Wednesday, April 03, 2013 11:16 AM
To: Bistrais, Bob
Cc: geomoose-users at lists.osgeo.org<mailto:geomoose-users at lists.osgeo.org>
Subject: Re: [Geomoose-users] Possible to have a dropdown as a tool in toolbar?
Doesn't the demo do this with "Layer Tools"? Or are you looking for something different?
On Apr 3, 2013, at 10:00 AM, Bistrais, Bob wrote:
Is it possible to have a dropdown list as a tool in the GeoMoose toolbar (version 2.6.x)? If so, does anyone have a sample of how to set that up?
_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.osgeo.org<mailto:Geomoose-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/geomoose-users
_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.osgeo.org<mailto:Geomoose-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130403/290a4cbe/attachment.html>
More information about the Geomoose-users
mailing list