trackasia-gl
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

TrackAsia Logo

TrackAsia GL JS

License Version CI PRs

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.

Quickstart

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>

Documentation

Full documentation at https://docs.track-asia.com/

Examples:

Showcases
Display a map 3D buildings
Animate a series of images Create a heatmap layer

Contributing

See CONTRIBUTING.md for guidelines.

Sponsors

TrackAsia is developed by the community and organizations that provide financial support.

Thanks to Mapbox 🙏🏽

TrackAsia GL JS is based on the open-source foundation of Mapbox GL JS 1.x.

License

TrackAsia GL JS is released under the BSD 3-Clause license.

Package Sidebar

Install

npm i trackasia-gl

Weekly Downloads

442

Version

2.0.1

License

BSD-3-Clause

Unpacked Size

38.4 MB

Total Files

642

Last publish

Collaborators

  • advnsoftware
  • david_roark