Sorry, derailed the conversation off the list again...putting it back on.

---------- Forwarded message ----------
From: Ryan Moquin <[EMAIL PROTECTED]>
Date: Thu, May 1, 2008 at 12:54 AM
Subject: Re: [Mapbuilder-users] Trying to understand custom widgets...
To: Cameron Shorter <[EMAIL PROTECTED]>


Actually, it is in the FeatureList widget.  There is an initTargetModel
event that gets called.  What's odd about it, is that it retrieves the
targetModel tag that I defined, but the executes a statement that does
something like this:

if(!objref.targetModel)
{
    ... some alert code...
   targetModel = model;
}

What's odd about the above piece, is that when I debug at that if statement,
it has retrieved my targetModel and pulled it out of the config, but then it
goes ahead and overwrites it with the parent model.  I think doing,
!someobject, was a way to test for null?  If so, the object isn't null so I
don't know what it would fail.  I'm really just kind of puzzled.  I'm going
to look at the mergemodel tool and see if using some of that code might help
me.


On Wed, Apr 30, 2008 at 9:03 PM, Cameron Shorter <[EMAIL PROTECTED]>
wrote:

> I haven't looked at the code, but I suspect that the targetModel is not
> defined in the widget you are using. (some parameters are defined for all
> widgets, some are not).
>
> Have a look at a widget which uses targetModel, then copy the targetModel
> initialisation into your widget.
>
> Ryan Moquin wrote:
>
> > I'm trying to figure out how to associate a gml model in my mapbuilder
> > config (the gml is a feature without a geometry) to another gml model I have
> > defined.  Basically, both feature ids for both models correlate, so I was
> > trying to take the FeatureList control modifications from the MergeModels
> > example and see if I could have the model that doesn't have a geometry cause
> > the model that does have a geometry to highlight on the map, by relating the
> > feature ids.  I was trying to do this by using targetModel to point to my
> > Model that contains features with geometries, but the targetModel doesn't
> > take effect.  Can the targetModel be used that way?  I'm a little confused
> > on what I would need to do to apply the style sheet to one model, but tell
> > the features in another model to highlight that have the same feature id.
> >
> > I can post an example, but there isn't much to it other than inserting a
> > <targetModel>othermodelid</targetModel> into my FeatureList widget.
> >
> > Anywhere someone can point me to get more information on how to do this?
> >  I think it mostly has to do with my difficulties in understanding whole
> > widget system itself works.
> > ------------------------------------------------------------------------
> >
> >
> > -------------------------------------------------------------------------
> > 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
> >
> >
>
>
> --
> Cameron Shorter
> Geospatial Systems Architect
> Tel: +61 (0)2 8570 5050
> Mob: +61 (0)419 142 254
>
> Think Globally, Fix Locally
> Commercial Support for Geospatial Open Source Solutions
> http://www.lisasoft.com/LISAsoft/SupportedProducts.html
>
>
>
-------------------------------------------------------------------------
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