SiteWatch API Examples.
Copyright © 2011 - 2023 Samsýn ehf. All Rights Reserved.

Simple map
Simple marker
Simple line
Simple circle
Simple track location
Complex marker
Map coordinate
Project coordinate
Points routing
Address search
Complex track location
Json config
Custom canvas
Map (This is how the map looks like based on the configuration on the left):
Code (This is how the code looks like based on the configuration above. It can be copied and pasted directly into your project):
<html> <head> <title>SiteWatch API Example Viewer</title> <script src='' type='text/javascript'></script> </head> <body> <div style='height: 300px; width: 600px;' data-map-sw=' { "markers": [{ "id": "marker1", "p": { "x": 359583,"y": 406481 }, "titleConfig": { "text": "Samsýn" }, "imgConfig": { "url": "" } }], "defaultDataSet": 0, "zoomLevel": 5, "defaultCenterPoint": { "x": 359581, "y": 406299 }, "zoomButton": true, "panButton": true }'/> </body> </html>