Well, you know a whole lot more than me, so I'm sure this will be a 
great start. I appreciate it.

Best regards,

Amy


Cameron Shorter wrote:
> Amy, sorry for slow response, I got side-tracked while answering the 
> email, and then forgot about it.
>
> Pat and Linda might have better advice than me regarding ruby.
>
> The way feature selection works in Mapbuilder is a user clicks on a 
> feature, and the XML data related to the feature is stored in a 
> FeatureCollection model.
> A modelChange or refresh event is then sent to all widgets associated 
> with the FeatureCollection in the config.xml file (like the 
> FeatureList), and the widget redraws itself. (It is a 
> model/view/controller design pattern).
>
> What you will need to do is create a new widget which you might 
> extends WidgetBase (not WidgetBaseXsl like most of the widgets). 
> Although complicated, you could look at MapPaneOL.js which does the same.
>
> You should register for the "refresh" event or similar from the main 
> model, and when your function is called, you can call your Ruby fuction.
>
> (Disclaimer, I know very little about ruby so and haven't tried any of 
> this).
>
> Amy Johnson wrote:
>> Hello,
>>
>> I want to use Rails to retrieve data when a user of a map selects a 
>> feature and the feature information is displayed. Can I do this? How 
>> do I handle it in my config.xml where the <FeatureList> <stylesheet> 
>> element is specified?
>>
>> regards,
>>
>> Amy
>>
>> ------------------------------------------------------------------------- 
>>
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>> Don't miss this year's exciting event. There's still time to save 
>> $100. Use priority code J8TL2D2. 
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>  
>>
>> _______________________________________________
>> Mapbuilder-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>>
>>   
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to