Classes
Methods
-
addInfos(infos){undefined}
vmap/tools/infocontainer.js, line 305 -
Add the infos of the table
Name Type Description infos
infos to show:
Name Type Description i.tabName
string name of the tab
i.tableParams
object the params of the bootstrap-table element
-
addMultipleRows(tab_options, row_options){string}
vmap/tools/infocontainer.js, line 157 -
Add multiple rows on a tab
Name Type Description tab_options
Name Type Description tabName
string tab name
tabId
integer tab id
row_options
Name Type Description data.i
array.<object> bootstrap-table data
columns
object bootstrap-table columns
invisibleColumns
array list of the invisible columns
Returns:
error or true if all was executed
-
addRow(row_options, tab_options){string}
vmap/tools/infocontainer.js, line 125 -
Add one row on a tab
Name Type Description row_options
Name Type Description data
object bootstrap-table data
columns
object bootstrap-table columns
invisibleColumns
array list of the invisible columns
tab_options
Name Type Description tabName
string tab name
tabId
integer tab id
Returns:
error or true if all was executed
-
addTab(opt_options){string}
vmap/tools/infocontainer.js, line 58 -
Create and display a tab, if the tab already exist, then the tab is erased
Name Type Description options
Name Type Description tabName
String The name of the tab
columns
array | undefined Array of columns (data keys if undefined)
invisibleColumns
array | undefined Array of non visible columns
data
array.<object> | undefined Data to add ex: [{column1: 'test'}]
data[i].feature
ol.Feature | undefined Feature to bind
layer
object | undefined layer of the features
actions
array.<string> | undefined list of the action buttons, avaliable: ["delete", "zoom"]
Returns:
erorr if something goes wrong
-
displayInfos(infos)
vmap/tools/infocontainer.js, line 232 -
Show the InfoContainer
Name Type Description infos
array.<object> infos to show: infos[i]['tabName'] {string} name of the tab infos[i]['contant'] {string} conent to show before the tab infos[i]['tableParams'] {object} the params of the bootstrap-table element
-
displayTabById(id)
vmap/tools/infocontainer.js, line 218 -
Display the tab by the id
Name Type Description id
integer Unique id of the tab
-
displayTabByName(tabName)
vmap/tools/infocontainer.js, line 204 -
Display the tab by the name
Name Type Description tabName
string Name of the tab
-
displayTabFeatures(tabName){string}
vmap/tools/infocontainer.js, line 454 -
Pass the tab features on the top of the featureOverlay
Name Type Description tabName
string name of the tab
Returns:
error
-
getInfos(){object}
vmap/tools/infocontainer.js, line 270 -
Return the infos of the table
Returns:
infos of the table
-
getTabByName(){object}
vmap/tools/infocontainer.js, line 244 -
Return the tab
Returns:
infos of the table
-
getTabTable(tab)
vmap/tools/infocontainer.js, line 259 -
Get the tab bootstrap-table element
Name Type Description tab
tab tab
-
refreshTabs()
vmap/tools/infocontainer.js, line 188 -
Refresh the tabs
-
removeAll()
vmap/tools/infocontainer.js, line 347 -
Delete all the tabs. Warning: this function will remove the possible features binded on the rows
-
removeRow(tabName, rowIndex)
vmap/tools/infocontainer.js, line 395 -
Delete a row in a tab. Warning: this function will remove the possible features binded on the rows
Name Type Description tabName
string tabName of the tab
rowIndex
integer index of the row
-
removeTabByName(tabName)
vmap/tools/infocontainer.js, line 321 -
Delete a tab by tabName. Warning: this function will not remove the possible features binded on the rows
Name Type Description tabName
string name of the tab
-
removeTabRows(tabName)
vmap/tools/infocontainer.js, line 372 -
Delete all the rows in the tab. Warning: this function will remove the possible features binded on the rows
Name Type Description tabName
string tabName of the tab
-
setInfos(infos){undefined}
vmap/tools/infocontainer.js, line 286 -
Set the infos of the table
Name Type Description infos
array.<object> infos to show: infos[i]['tabName'] {string} name of the tab infos[i]['contant'] {string} conent to show before the tab infos[i]['tableParams'] {object} the params of the bootstrap-table element
-
setTab(opt_options){string}
vmap/tools/infocontainer.js, line 86 -
Create and display a tab, all the other tabs are removed
Name Type Description options
Name Type Description tabName
String The name of the tab
columns
array | undefined Array of columns (data keys if undefined)
invisibleColumns
array | undefined Array of non visible columns
data
array.<object> | undefined Data to add ex: [{column1: 'test'}]
data[i].feature
ol.Feature | undefined Feature to bind
layer
object | undefined layer of the features
actions
array.<string> | undefined list of the action buttons, avaliable: ["delete", "zoom"]
Returns:
erorr if something goes wrong
-
showBar()
vmap/tools/infocontainer.js, line 33 -
Show the InfoContainer toggle bar
-
zoomOnTabFeatures(tabName){string}
vmap/tools/infocontainer.js, line 436 -
Zoom on the tab features and pass them on the top of the featureOverlay
Name Type Description tabName
string name of the tab
Returns:
error