Several developers asked me the code for this product presentation written in Openlaszlo.
You will find it below.
Forewords
This program left from a really simple prototype, and I tried to keep it as clear as possible while it was growing up.
As I am not an Openlaszlo expert, the code can be improved in many ways I am sure. So please think this prototype as an alpha version, and feel free to comment if you wish.
LZX calls two xml files :
- zoomdata.xml which is the first file to be loaded. this file has the informations about the zooms (ratio, picture size, …) and the path to the tile url
- product.xml has the product description and the POI location and texts.
And now the code :
Here is the zoomdata.xml file
and code for product.xml
Contenance 100 litres. Extra-resistante
Serrure en acier chrome avec code d’acces a quatre chiffres : vos biens sont en securite
Poignee en alluminium brosse pour une prise en main agreable et sure
Roulettes tres resistantes ayant ete testees sur plus de 500 kilometres
And at last an archive with all files necessary :
- the LZX file
- its resources
- the tiles and the configuration files
.
If you have any question, please post a comment.