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, several products selected from the range of national maps to the scale of 1:25000 are displayed in a simple HTML table. Presentation of the data using CSS is not specified in this case.
var formatTemplate = '<tr>' + '<td>[product.titleDe]</td>' + '<td>[product.descriptionDe]</td>' + '<td>[product.price]</td>' + '<td>[product.releaseDate]</td>' + '<td><a href="#">Bestellen</a></td>' + '</tr>';
window.onload=getProducts(1.0, formatTemplate, null,['1011','1012','1031','1032']);
<table border="1" width="100%"> <thead> <tr> <th>Name</th> <th>Beschreibung</th> <th>Preis</th> <th>Erscheinungsdatum</th> <th> </th> </tr> </thead> <tbody id="productOutputContainer"></tbody> </table>
To transfer the product ordering process to our shop, the order link was inserted as follows (replacing # with URL):
http://www.toposhop.admin.ch/en/shop/basket?ref=test.ch&product0=[product.mapNumber]&quantity0=1
New code from January 1st 2017
https://shop.swisstopo.admin.ch/en/dispatcher?ref=test.ch&product0=[product.mapNumber]&quantity0=1