- Source:
- dialog/dialog.js
Members
-
<constant> dialog
-
A ol-ext dialog to show information on the map See ol/control/Dialog
- Source:
- dialog/dialog.js
-
<constant> waitDialog
-
A wait dialog
- Source:
- dialog/waitDialog.js
Methods
-
dialog.show(options)
-
Extend ol-ext show method with markdown content. See ol-ext documentaion for more information: ol/control/Dialog~show
Parameters:
Name Type Description optionsObject Properties
Name Type Description mdstring the dialog content as a markdown
- Source:
- dialog/dialog.js
-
dialog.show404(msg, error)
-
Display a 404 page
Parameters:
Name Type Description msgstring message
errorstring information
- Source:
- dialog/dialog.js
-
dialog.showAlert(msg [, buttons] [, onButton])
-
Display an alert dialog
Parameters:
Name Type Argument Description msgstring buttons* <optional>
a list of buttons to show on the dialog, default only one ok button
onButtonfunction <optional>
a fucntion that takes the button id, when click on a button
- Source:
- dialog/dialog.js
-
dialog.showMessage(msg [, buttons] [, onButton])
-
Display an message dialog
Parameters:
Name Type Argument Description msgstring buttons* <optional>
a list of buttons to show on the dialog, default only one ok button
onButtonfunction <optional>
a fucntion that takes the button id, when click on a button
- Source:
- dialog/dialog.js
-
dialog.showWait(msg)
-
Display a wait dialog
Parameters:
Name Type Description msgstring - Source:
- dialog/dialog.js
-
dialogImportFile(onImport, options)
-
A ol-ext dialog to import a file
Parameters:
Name Type Description onImportfunction a function that takes the imported features or a carte and the name of the file
optionsObject Properties
Name Type Argument Default Description titlestring <optional>
dialog title
classNamestring <optional>
formatstring <optional>
format info
acceptstring <optional>
accepted formats
readCarteboolean <optional>
false can read carte
readXLSboolean <optional>
false can read XLS,XLSX,ODS
ignStyleboolean <optional>
true read features with ignStyle
useLayerboolean <optional>
false checkbox to use layer
projectionProjection <optional>
EPSG:3857 result projection
- Source:
- dialog/dialogImportFile.js
-
legendConfigurator(symbolLib, legend, options [, title] [, className] [, layers])
-
Legend configuration dialog See ol/control/Dialog
Parameters:
Name Type Argument Default Description symbolLibCollection.<SymbolLib> legendLegend optionsObject titlestring <optional>
'Légende' classNamestring <optional>
layersCollection.<layer> <optional>
- Source:
- dialog/legendConfigurator.js