A very first try,
using the
list agregation from struct.
as the POI are formated that way : lat, lon, rotation-angle, opacity, image, textforpopup
so 5 values with a comma separator then whatever you want in wiki syntax in the textforpopup
I have created a shema called poi : (here "-" is to separate infos of each field)
10 - lat - Decimal - decpoint: . - postfix: , - label: latitude - hint: "enter the latitude with a dot as separator"
20 - lon - Decimal - decpoint: . - postfix: , - label: longitude - hint: "enter the longitude with a dot as separator"
30 - rot - Decimal - decpoint: . - postfix: , - label: rotation - hint: "the default value is 0"
40 - opa - Decimal - decpoint: . - postfix: , - label: opacity - hint: "the default value is 1"
50 - mark - Text - prefix: marker- - postfix: .png, - label: add a marker hint: "green for this, blue for ..."
55 - page - Text - prefix:**wiki page :**[[somenamespace: - postfix: ]]\\\\ - label: internal link - hint: "give only the page name"
60 - link - Text - prefix: **website :**[[https:// - postfix: ]]\\\\ - label: website link - hint:" give a name without htpp://"
70 ... mail
the \\\\ is to obtain the wiki \\ for the textforpopup
on a page need to put :
---- struct list ----
schema: poi
cols: lat,lon,rot,opa,mark,page,link,mail
----
to get the poi in a list in the good format. Then from this list, just copy and paste inside the markup olmap after its syntax declaration.
A occasion to test
fields types of struct. User, dropdown and Url types have no postfix, so can't be used in this special usecase.
I notice a default value could be useful for decimal and text type. prefix and postfix are displaying only it you add something in the field editor as a normal behavior.
As said, it is a first try to improve but works well and make easy to maintain for displaying hundreds of POI, and this only with openlayermap and struct :-)