TrackAsia GL JS is an open-source library for publishing maps on websites or webview apps. It renders vector tiles using GPU/WebGL for fast, interactive maps.
This project is a community fork of mapbox-gl-js before it switched to a non-OSS license. Early versions (1.x) are compatible with Mapbox OSS, but the project has since evolved independently.
Add the JavaScript and CSS files to your <head>
:
<script src='https://unpkg.com/trackasia-gl@latest/dist/trackasia-gl.js'></script>
<link href='https://unpkg.com/trackasia-gl@latest/dist/trackasia-gl.css' rel='stylesheet' />
In your <body>
:
<div id='map' style='width: 400px; height: 300px;'></div>
<script>
var map = new trackasiagl.Map({
container: 'map',
style: 'https://maps.track-asia.com/styles/v1/streets.json?key=public_key',
center: [105.85, 21.03],
zoom: 10
});
</script>
Full documentation at https://docs.track-asia.com/
Examples:
Showcases | |
---|---|
See CONTRIBUTING.md for guidelines.
TrackAsia is developed by the community and organizations that provide financial support.
TrackAsia GL JS is based on the open-source foundation of Mapbox GL JS 1.x.
TrackAsia GL JS is released under the BSD 3-Clause license.