<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> </DIV>
<DIV>Hallo Michael,</DIV>
<DIV> </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> </DIV>
<DIV>1) get the desired geometry in geojson format (i.e. in postgis SELECT ST_AsGeoJSON(wkb_geometry)...)</DIV>
<DIV>2) create a new GeometryArray and import the geometry (importGeoJSON)</DIV>
<DIV>3) 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> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Cheers</DIV>
<DIV> </DIV>
<DIV>Manu</DIV>
<DIV><BR><BR>Michael Schulz <mschulz@webgis.de> wrote on 02.12.2010 09:20:<BR>> Hi Manu,<BR>> <BR>> if you a re using the wfsGazetteer module then a hiliting is already<BR>> implemented. Each resulting geometry is hilited when you move the<BR>> mouse over the corresponding line of the text results (you can<BR>> dis/enable this behaviuor via an element var). If you think of<BR>> hiliting the complete resultset all the time, then this is not<BR>> implemented.<BR>> <BR>> Cheers, Michael<BR>> <BR>> 2010/12/2 Emanuele Zala <emanuele.zala@tg.ch>:<BR>>><BR>>><BR>>><BR>>> Dear mapbenders,<BR>>><BR>>> I've implemented a parcel-search gazetteer and would like to highlight<BR>>> the geometry of the results. Is there a function similar to mb_showHighlight<BR>>> that allows to highlight a geometry (area or a polygon)? I'm using Mapbender<BR>>> v2.6.<BR>>><BR>>> Reagrds<BR>>><BR>>> Manu<BR>>><BR>>><BR>>> Kanton Thurgau<BR>>> Amt für Geoinformation - ThurGIS-Zentrum<BR>>> Emanuele Zala<BR>>> ThurGIS-Zentrum<BR>>><BR>>> Verwaltungsgebäude<BR>>> Promenadenstrasse 8<BR>>> 8510 Frauenfeld<BR>>><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: emanuele.zala@tg.ch<BR>>> Homepage: www.geoinformation.tg.ch<BR>>> _______________________________________________<BR>>> Mapbender_users mailing list<BR>>> Mapbender_users@lists.osgeo.org<BR>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users<BR>>><BR>>><BR>> <BR>> <BR>> <BR>> -- <BR>> -----------------------------------------------------------<BR>> Michael Schulz<BR>> mschulz@webgis.de<BR>> <BR>> in medias res<BR>> Gesellschaft für Informationstechnologie mbH<BR>> <BR>> Schwimmbadstraße 2<BR>> D-79100 Freiburg i. Br.<BR>> <BR>> Tel: +49 (0)761 705798-102<BR>> Tel: +49 (0)761 705798-0<BR>> Fax: +49 (0)761 705798-09<BR>> <BR>> http://www.webgis.de / http://www.zopecms.de<BR>> --------------------------------------------------------------<BR>> Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck<BR>> Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg<BR>> _______________________________________________<BR>> Mapbender_users mailing list<BR>> Mapbender_users@lists.osgeo.org<BR>> http://lists.osgeo.org/mailman/listinfo/mapbender_users<BR></DIV>
<DIV> </DIV>
<DIV> </DIV><FONT face=Arial>Kanton Thurgau<BR>Amt für Geoinformation - ThurGIS-Zentrum<BR>Emanuele Zala<BR>ThurGIS-Zentrum<BR> <BR>Verwaltungsgebäude<BR>Promenadenstrasse 8<BR>8510 Frauenfeld<BR> <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>