Get started with TremulaJS CDN

GPL-3.0 licensed

TremulaJS is a lightweight library for creating interactive data visualizations in the browser.

Tags:
  • picture
  • streams
  • momentum
  • engine
  • bezier
  • paths
  • multi-device

Stable version

Copied!

How to start using TremulaJS CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with TremulaJS CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/TremulaJS/1.3.2/Tremula.min.js"></script>
</head>
<body>
    <div id="map" style="width: 100%; height: 100vh;"></div>

    <script>
        // Create a new map with the given container and initial viewport
        const map = new tremula.Map('map', {
            center: [51.505, -0.045],
            zoom: 13,
        });

        // Add a marker to the map at the given position
        new tremula.Marker()
            .setLngLat([51.5, -0.05])
            .addTo(map);
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions