[Mapbender-users] autocomplete not working on router search

Astrid Emde (WhereGroup) astrid.emde at wheregroup.com
Tue May 17 08:43:04 PDT 2022


Hello Olivera,

could you describe what exactly the problem is?

Does the search work in general?

https://doc.mapbender.org/de/functions/search/search_router.html#typ-text

You also coul add
data-autocomplete-using: nom_calle_ini

to the definition to nom_calle_fin (that will connect the two fields)

Astrid



Am 2022-05-17 15:49, schrieb ihara.olivera at imm.gub.uy:
> -------------------------
hi, i´m configuring a router search in mapbender 3.3 version and i cant 
make the autocomplete work.If anyone can help me,
regards
Belen.

  this is the config field  of the search:

class: Mapbender\CoreBundle\Component\SQLSearchEngine
class_options:
   connection: nucleo
   relation: sig_cruces_vias
   attributes:
     - cod_nombre_via_ini
     - nom_calle_ini
     - cod_nombre_via_fin
     - nom_calle_fin
   geometry_attribute: the_geom
form:
   nom_calle_ini:
     type: Symfony\Component\Form\Extension\Core\Type\TextType
     options:
       required: true
       label: 'Calle (Montevideo)'
     attr:
       data-autocomplete: 'on'
       data-autocomplete-distinct: 'on'
     compare: iexact
   nom_calle_fin:
     type: Symfony\Component\Form\Extension\Core\Type\TextType
     options:
       required: false
       label: 'Cruce con'
     attr:
       data-autocomplete: 'on'
       data-autocomplete-distinct: 'on'
     compare: exact
results:
   view: table
   count: false
   headers:
     cod_nombre_via_ini: 'Codigo de calle'
     nom_calle_ini: Calle
     cod_nombre_via_fin: 'Codigo de Cruce'
     nom_calle_fin: Cruce
   callback:
     event: click
     options:
       buffer: 10
       minScale: null
       maxScale: null
   styleMap:
     default:
       strokeColor: '#00ff00'
       strokeOpacity: 1
       strokeWidth: 3
       fillColor: '#00ff00'
       fillOpacity: 0.6
       pointRadius: 6

______________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapbender_users

-- 
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

---------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Web-Seminare und Online-Schulungen
bei der www.foss-academy.com
---------------------------------------------

   Astrid Emde
   WhereGroup GmbH
   Eifelstraße 7
   53119 Bonn
   Germany

   Tel: +49(0)228 90 90 38 - 22
   Fax: +49(0)228 90 90 38 - 11

   astrid.emde at wheregroup.com
   www.wheregroup.com

   Meinen PGP Public-Key können Sie unter pgp.mit.edu herunterladen:
   
https://keys.openpgp.org/vks/v1/by-fingerprint/01F8152D36FC07C25EADDE86C5084ACC1C287CCB
   Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen

   Folgen Sie der WhereGroup auf twitter:
   http://twitter.com/WhereGroup_com

   Geschäftsführer:
   Olaf Knopp, Peter Stamm
   Amtsgericht Bonn, HRB 9885
-------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x1C287CCB.asc
Type: application/pgp-keys
Size: 1574 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20220517/3d637407/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20220517/3d637407/attachment.sig>


More information about the Mapbender_users mailing list