This is a small plugin for pmapper framework.
It just allow to use a button in user interface witch show the search form layer.
It contains:
- config.inc: include the other files in pmapper
- searchtool.js: the function to execute when button is clicked
- x_searchtool.php: generate the HTML code for the "searchForm".
- install subdirectory: files needed for installation / configuration
Dependancies:
No dependancy
How to use:
- Enable the plugin by adding a line in config_XXXXX.xml file:
....
searchtool
....
- Set default plugin configuration by adding a line in config_XXXXX.xml file:
....
....
dynwin
#uiLayoutCenter
200
150
300
100
false
true
pmSearchToolContainer
Search
....
- Add the search tool button to the interface in /config/XXXXX/js_config.php file:
PM.buttonsDefault = {
.....
buttons: [
.....
{tool:'searchtool', name:'Search', run:'PM.Plugin.SearchTool.click'},
.....
]
}
- Add the appropriate icon from plugins/searchtool/install/searchtool_off.gif to images/buttons/default (or the corresponding theme directory).
BE CARREFULL:
Maybe you will need to modify your CSS properties, like for instance :
#mapToolArea {
height: 25px;
text-align: left;
}
.pm-searchcont {
position: relative;
}