Hi Gertjan,
On 7/30/07, Gertjan van Oosten <[EMAIL PROTECTED]> wrote:
> Hi Andreas,
>
> As quoted from Andreas Hocevar:
> > On 7/30/07, Gertjan van Oosten <[EMAIL PROTECTED]> wrote:
> But my use case is different: I have a FeatureCollection model, and two
> widgets, one that shows a HTML form select list with the features in the
> model, the other is the GmlPointRenderer. When moving the mouse over a
> feature in the form select list, the highlightImage is shown in the mainMap.
> [The normalImage is just a completely transparent image; so the feature stands
> out if you move the mouse over it in the select list.]
> Is it possible to get this behaviour with GmlRendererOL?
Of course! Your select list entries only have to know their feature
id, and then you assign the following events to your select list
entries:
onmouseover: config.objects.<your_model>.setParam('hlightFeature','<your_fid>');
onmouseout:
config.objects.<your_model>.setParam('dehighlightFeature','<your_fid>');
This is also shown in the shipTracks and flickr demos: hover over the
text in the listing, and watch the icons in the map. See?
The feature listing for the shipTracks demo is created by
GeoRSSListing.xsl, and for the flickr demo by WfsListing.xsl
Regards,
Andreas.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel