<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>&nbsp;</DIV>
<DIV>Hallo Michael,</DIV>
<DIV>&nbsp;</DIV>
<DIV>after digging around a little bit in the code i found a solution which maybe could also interest other mapbender users (v2.6):</DIV>
<DIV>&nbsp;</DIV>
<DIV>1)&nbsp; get the desired geometry in geojson format (i.e. in postgis SELECT ST_AsGeoJSON(wkb_geometry)...)</DIV>
<DIV>2)&nbsp; create a new GeometryArray and import the geometry (importGeoJSON)</DIV>
<DIV>3)&nbsp; create a new Highlight (see javascripts/geometry.js for arguments)</DIV>
<DIV>4) Highlight.add(GeometryArray, 'some color')</DIV>
<DIV>5) in order to be able to zoom and pan your highlighted geometry, register it with eventAfterMapRequest</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers</DIV>
<DIV>&nbsp;</DIV>
<DIV>Manu</DIV>
<DIV><BR><BR>Michael Schulz &lt;mschulz@webgis.de&gt; wrote on 02.12.2010 09:20:<BR>&gt; Hi Manu,<BR>&gt; <BR>&gt; if you a re using the wfsGazetteer module then a hiliting is already<BR>&gt; implemented. Each resulting geometry is hilited when you move the<BR>&gt; mouse over the corresponding line of the text results (you can<BR>&gt; dis/enable this behaviuor via an element var). If you think of<BR>&gt; hiliting the complete resultset all the time, then this is not<BR>&gt; implemented.<BR>&gt; <BR>&gt; Cheers, Michael<BR>&gt; <BR>&gt; 2010/12/2 Emanuele Zala &lt;emanuele.zala@tg.ch&gt;:<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Dear mapbenders,<BR>&gt;&gt;<BR>&gt;&gt; I've implemented a parcel-search gazetteer and would like to highlight<BR>&gt;&gt; the geometry of the results. Is there a function similar to mb_showHighlight<BR>&gt;&gt; that allows to highlight a geometry (area or a polygon)? I'm using Mapbender<BR>&gt;&gt; v2.6.<BR>&gt;&gt;<BR>&gt;&gt; Reagrds<BR>&gt;&gt;<BR>&gt;&gt; Manu<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Kanton Thurgau<BR>&gt;&gt; Amt für Geoinformation - ThurGIS-Zentrum<BR>&gt;&gt; Emanuele Zala<BR>&gt;&gt; ThurGIS-Zentrum<BR>&gt;&gt;<BR>&gt;&gt; Verwaltungsgebäude<BR>&gt;&gt; Promenadenstrasse 8<BR>&gt;&gt; 8510 Frauenfeld<BR>&gt;&gt;<BR>&gt;&gt; Tel.: +41 (0) 52 724 16 10<BR>&gt;&gt; Mobile: +41 (0) 76 328 32 08<BR>&gt;&gt; Fax: +41 (0) 52 724 16 00<BR>&gt;&gt; E-Mail: emanuele.zala@tg.ch<BR>&gt;&gt; Homepage: www.geoinformation.tg.ch<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; Mapbender_users mailing list<BR>&gt;&gt; Mapbender_users@lists.osgeo.org<BR>&gt;&gt; http://lists.osgeo.org/mailman/listinfo/mapbender_users<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; -----------------------------------------------------------<BR>&gt; Michael Schulz<BR>&gt; mschulz@webgis.de<BR>&gt; <BR>&gt; in medias res<BR>&gt; Gesellschaft für Informationstechnologie mbH<BR>&gt; <BR>&gt; Schwimmbadstraße 2<BR>&gt; D-79100&nbsp; Freiburg i. Br.<BR>&gt; <BR>&gt; Tel:&nbsp; +49 (0)761 705798-102<BR>&gt; Tel:&nbsp; +49 (0)761 705798-0<BR>&gt; Fax: +49 (0)761 705798-09<BR>&gt; <BR>&gt; http://www.webgis.de / http://www.zopecms.de<BR>&gt; --------------------------------------------------------------<BR>&gt; Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck<BR>&gt; Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg<BR>&gt; _______________________________________________<BR>&gt; Mapbender_users mailing list<BR>&gt; Mapbender_users@lists.osgeo.org<BR>&gt; http://lists.osgeo.org/mailman/listinfo/mapbender_users<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><FONT face=Arial>Kanton Thurgau<BR>Amt für Geoinformation - ThurGIS-Zentrum<BR>Emanuele Zala<BR>ThurGIS-Zentrum<BR>&nbsp;<BR>Verwaltungsgebäude<BR>Promenadenstrasse 8<BR>8510 Frauenfeld<BR>&nbsp;<BR>Tel.: +41 (0) 52 724 16 10<BR>Mobile: +41 (0) 76 328 32 08<BR>Fax: +41 (0) 52 724 16 00<BR>E-Mail: </FONT><A href="mailto:emanuele.zala@tg.ch"><FONT face=Arial>emanuele.zala@tg.ch</FONT></A><FONT face=Arial> <BR>Homepage: </FONT><A href="http://www.geoinformation.tg.ch/"><FONT face=Arial>www.geoinformation.tg.ch</FONT></A> </BODY></HTML>