[Mapbender-users] Search Rout
Siline
srunsiline at gmail.com
Wed Jan 15 01:12:38 PST 2020
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
More information about the Mapbender_users
mailing list