[Mapbender-users] Search Rout

Astrid Emde (WhereGroup) astrid.emde at wheregroup.com
Wed Jan 15 05:31:56 PST 2020


Hello Siline,

your configuration looks fine. Did you also try with a PostgreSQL table 
(that should work for sure).

Please also check the developer mode to find out whether the connection 
works fine.

http://server/mapbender/app_dev.php

With F12 it will show you if problems occur.

Empty cache.

Export web: app/console assests:install web

Astrid

Am 2020-01-15 10:12, schrieb Siline:
> Hi,
> 
> I am trying to configure for search rout.
> on the search interface, I click on Search, but no result or any 
> action.
> Please help?
> 
> Thanks!
> 
> Bellow is my configuration.
> config.yml
> 
>             db1_5:
>                 driver:   %db1_5_database_driver%
>                 host:     %db1_5_database_host%
>                 port:     %db1_5_database_port%
>                 dbname:   %db1_5_database_name%
>                 path:     %db1_5_database_path%
>                 user:     %db1_5_database_user%
>                 password: %db1_5_database_password%
>                 persistent: true
>                 charset:  UTF8
>                 logging: %kernel.debug%
>                 profiling: %kernel.debug%
> 
> 
> parameters.yml
> parameters:
>     database_driver:   pdo_sqlite
>     database_host:     ~
>     database_port:     ~
>     database_name:     ~
>     database_path:     %kernel.root_dir%/db/demo.sqlite
>     database_user:     ~
>     database_password: ~
> 
>     db1_5_database_driver:   pdo_mysql
>     db1_5_database_host:     localhost
>     db1_5_database_port:     3306
>     db1_5_database_name:    db1_5
>     db1_5_database_path:     ~
>     db1_5_database_user:     root
>     db1_5_database_password: ~
> 
> This is my configuration on search element:
> 
> class: Mapbender\CoreBundle\Component\SQLSearchEngine
> class_options:
>     connection: db1_5
>     relation: line_test
>     attributes:
>       - line_id
>       - line_ref_num
>       - line_name
>      geometry_attribute: line_geo
> form:
>    line_ref_num:
>       type: text
>       options:
>           required: false
>           label: 'Line Number'
>           attr:
>               data-autocomplete: on
>       compare: ilike
> results:
>     view: table
>     count: true
>     headers:
>       line_id: 'ID'
>       line_ref_num: 'Line Number'
>       line_name: 'Name'
>     callback:
>       event: click
>       options:
>           buffer: 100
>           minScale: null
>           maxScale: null
>     styleMap:
>       default:
>           strokeColor: '#00ff00'
>           strokeOpacity: 1
>           fillOpacity: 0
>       select:
>           strokeColor: '#ff0000'
>           fillColor: '#ff0000'
>           fillOpacity: 0.8
>       temporary:
>           strokeColor: '#0000ff'
>           fillColor: '#0000ff'
>           fillOpacity: 1
> 
> 
> 
> --
> Sent from: 
> http://osgeo-org.1560.x6.nabble.com/mapbender-users-f4220788.html
> _______________________________________________
> 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!
  Qualifizierte Open-Source-Schulungen
  bei der www.foss-academy.com
  -----------------------------------

   Astrid Emde
   WhereGroup GmbH
   Eifelstraße 7
   53119 Bonn
   Germany

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

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

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

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------


More information about the Mapbender_users mailing list