This website is geared towards distributors of swisstopo products and web developers. If you would like to buy products from swisstopo, please visit the swisstopo onlineshop.
In this example, the product group of national maps to the scale of 1:50000 is integrated. The formatting is carried out directly in HTML code.
var formatTemplate = '<tr style="border-bottom: 1px solid black;">' + '<td>[product.mapNumber]</td>' + '<td>[product.titleDe]</td>' + '<td>[product.descriptionDe]</td>' + '<td>[product.price]</td>' + '<td>[product.releaseDate]</td>' + '</tr>';
window.onload=getProducts(1.0, formatTemplate, ['17'],null);
<table style="border: 1px solid black; border-collapse: collapse;" width="100%"> <thead style="border-bottom: 2px solid black; font-size: 0.8em; background-color: silver; text-align: left;"> <tr> <th>Karten-Nr.</th> <th>Name</th> <th>Beschreibung</th> <th>Preis</th> <th>Erscheinungsdatum</th> </tr> </thead> <tbody id="productOutputContainer"></tbody> </table>