When you click to bring up the Menu on the map. It will add custom entries(s) that will be specified in a config/settings file.
The config/settings file will contain something similar to:
Menu Title,Menu to Show in,Wait for response,Command
-----------------------------------------------------
"title 1",S,1,"command {lat} {lon} {zoom}"
"title 2",S,0,"command {lat} {lon}"
"title 3",A,0,"command {MMSI}"
"title 4",S,0,"command"
{lat} {lon} {zoom} > should get replaced by the
current latitude, longitude and zoom of the point of the cursor where clicked.
{MMSI} > the mmsi of the select vessel
Not all commands will have all options some may just have lat / lon or some may have nothing.
The "Menu to show in" will be either the (S)tandard Menu or the (A)IS menu.
Once clicked and the command executed if "wait for response" = 1 then a box will show up similar to the "Target Query" for
AIS.
It should show the return data if any from the command. It should be able to understand basic formatted text to display similar to basic html.
example:
<b>This is bold</b>
<br>
Hello World
At very least a way to have bold and new lines.
A Huge plus would be to be able to display
images as well.
- If the "wait for response" = 0 the command will execute but there will be no expected response.